(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+6Fa":function(D,I,e){"use strict";var g=e("wx14"),f=e("Ff2n"),y=e("rePB"),p=e("1OyB"),v=e("vuIU"),h=e("Ji7U"),c=e("md7G"),o=e("foSv"),i=e("q1tI"),n=e.n(i),a=e("TSYQ"),u=e.n(a);function r(m,w){var b=Object.keys(m);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(m);w&&(E=E.filter(function(A){return Object.getOwnPropertyDescriptor(m,A).enumerable})),b.push.apply(b,E)}return b}function l(m){for(var w=1;w-1}D.exports=f},"+BJd":function(D,I,e){"use strict";var g=e("cIOH"),f=e.n(g),y=e("6MrE"),p=e.n(y)},"+QRC":function(D,I,e){"use strict";var g=e("E9nw"),f={"text/plain":"Text","text/html":"Url",default:"Text"},y="Copy to clipboard: #{key}, Enter";function p(h){var c=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return h.replace(/#{\s*key\s*}/g,c)}function v(h,c){var o,i,n,a,u,r,l=!1;c||(c={}),o=c.debug||!1;try{n=g(),a=document.createRange(),u=document.getSelection(),r=document.createElement("span"),r.textContent=h,r.style.all="unset",r.style.position="fixed",r.style.top=0,r.style.clip="rect(0, 0, 0, 0)",r.style.whiteSpace="pre",r.style.webkitUserSelect="text",r.style.MozUserSelect="text",r.style.msUserSelect="text",r.style.userSelect="text",r.addEventListener("copy",function(s){if(s.stopPropagation(),c.format)if(s.preventDefault(),typeof s.clipboardData=="undefined"){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=f[c.format]||f.default;window.clipboardData.setData(d,h)}else s.clipboardData.clearData(),s.clipboardData.setData(c.format,h);c.onCopy&&(s.preventDefault(),c.onCopy(s.clipboardData))}),document.body.appendChild(r),a.selectNodeContents(r),u.addRange(a);var t=document.execCommand("copy");if(!t)throw new Error("copy command was unsuccessful");l=!0}catch(s){o&&console.error("unable to copy using execCommand: ",s),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(c.format||"text",h),c.onCopy&&c.onCopy(window.clipboardData),l=!0}catch(d){o&&console.error("unable to copy using clipboardData: ",d),o&&console.error("falling back to prompt"),i=p("message"in c?c.message:y),window.prompt(i,h)}}finally{u&&(typeof u.removeRange=="function"?u.removeRange(a):u.removeAllRanges()),r&&document.body.removeChild(r),n()}return l}D.exports=v},"+TT/":function(D,I,e){var g=e("bYtY"),f=e("mFDi"),y=e("OELB"),p=y.parsePercent,v=e("7aKB"),h=g.each,c=["left","right","top","bottom","width","height"],o=[["width","left","right"],["height","top","bottom"]];function i(b,E,A,S,T){var O=0,x=0;S==null&&(S=Infinity),T==null&&(T=Infinity);var C=0;E.eachChild(function(_,N){var F=_.position,k=_.getBoundingRect(),P=E.childAt(N+1),j=P&&P.getBoundingRect(),K,R;if(b==="horizontal"){var B=k.width+(j?-j.x+k.x:0);K=O+B,K>S||_.newline?(O=0,K=B,x+=C+A,C=k.height):C=Math.max(C,k.height)}else{var U=k.height+(j?-j.y+k.y:0);R=x+U,R>T||_.newline?(O+=C+A,x=0,R=U,C=k.width):C=Math.max(C,k.width)}if(_.newline)return;F[0]=O,F[1]=x,b==="horizontal"?O=K+A:x=R+A})}var n=i,a=g.curry(i,"vertical"),u=g.curry(i,"horizontal");function r(b,E,A){var S=E.width,T=E.height,O=p(b.x,S),x=p(b.y,T),C=p(b.x2,S),_=p(b.y2,T);return(isNaN(O)||isNaN(parseFloat(b.x)))&&(O=0),(isNaN(C)||isNaN(parseFloat(b.x2)))&&(C=S),(isNaN(x)||isNaN(parseFloat(b.y)))&&(x=0),(isNaN(_)||isNaN(parseFloat(b.y2)))&&(_=T),A=v.normalizeCssArray(A||0),{width:Math.max(C-O-A[1]-A[3],0),height:Math.max(_-x-A[0]-A[2],0)}}function l(b,E,A){A=v.normalizeCssArray(A||0);var S=E.width,T=E.height,O=p(b.left,S),x=p(b.top,T),C=p(b.right,S),_=p(b.bottom,T),N=p(b.width,S),F=p(b.height,T),k=A[2]+A[0],P=A[1]+A[3],j=b.aspect;isNaN(N)&&(N=S-C-P-O),isNaN(F)&&(F=T-_-k-x),j!=null&&(isNaN(N)&&isNaN(F)&&(j>S/T?N=S*.8:F=T*.8),isNaN(N)&&(N=j*F),isNaN(F)&&(F=N/j)),isNaN(O)&&(O=S-C-N-P),isNaN(x)&&(x=T-_-F-k);switch(b.left||b.right){case"center":O=S/2-N/2-A[3];break;case"right":O=S-N-P;break}switch(b.top||b.bottom){case"middle":case"center":x=T/2-F/2-A[0];break;case"bottom":x=T-F-k;break}O=O||0,x=x||0,isNaN(N)&&(N=S-P-O-(C||0)),isNaN(F)&&(F=T-k-x-(_||0));var K=new f(O+A[3],x+A[0],N,F);return K.margin=A,K}function t(b,E,A,S,T){var O=!T||!T.hv||T.hv[0],x=!T||!T.hv||T.hv[1],C=T&&T.boundingMode||"all";if(!O&&!x)return;var _;if(C==="raw")_=b.type==="group"?new f(0,0,+E.width||0,+E.height||0):b.getBoundingRect();else if(_=b.getBoundingRect(),b.needLocalTransform()){var N=b.getLocalTransform();_=_.clone(),_.applyTransform(N)}E=l(g.defaults({width:_.width,height:_.height},E),A,S);var F=b.position,k=O?E.x-_.x:0,P=x?E.y-_.y:0;b.attr("position",C==="raw"?[k,P]:[F[0]+k,F[1]+P])}function s(b,E){return b[o[E][0]]!=null||b[o[E][1]]!=null&&b[o[E][2]]!=null}function d(b,E,A){!g.isObject(A)&&(A={});var S=A.ignoreSize;!g.isArray(S)&&(S=[S,S]);var T=x(o[0],0),O=x(o[1],1);N(o[0],b,T),N(o[1],b,O);function x(F,k){var P={},j=0,K={},R=0,B=2;if(h(F,function(W){K[W]=b[W]}),h(F,function(W){C(E,W)&&(P[W]=K[W]=E[W]),_(P,W)&&j++,_(K,W)&&R++}),S[k])return _(E,F[1])?K[F[2]]=null:_(E,F[2])&&(K[F[1]]=null),K;if(R===B||!j)return K;if(j>=B)return P;for(var U=0;U2&&arguments[2]!==void 0?arguments[2]:"0",nr=String(tt);nr.length=12,Rn%=12);var Di=o.useMemo(function(){if(!Zr)return[!1,!1];var mi=[!0,!0];return ri.forEach(function(hi){var qi=hi.disabled,va=hi.value;if(qi)return;va>=12?mi[1]=!1:mi[0]=!1}),mi},[Zr,ri]),yi=Object(U.a)(Di,2),xi=yi[0],Oi=yi[1],Un=o.useMemo(function(){return Zr?ri.filter(vn?function(mi){return mi.value>=12}:function(mi){return mi.value<12}).map(function(mi){var hi=mi.value%12,qi=hi===0?"12":Ze(hi,2);return Object(B.a)(Object(B.a)({},mi),{},{label:qi,value:hi})}):ri},[Zr,ri]),Ri=rt(0,59,sr,rn&&rn(Rn)),fa=rt(0,59,Mr,fn&&fn(Rn,En));nr.current={onUpDown:function(hi){var qi=Sn[_r];if(qi)for(var va=qi.units.findIndex(function(sa){return sa.value===qi.value}),Ea=qi.units.length,ya=1;ya1&&(Er=jt.addDate(Er,-7)),Er}function Ne(tt,jt,Jt){var nr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(jt){case"year":return Jt.addYear(tt,nr*10);case"quarter":case"month":return Jt.addYear(tt,nr);default:return Jt.addMonth(tt,nr)}}var je=o.createContext({}),Ke=je;function Xe(tt){var jt=tt.cellPrefixCls,Jt=tt.generateConfig,nr=tt.rangedValue,_r=tt.hoverRangedValue,wr=tt.isInView,Er=tt.isSameCell,zr=tt.offsetCell,Jr=tt.today,Zr=tt.value;function an(St){var Vt,sr=zr(St,-1),br=zr(St,1),Mr=Rt(nr,0),Dr=Rt(nr,1),rn=Rt(_r,0),fn=Rt(_r,1),wn=he(Jt,rn,fn,St);function Hn(En){return Er(Mr,En)}function Sn(En){return Er(Dr,En)}var bn=Er(rn,St),Mn=Er(fn,St),vn=(wn||Mn)&&(!wr(sr)||Sn(sr)),Rn=(wn||bn)&&(!wr(br)||Hn(br));return Vt={},Object(R.a)(Vt,"".concat(jt,"-in-view"),wr(St)),Object(R.a)(Vt,"".concat(jt,"-in-range"),he(Jt,Mr,Dr,St)),Object(R.a)(Vt,"".concat(jt,"-range-start"),Hn(St)),Object(R.a)(Vt,"".concat(jt,"-range-end"),Sn(St)),Object(R.a)(Vt,"".concat(jt,"-range-start-single"),Hn(St)&&!Dr),Object(R.a)(Vt,"".concat(jt,"-range-end-single"),Sn(St)&&!Mr),Object(R.a)(Vt,"".concat(jt,"-range-start-near-hover"),Hn(St)&&(Er(sr,rn)||he(Jt,rn,fn,sr))),Object(R.a)(Vt,"".concat(jt,"-range-end-near-hover"),Sn(St)&&(Er(br,fn)||he(Jt,rn,fn,br))),Object(R.a)(Vt,"".concat(jt,"-range-hover"),wn),Object(R.a)(Vt,"".concat(jt,"-range-hover-start"),bn),Object(R.a)(Vt,"".concat(jt,"-range-hover-end"),Mn),Object(R.a)(Vt,"".concat(jt,"-range-hover-edge-start"),vn),Object(R.a)(Vt,"".concat(jt,"-range-hover-edge-end"),Rn),Object(R.a)(Vt,"".concat(jt,"-range-hover-edge-start-near-range"),vn&&Er(sr,Dr)),Object(R.a)(Vt,"".concat(jt,"-range-hover-edge-end-near-range"),Rn&&Er(br,Mr)),Object(R.a)(Vt,"".concat(jt,"-today"),Er(Jr,St)),Object(R.a)(Vt,"".concat(jt,"-selected"),Er(Zr,St)),Vt}return an}function Fe(tt){for(var jt=tt.prefixCls,Jt=tt.disabledDate,nr=tt.onSelect,_r=tt.rowNum,wr=tt.colNum,Er=tt.prefixColumn,zr=tt.rowClassName,Jr=tt.baseDate,Zr=tt.getCellClassName,an=tt.getCellText,St=tt.getCellNode,Vt=tt.getCellDate,sr=tt.titleCell,br=tt.headerCells,Mr=o.useContext(X),Dr=Mr.onDateMouseEnter,rn=Mr.onDateMouseLeave,fn="".concat(jt,"-cell"),wn=[],Hn=0;Hn<_r;Hn+=1){for(var Sn=[],bn=void 0,Mn=function(En){var Ln=Hn*wr+En,Xn=Vt(Jr,Ln),ai=Jt&&Jt(Xn);En===0&&(bn=Xn,Er&&Sn.push(Er(bn))),Sn.push(o.createElement("td",{key:En,title:sr&&sr(Xn),className:T()(fn,Object(B.a)(Object(R.a)({},"".concat(fn,"-disabled"),ai),Zr(Xn))),onClick:function(){ai||nr(Xn)},onMouseEnter:function(){!ai&&Dr&&Dr(Xn)},onMouseLeave:function(){!ai&&rn&&rn(Xn)}},St?St(Xn):o.createElement("div",{className:"".concat(fn,"-inner")},an(Xn))))},vn=0;vn2&&arguments[2]!==void 0?arguments[2]:!1;(ba===Mr||oo)&&(la(pi),Mn&&Mn(pi),Ea&&Ea(pi,Yi),vn&&!pe(zr,pi,ca)&&vn(pi))},So=function(pi){return Vi.current&&Vi.current.onKeyDown?([V.a.LEFT,V.a.RIGHT,V.a.UP,V.a.DOWN,V.a.PAGE_UP,V.a.PAGE_DOWN,V.a.ENTER].includes(pi.which)&&pi.preventDefault(),Vi.current.onKeyDown(pi)):(Object(y.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},za=function(pi){Vi.current&&Vi.current.onBlur&&Vi.current.onBlur(pi)};qi&&$n!=="right"&&(qi.current={onKeyDown:So,onClose:function(){Vi.current&&Vi.current.onClose&&Vi.current.onClose()}}),o.useEffect(function(){Jr&&!Xi.current&&ra(Jr)},[Jr]),o.useEffect(function(){Xi.current=!1},[]);var ja,qa=Object(B.a)(Object(B.a)({},tt),{},{operationRef:Vi,prefixCls:nr,viewDate:Ma,value:ca,onViewDateChange:Gi,sourceMode:Ga,onPanelChange:pa,disabledDate:ba!=="decade"?Vt:void 0});delete qa.onChange,delete qa.onSelect;switch(ba){case"decade":ja=o.createElement(un,Object.assign({},qa,{onSelect:function(pi,Yi){Gi(pi),_i(pi,Yi)}}));break;case"year":ja=o.createElement(qr,Object.assign({},qa,{onSelect:function(pi,Yi){Gi(pi),_i(pi,Yi)}}));break;case"month":ja=o.createElement(er,Object.assign({},qa,{onSelect:function(pi,Yi){Gi(pi),_i(pi,Yi)}}));break;case"quarter":ja=o.createElement(Ht,Object.assign({},qa,{onSelect:function(pi,Yi){Gi(pi),_i(pi,Yi)}}));break;case"week":ja=o.createElement(Wt,Object.assign({},qa,{onSelect:function(pi,Yi){Gi(pi),_i(pi,Yi)}}));break;case"time":delete qa.showTime,ja=o.createElement(it,Object.assign({},qa,Object(W.a)(wn)==="object"?wn:null,{onSelect:function(pi,Yi){Gi(pi),_i(pi,Yi)}}));break;default:wn?ja=o.createElement($e,Object.assign({},qa,{onSelect:function(pi,Yi){Gi(pi),_i(pi,Yi)}})):ja=o.createElement(te,Object.assign({},qa,{onSelect:function(pi,Yi){Gi(pi),_i(pi,Yi)}}))}var ho,Ca,to=function(){var pi=zr.getNow(),Yi=Ye(zr.getHour(pi),zr.getMinute(pi),zr.getSecond(pi),Ui?yi:1,Mi?Oi:1,mi?Ri:1),oo=wt(zr,pi,Yi[0],Yi[1],Yi[2]);_i(oo,"submit")};ya||(ho=Nn(nr,ba,Sn),Ca=jr({prefixCls:nr,components:ai,needConfirmButton:fa,okDisabled:!ca||Vt&&Vt(ca),locale:Er,showNow:fn,onNow:fa&&to,onOk:function(){ca&&(_i(ca,"submit",!0),Xn&&Xn(ca))}}));var Oo;if(Hn&&ba==="date"&&Mr==="date"&&!wn){var La=zr.getNow(),Fi="".concat(nr,"-today-btn"),Ja=Vt&&Vt(La);Oo=o.createElement("a",{className:T()(Fi,Ja&&"".concat(Fi,"-disabled")),"aria-disabled":Ja,onClick:function(){Ja||_i(La,"mouse",!0)}},Er.today)}return o.createElement(X.Provider,{value:Object(B.a)(Object(B.a)({},hi),{},{hideHeader:"hideHeader"in tt?bn:hi.hideHeader,hidePrevBtn:Ni&&$n==="right",hideNextBtn:Ni&&$n==="left"})},o.createElement("div",{tabIndex:rn,className:T()("".concat(nr,"-panel"),_r,(jt={},Object(R.a)(jt,"".concat(nr,"-panel-has-range"),Ai&&Ai[0]&&Ai[1]),Object(R.a)(jt,"".concat(nr,"-panel-has-range-hover"),Li&&Li[0]&&Li[1]),Object(R.a)(jt,"".concat(nr,"-panel-rtl"),ri==="rtl"),jt)),style:wr,onKeyDown:So,onBlur:za,onMouseDown:En,ref:va},ja,ho||Ca||Oo?o.createElement("div",{className:"".concat(nr,"-footer")},ho,Ca,Oo):null))}var gn=Tn,Pn=e("uciX"),zn={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function qn(tt){var jt,Jt=tt.prefixCls,nr=tt.popupElement,_r=tt.popupStyle,wr=tt.visible,Er=tt.dropdownClassName,zr=tt.dropdownAlign,Jr=tt.transitionName,Zr=tt.getPopupContainer,an=tt.children,St=tt.range,Vt=tt.popupPlacement,sr=tt.direction,br="".concat(Jt,"-dropdown"),Mr=function(){return Vt!==void 0?Vt:sr==="rtl"?"bottomRight":"bottomLeft"};return o.createElement(Pn.a,{showAction:[],hideAction:[],popupPlacement:Mr(),builtinPlacements:zn,prefixCls:br,popupTransitionName:Jr,popup:nr,popupAlign:zr,popupVisible:wr,popupClassName:T()(Er,(jt={},Object(R.a)(jt,"".concat(br,"-range"),St),Object(R.a)(jt,"".concat(br,"-rtl"),sr==="rtl"),jt)),popupStyle:_r,getPopupContainer:Zr},an)}var Gn=qn;function Vn(tt){var jt=tt.open,Jt=tt.value,nr=tt.isClickOutside,_r=tt.triggerOpen,wr=tt.forwardKeyDown,Er=tt.blurToCancel,zr=tt.onSubmit,Jr=tt.onCancel,Zr=tt.onFocus,an=tt.onBlur,St=Object(o.useState)(!1),Vt=Object(U.a)(St,2),sr=Vt[0],br=Vt[1],Mr=Object(o.useState)(!1),Dr=Object(U.a)(Mr,2),rn=Dr[0],fn=Dr[1],wn=Object(o.useRef)(!1),Hn=Object(o.useRef)(!1),Sn={onMouseDown:function(){br(!0),_r(!0)},onKeyDown:function(Mn){switch(Mn.which){case V.a.ENTER:{jt?zr()!==!1&&br(!0):_r(!0),Mn.preventDefault();return}case V.a.TAB:{sr&&jt&&!Mn.shiftKey?(br(!1),Mn.preventDefault()):!sr&&jt&&(!wr(Mn)&&Mn.shiftKey&&(br(!0),Mn.preventDefault()));return}case V.a.ESC:{br(!0),Jr();return}}!jt&&![V.a.SHIFT].includes(Mn.which)?_r(!0):sr||wr(Mn)},onFocus:function(Mn){br(!0),fn(!0),Zr&&Zr(Mn)},onBlur:function(Mn){if(wn.current||!nr(document.activeElement)){wn.current=!1;return}Er?setTimeout(function(){nr(document.activeElement)&&Jr()},0):jt&&(_r(!1),Hn.current&&zr()),fn(!1),an&&an(Mn)}};return Object(o.useEffect)(function(){Hn.current=!1},[jt]),Object(o.useEffect)(function(){Hn.current=!0},[Jt]),Object(o.useEffect)(function(){return ee(function(bn){var Mn=bn.target;jt&&(nr(Mn)?rn||_r(!1):(wn.current=!0,requestAnimationFrame(function(){wn.current=!1})))})}),[Sn,{focused:rn,typing:sr}]}function An(tt){var jt=tt.valueTexts,Jt=tt.onTextChange,nr=o.useState(""),_r=Object(U.a)(nr,2),wr=_r[0],Er=_r[1],zr=o.useRef([]);zr.current=jt;function Jr(an){Er(an),Jt(an)}function Zr(){Er(zr.current[0])}return o.useEffect(function(){jt.every(function(an){return an!==wr})&&Zr()},[jt.join("||")]),[wr,Jr,Zr]}var on=e("Gytx"),ia=e.n(on);function xa(tt,jt){var Jt=jt.formatList,nr=jt.generateConfig,_r=jt.locale;return Object(ge.a)(function(){if(!tt)return[[""],""];for(var wr="",Er=[],zr=0;zrsr(an);case"month":return Vt(Dr)>Vt(an);case"week":return St(Dr)>St(an);default:return!or(Jr,Dr,an)&&Jr.isAfter(Dr,an)}return!1},[Er,zr[1],an,jt]),Mr=o.useCallback(function(Dr){if(Er&&Er(Dr))return!0;if(zr[0]&&Zr)return!or(Jr,Dr,an)&&Jr.isAfter(Zr,Dr);if(Jt&&Zr)switch(nr){case"quarter":return sr(Dr)0&&arguments[0]!==void 0?arguments[0]:!1,ui=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bi=null;vo&&we&&we[0]&&we[1]&&br.isAfter(we[1],we[0])&&(Bi=we);var Wn=bn;if(bn&&Object(W.a)(bn)==="object"&&bn.defaultValue){var io=bn.defaultValue;Wn=Object(B.a)(Object(B.a)({},bn),{},{defaultValue:Rt(io,vi)||void 0})}var qo=null;return xi&&(qo=function(os,Zo){return xi(os,Zo,{range:vi?"end":"start"})}),o.createElement(Ke.Provider,{value:{inRange:!0,panelPosition:ua,rangedValue:Vs||Fi,hoverRangedValue:Bi}},o.createElement(gn,Object.assign({},tt,ui,{dateRender:qo,showTime:Wn,mode:Yi[vi],generateConfig:br,style:void 0,direction:Xi,disabledDate:vi===0?ki:Ra,disabledTime:function(os){return yi?yi(os,vi===0?"start":"end"):!1},className:T()(Object(R.a)({},"".concat(wr,"-panel-focused"),vi===0?!yo:!jo)),value:Rt(Fi,vi),locale:Mr,tabIndex:-1,onPanelChange:function(os,Zo){go(He(Yi,Zo,vi),He(Fi,os,vi));var $o=os;ua==="right"&&Yi[vi]===Zo&&($o=Ne($o,Zo,br,-1)),to($o,vi)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Go=0,Eo=0;vi&&ra.current&&Xa.current&&Ma.current&&(Go=ra.current.offsetWidth+Xa.current.offsetWidth,Ma.current.offsetWidth&&Go>Ma.current.offsetWidth&&(Eo=Go));var ds=Xi==="rtl"?{right:Go}:{left:Go};function hs(){var ua,ui=Nn(wr,Yi[vi],va),Bi=jr({prefixCls:wr,components:Li,needConfirmButton:la,okDisabled:!Rt(Fi,vi)||Di&&Di(Fi[vi]),locale:Mr,rangeList:Xs,onOk:function(){Rt(Fi,vi)&&(Za(Fi,vi),Ai&&Ai(Fi))}});if(Sn!=="time"&&!bn){var Wn=Ca(vi),io=Ne(Wn,Sn,br),qo=Yi[vi],gs=qo===Sn,os=Gs(gs?"left":!1,{pickerValue:Wn,onPickerValueChange:function(Ho){to(Ho,vi)}}),Zo=Gs("right",{pickerValue:io,onPickerValueChange:function(Ho){to(Ne(Ho,Sn,br,-1),vi)}});Xi==="rtl"?ua=o.createElement(o.Fragment,null,Zo,gs&&os):ua=o.createElement(o.Fragment,null,os,gs&&Zo)}else ua=Gs();var $o=o.createElement(o.Fragment,null,o.createElement("div",{className:"".concat(wr,"-panels")},ua),(ui||Bi)&&o.createElement("div",{className:"".concat(wr,"-footer")},ui,Bi));return Oi&&($o=Oi($o)),o.createElement("div",{className:"".concat(wr,"-panel-container"),style:{marginLeft:Eo},ref:Ma,onMouseDown:function(Ho){Ho.preventDefault()}},$o)}var Rs=o.createElement("div",{className:T()("".concat(wr,"-range-wrapper"),"".concat(wr,"-").concat(Sn,"-range-wrapper")),style:{minWidth:Is}},o.createElement("div",{className:"".concat(wr,"-range-arrow"),style:ds}),hs()),Do;Ui&&(Do=o.createElement("span",{className:"".concat(wr,"-suffix")},Ui));var ys;fa&&(Rt(za,0)&&!pa[0]||Rt(za,1)&&!pa[1])&&(ys=o.createElement("span",{onMouseDown:function(ui){ui.preventDefault(),ui.stopPropagation()},onMouseUp:function(ui){ui.preventDefault(),ui.stopPropagation();var Bi=za;pa[0]||(Bi=He(Bi,null,0)),pa[1]||(Bi=He(Bi,null,1)),Za(Bi,null),Yo(!1,vi)},className:"".concat(wr,"-clear")},Mi||o.createElement("span",{className:"".concat(wr,"-clear-btn")})));var Ms={size:lt(Sn,ba[0])},As=0,Fs=0;ra.current&&Gi.current&&Xa.current&&(vi===0?Fs=ra.current.offsetWidth:(As=Go,Fs=Gi.current.offsetWidth));var Hs=Xi==="rtl"?{right:As}:{left:As},bs=function(ui,Bi){var Wn=He(Fi,ui,vi);Bi==="submit"||Bi!=="key"&&!la?Za(Wn,vi):Ja(Wn)};return o.createElement(X.Provider,{value:{operationRef:Ka,hideHeader:Sn==="time",onDateMouseEnter:Qn,onDateMouseLeave:ti,hideRanges:!0,onSelect:bs,open:vo}},o.createElement(Gn,{visible:vo,popupElement:Rs,popupStyle:Zr,prefixCls:wr,dropdownClassName:an,dropdownAlign:Vt,getPopupContainer:sr,transitionName:St,range:!0,direction:Xi},o.createElement("div",Object.assign({ref:Pa,className:T()(wr,"".concat(wr,"-range"),Jr,(jt={},Object(R.a)(jt,"".concat(wr,"-disabled"),pa[0]&&pa[1]),Object(R.a)(jt,"".concat(wr,"-focused"),vi===0?Wa:Ha),Object(R.a)(jt,"".concat(wr,"-rtl"),Xi==="rtl"),jt)),style:zr,onClick:ko,onMouseDown:Qo},Be(tt)),o.createElement("div",{className:T()("".concat(wr,"-input"),(Jt={},Object(R.a)(Jt,"".concat(wr,"-input-active"),vi===0),Object(R.a)(Jt,"".concat(wr,"-input-placeholder"),!!Ut),Jt)),ref:ra},o.createElement("input",Object.assign({id:Er,disabled:pa[0],readOnly:hi||!yo,value:Ut||rs,onChange:function(ui){ms(ui.target.value)},autoFocus:rn,placeholder:Rt(Dr,0)||"",ref:Ki},Sa,Ms,{autoComplete:ca}))),o.createElement("div",{className:"".concat(wr,"-range-separator"),ref:Xa},Rn),o.createElement("div",{className:T()("".concat(wr,"-input"),(nr={},Object(R.a)(nr,"".concat(wr,"-input-active"),vi===1),Object(R.a)(nr,"".concat(wr,"-input-placeholder"),!!ln),nr)),ref:Gi},o.createElement("input",Object.assign({disabled:pa[1],readOnly:hi||!jo,value:ln||as,onChange:function(ui){$s(ui.target.value)},placeholder:Rt(Dr,1)||"",ref:zi},Fo,Ms,{autoComplete:ca}))),o.createElement("div",{className:"".concat(wr,"-active-bar"),style:Object(B.a)(Object(B.a)({},Hs),{},{width:Fs,position:"absolute"})}),Do,ys)))}var di=function(tt){Object(j.a)(Jt,tt);var jt=Object(K.a)(Jt);function Jt(){var nr;return Object(k.a)(this,Jt),nr=jt.apply(this,arguments),nr.pickerRef=o.createRef(),nr.focus=function(){nr.pickerRef.current&&nr.pickerRef.current.focus()},nr.blur=function(){nr.pickerRef.current&&nr.pickerRef.current.blur()},nr}return Object(P.a)(Jt,[{key:"render",value:function(){return o.createElement(ni,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Jt}(o.Component),Na=di,Qi=Yn,ma=e("61s2");function Ba(tt,jt,Jt){return Jt!==void 0?Jt:tt==="year"&&jt.lang.yearPlaceholder?jt.lang.yearPlaceholder:tt==="quarter"&&jt.lang.quarterPlaceholder?jt.lang.quarterPlaceholder:tt==="month"&&jt.lang.monthPlaceholder?jt.lang.monthPlaceholder:tt==="week"&&jt.lang.weekPlaceholder?jt.lang.weekPlaceholder:tt==="time"&&jt.timePickerLocale.placeholder?jt.timePickerLocale.placeholder:jt.lang.placeholder}function Qa(tt,jt,Jt){return Jt!==void 0?Jt:tt==="year"&&jt.lang.yearPlaceholder?jt.lang.rangeYearPlaceholder:tt==="month"&&jt.lang.monthPlaceholder?jt.lang.rangeMonthPlaceholder:tt==="week"&&jt.lang.weekPlaceholder?jt.lang.rangeWeekPlaceholder:tt==="time"&&jt.timePickerLocale.placeholder?jt.timePickerLocale.rangePlaceholder:jt.lang.rangePlaceholder}var Wi=e("uaoM"),Co=e("H84U"),aa=e("YMnH"),Hi=e("3Nzz"),ga=function(tt,jt){var Jt={};for(var nr in tt)Object.prototype.hasOwnProperty.call(tt,nr)&&jt.indexOf(nr)<0&&(Jt[nr]=tt[nr]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _r=0,nr=Object.getOwnPropertySymbols(tt);_rYe.length)&&(et=Ye.length);for(var rt=0,st=new Array(et);rtAt&&(Ae="bottom")}}Fe!==null&&Fe!==Ye.current.scrollTop&&$(Fe)}it.current=Object(n.a)(function(){Bt&&ie(),ct(yt-1,Ae)})};dt(3)}}}function q(Ye,et,rt,st){var Ve=rt-Ye,ie=et-rt,$=Math.min(Ve,ie)*2;if(st<=$){var it=Math.floor(st/2);return st%2?rt+it+1:rt-it}return Ve>ie?rt-(st-ie):rt+(st-Ve)}function fe(Ye,et,rt){var st=Ye.length,Ve=et.length,ie,$;if(st===0&&Ve===0)return null;stYe.length)&&(et=Ye.length);for(var rt=0,st=new Array(et);rtYe.length)&&(et=Ye.length);for(var rt=0,st=new Array(et);rt=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Ye,st))continue;rt[st]=Ye[st]}}return rt}function Ze(Ye,et){if(Ye==null)return{};var rt={},st=Object.keys(Ye),Ve,ie;for(ie=0;ie=0)continue;rt[Ve]=Ye[Ve]}return rt}var vt=[],Ct={overflowY:"auto",overflowAnchor:"none"};function Be(Ye,et){var rt=Ye.prefixCls,st=rt===void 0?"rc-virtual-list":rt,Ve=Ye.className,ie=Ye.height,$=Ye.itemHeight,it=Ye.fullHeight,Qe=it===void 0?!0:it,ye=Ye.style,Zt=Ye.data,dt=Ye.children,ct=Ye.itemKey,yt=Ye.virtual,It=Ye.component,or=It===void 0?"div":It,Bt=Ye.onScroll,Ae=Oe(Ye,["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll"]),pe=yt!==!1&&ie&&$&&Zt&&$*Zt.length>ie,he=g.useState(0),le=ke(he,2),Ne=le[0],je=le[1],Ke=g.useState(!1),Xe=ke(Ke,2),Fe=Xe[0],nt=Xe[1],At=y()(st,Ve),_t=Zt||vt,ne=Object(g.useRef)(),ue=g.useCallback(function(Ar){return typeof ct=="function"?ct(Ar):Ar[ct]},[ct]),Y={getKey:ue};function te(Ar){je(function(Nr){var Fr;return typeof Ar=="function"?Fr=Ar(Nr):Fr=Ar,ne.current.scrollTop=Fr,Fr})}var be=Object(g.useRef)({start:0,end:_t.length}),Le=Object(g.useRef)(),Re=pt(_t,ue),$e=ke(Re,1),gt=$e[0];Le.current=gt;var Wt=W(ue,null,null),$t=ke(Wt,4),Dt=$t[0],Kt=$t[1],Yt=$t[2],Qt=$t[3],Mt=g.useMemo(function(){if(!pe)return{scrollHeight:void 0,start:0,end:_t.length-1,offset:void 0};for(var Ar=0,Nr,Fr,tn,qr=_t.length,Or=0;Or=Ne&&Nr===void 0&&(Nr=Or,Fr=Ar),pr>Ne+ie&&tn===void 0&&(tn=Or),Ar=pr}return Nr===void 0&&(Nr=0,Fr=0),tn===void 0&&(tn=_t.length-1),tn=Math.min(tn+1,_t.length),{scrollHeight:Ar,start:Nr,end:tn,offset:Fr}},[pe,Ne,_t,Qt,ie]),dr=Mt.scrollHeight,er=Mt.start,ot=Mt.end,xt=Mt.offset;be.current.start=er,be.current.end=ot;var ut=V(dr,ie);function ft(Ar){var Nr=ut(Ar);Nr!==Ne&&te(Nr)}function Lt(Ar){var Nr=Ar.currentTarget.scrollTop;Nr!==Ne&&te(Nr),Bt==null||Bt(Ar)}var Tt=Ie(pe,function(Ar){te(function(Nr){var Fr=ut(Nr+Ar);return Fr})}),ht=ke(Tt,2),Ht=ht[0],Ft=ht[1];g.useEffect(function(){return ne.current.addEventListener("wheel",Ht),ne.current.addEventListener("DOMMouseScroll",Ft),function(){ne.current.removeEventListener("wheel",Ht),ne.current.removeEventListener("DOMMouseScroll",Ft)}},[pe]);var ir=X(ne,_t,Yt,$,ue,Kt,te);g.useImperativeHandle(et,function(){return{scrollTo:ir}});var Xt=x(_t,er,ot,Dt,dt,Y),mr=null;return ie&&(mr=ee(se({},Qe?"height":"maxHeight",ie),Ct),pe&&(mr.overflowY="hidden",Fe&&(mr.pointerEvents="none"))),g.createElement("div",Object.assign({style:ee(ee({},ye),{},{position:"relative"}),className:At},Ae),g.createElement(or,{className:"".concat(st,"-holder"),style:mr,ref:ne,onScroll:Lt},g.createElement(i,{prefixCls:st,height:dr,offset:xt,onInnerResize:Kt},Xt)),pe&&g.createElement(T,{prefixCls:st,scrollTop:Ne,height:ie,scrollHeight:dr,count:_t.length,onScroll:ft,onStartMove:function(){nt(!0)},onStopMove:function(){nt(!1)}}))}var Rt=g.forwardRef(Be);Rt.displayName="List";var He=Rt,wt=I.a=He},"+rIm":function(D,I,e){var g=e("bYtY"),f=g.retrieve,y=g.defaults,p=g.extend,v=g.each,h=e("7aKB"),c=e("IwbS"),o=e("Qxkt"),i=e("OELB"),n=i.isRadianAroundZero,a=i.remRadian,u=e("oVpE"),r=u.createSymbol,l=e("Fofx"),t=e("QBsz"),s=t.applyTransform,d=e("aX7z"),m=d.shouldShowAllLabels,w=Math.PI,b=function(R,B){this.opt=B,this.axisModel=R,y(B,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new c.Group;var U=new c.Group({position:B.position.slice(),rotation:B.rotation});U.updateTransform(),this._transform=U.transform,this._dumbGroup=U};b.prototype={constructor:b,hasBuilder:function(R){return!!E[R]},add:function(R){E[R].call(this)},getGroup:function(){return this.group}};var E={axisLine:function(){var R=this.opt,B=this.axisModel;if(!B.get("axisLine.show"))return;var U=this.axisModel.axis.getExtent(),H=this._transform,W=[U[0],0],V=[U[1],0];H&&(s(W,W,H),s(V,V,H));var z=p({lineCap:"round"},B.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new c.Line({anid:"line",subPixelOptimize:!0,shape:{x1:W[0],y1:W[1],x2:V[0],y2:V[1]},style:z,strokeContainThreshold:R.strokeContainThreshold||5,silent:!0,z2:1}));var X=B.get("axisLine.symbol"),q=B.get("axisLine.symbolSize"),fe=B.get("axisLine.symbolOffset")||0;if(typeof fe=="number"&&(fe=[fe,fe]),X!=null){typeof X=="string"&&(X=[X,X]),(typeof q=="string"||typeof q=="number")&&(q=[q,q]);var G=q[0],ve=q[1];v([{rotate:R.rotation+Math.PI/2,offset:fe[0],r:0},{rotate:R.rotation-Math.PI/2,offset:fe[1],r:Math.sqrt((W[0]-V[0])*(W[0]-V[0])+(W[1]-V[1])*(W[1]-V[1]))}],function(Se,ge){if(X[ge]!=="none"&&X[ge]!=null){var Pe=r(X[ge],-G/2,-ve/2,G,ve,z.stroke,!0),Ge=Se.r+Se.offset,pt=[W[0]+Ge*Math.cos(R.rotation),W[1]-Ge*Math.sin(R.rotation)];Pe.attr({rotation:Se.rotate,position:pt,silent:!0,z2:11}),this.group.add(Pe)}},this)}},axisTickLabel:function(){var R=this.axisModel,B=this.opt,U=k(this,R,B),H=j(this,R,B);x(R,H,U),P(this,R,B)},axisName:function(){var R=this.opt,B=this.axisModel,U=f(R.axisName,B.get("name"));if(!U)return;var H=B.get("nameLocation"),W=R.nameDirection,V=B.getModel("nameTextStyle"),z=B.get("nameGap")||0,X=this.axisModel.axis.getExtent(),q=X[0]>X[1]?-1:1,fe=[H==="start"?X[0]-q*z:H==="end"?X[1]+q*z:(X[0]+X[1])/2,N(H)?R.labelOffset+W*z:0],G,ve=B.get("nameRotate");ve!=null&&(ve=ve*w/180);var Se;N(H)?G=S(R.rotation,ve!=null?ve:R.rotation,W):(G=T(R,H,ve||0,X),Se=R.axisNameAvailableWidth,Se!=null&&(Se=Math.abs(Se/Math.sin(G.rotation)),!isFinite(Se)&&(Se=null)));var ge=V.getFont(),Pe=B.get("nameTruncate",!0)||{},Ge=Pe.ellipsis,pt=f(R.nameTruncateMaxWidth,Pe.maxWidth,Se),Te=Ge!=null&&pt!=null?h.truncateText(U,pt,ge,Ge,{minChar:2,placeholder:Pe.placeholder}):U,xe=B.get("tooltip",!0),lt=B.mainType,Ie={componentType:lt,name:U,$vars:["name"]};Ie[lt+"Index"]=B.componentIndex;var de=new c.Text({anid:"name",__fullText:U,__truncatedText:Te,position:fe,rotation:G.rotation,silent:O(B),z2:1,tooltip:xe&&xe.show?p({content:U,formatter:function(){return U},formatterParams:Ie},xe):null});c.setTextStyle(de.style,V,{text:Te,textFont:ge,textFill:V.getTextColor()||B.get("axisLine.lineStyle.color"),textAlign:V.get("align")||G.textAlign,textVerticalAlign:V.get("verticalAlign")||G.textVerticalAlign}),B.get("triggerEvent")&&(de.eventData=A(B),de.eventData.targetType="axisName",de.eventData.name=U),this._dumbGroup.add(de),de.updateTransform(),this.group.add(de),de.decomposeTransform()}},A=b.makeAxisEventDataBase=function(R){var B={componentType:R.mainType,componentIndex:R.componentIndex};return B[R.mainType+"Index"]=R.componentIndex,B},S=b.innerTextLayout=function(R,B,U){var H=a(B-R),W,V;return n(H)?(V=U>0?"top":"bottom",W="center"):n(H-w)?(V=U>0?"bottom":"top",W="center"):(V="middle",H>0&&H0?"right":"left":W=U>0?"left":"right"),{rotation:H,textAlign:W,textVerticalAlign:V}};function T(R,B,U,H){var W=a(U-R.rotation),V,z,X=H[0]>H[1],q=B==="start"&&!X||B!=="start"&&X;return n(W-w/2)?(z=q?"bottom":"top",V="center"):n(W-w*1.5)?(z=q?"top":"bottom",V="center"):(z="middle",Ww/2?V=q?"left":"right":V=q?"right":"left"),{rotation:W,textAlign:V,textVerticalAlign:z}}var O=b.isLabelSilent=function(R){var B=R.get("tooltip");return R.get("silent")||!(R.get("triggerEvent")||B&&B.show)};function x(R,B,U){if(m(R.axis))return;var H=R.get("axisLabel.showMinLabel"),W=R.get("axisLabel.showMaxLabel");B=B||[],U=U||[];var V=B[0],z=B[1],X=B[B.length-1],q=B[B.length-2],fe=U[0],G=U[1],ve=U[U.length-1],Se=U[U.length-2];H===!1?(C(V),C(fe)):_(V,z)&&(H?(C(z),C(G)):(C(V),C(fe))),W===!1?(C(X),C(ve)):_(q,X)&&(W?(C(q),C(Se)):(C(X),C(ve)))}function C(R){R&&(R.ignore=!0)}function _(R,B,U){var H=R&&R.getBoundingRect().clone(),W=B&&B.getBoundingRect().clone();if(!H||!W)return;var V=l.identity([]);return l.rotate(V,V,-R.rotation),H.applyTransform(l.mul([],V,R.getLocalTransform())),W.applyTransform(l.mul([],V,B.getLocalTransform())),H.intersect(W)}function N(R){return R==="middle"||R==="center"}function F(R,B,U,H,W){for(var V=[],z=[],X=[],q=0;qt}function H(ae){var me=ae.length-1;return me<0&&(me=0),[ae[0],ae[me]]}function W(ae,me,Oe,Ze){var vt=new v.Group;return vt.add(new v.Rect({name:"main",style:q(Oe),silent:!0,draggable:!0,cursor:"move",drift:o(ae,me,vt,"nswe"),ondragend:o(B,me,{isEnd:!0})})),i(Ze,function(Ct){vt.add(new v.Rect({name:Ct,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:o(ae,me,vt,Ct),ondragend:o(B,me,{isEnd:!0})}))}),vt}function V(ae,me,Oe,Ze){var vt=Ze.brushStyle.lineWidth||0,Ct=u(vt,s),Be=Oe[0][0],Rt=Oe[1][0],He=Be-vt/2,wt=Rt-vt/2,Ye=Oe[0][1],et=Oe[1][1],rt=Ye-Ct+vt/2,st=et-Ct+vt/2,Ve=Ye-Be,ie=et-Rt,$=Ve+vt,it=ie+vt;X(ae,me,"main",Be,Rt,Ve,ie),Ze.transformable&&(X(ae,me,"w",He,wt,Ct,it),X(ae,me,"e",rt,wt,Ct,it),X(ae,me,"n",He,wt,$,Ct),X(ae,me,"s",He,st,$,Ct),X(ae,me,"nw",He,wt,Ct,Ct),X(ae,me,"ne",rt,wt,Ct,Ct),X(ae,me,"sw",He,st,Ct,Ct),X(ae,me,"se",rt,st,Ct,Ct))}function z(ae,me){var Oe=me.__brushOption,Ze=Oe.transformable,vt=me.childAt(0);vt.useStyle(q(Oe)),vt.attr({silent:!Ze,cursor:Ze?"move":"default"}),i(["w","e","n","s","se","sw","ne","nw"],function(Ct){var Be=me.childOfName(Ct),Rt=ve(ae,Ct);Be&&Be.attr({silent:!Ze,invisible:!Ze,cursor:Ze?w[Rt]+"-resize":null})})}function X(ae,me,Oe,Ze,vt,Ct,Be){var Rt=me.childOfName(Oe);Rt&&Rt.setShape(pt(Ge(ae,me,[[Ze,vt],[Ze+Ct,vt+Be]])))}function q(ae){return y.defaults({strokeNoScale:!0},ae.brushStyle)}function fe(ae,me,Oe,Ze){var vt=[a(ae,Oe),a(me,Ze)],Ct=[u(ae,Oe),u(me,Ze)];return[[vt[0],Ct[0]],[vt[1],Ct[1]]]}function G(ae){return v.getTransform(ae.group)}function ve(ae,me){if(me.length>1){me=me.split("");var Oe=[ve(ae,me[0]),ve(ae,me[1])];return(Oe[0]==="e"||Oe[0]==="w")&&Oe.reverse(),Oe.join("")}else{var Ze={w:"left",e:"right",n:"top",s:"bottom"},vt={left:"w",right:"e",top:"n",bottom:"s"},Oe=v.transformDirection(Ze[me],G(ae));return vt[Oe]}}function Se(ae,me,Oe,Ze,vt,Ct,Be,Rt){var He=Ze.__brushOption,wt=ae(He.range),Ye=Pe(Oe,Ct,Be);i(vt.split(""),function(et){var rt=m[et];wt[rt[0]][rt[1]]+=Ye[rt[0]]}),He.range=me(fe(wt[0][0],wt[1][0],wt[0][1],wt[1][1])),k(Oe,Ze),B(Oe,{isEnd:!1})}function ge(ae,me,Oe,Ze,vt){var Ct=me.__brushOption.range,Be=Pe(ae,Oe,Ze);i(Ct,function(Rt){Rt[0]+=Be[0],Rt[1]+=Be[1]}),k(ae,me),B(ae,{isEnd:!1})}function Pe(ae,me,Oe){var Ze=ae.group,vt=Ze.transformCoordToLocal(me,Oe),Ct=Ze.transformCoordToLocal(0,0);return[vt[0]-Ct[0],vt[1]-Ct[1]]}function Ge(ae,me,Oe){var Ze=K(ae,me);return Ze&&Ze!==!0?Ze.clipPath(Oe,ae._transform):y.clone(Oe)}function pt(ae){var me=a(ae[0][0],ae[1][0]),Oe=a(ae[0][1],ae[1][1]),Ze=u(ae[0][0],ae[1][0]),vt=u(ae[0][1],ae[1][1]);return{x:me,y:Oe,width:Ze-me,height:vt-Oe}}function Te(ae,me,Oe){if(!ae._brushType||ke(ae,me))return;var Ze=ae._zr,vt=ae._covers,Ct=j(ae,me,Oe);if(!ae._dragging)for(var Be=0;BeZe.getWidth()||Oe<0||Oe>Ze.getHeight()}var Ce={lineX:ze(0),lineY:ze(1),rect:{createCover:function(ae,me){return W(o(Se,function(Oe){return Oe},function(Oe){return Oe}),ae,me,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(ae){var me=H(ae);return fe(me[1][0],me[1][1],me[0][0],me[0][1])},updateCoverShape:function(ae,me,Oe,Ze){V(ae,me,Oe,Ze)},updateCommon:z,contain:lt},polygon:{createCover:function(ae,me){var Oe=new v.Group;return Oe.add(new v.Polyline({name:"main",style:q(me),silent:!0})),Oe},getCreatingRange:function(ae){return ae},endCreating:function(ae,me){me.remove(me.childAt(0)),me.add(new v.Polygon({name:"main",draggable:!0,drift:o(ge,ae,me),ondragend:o(B,ae,{isEnd:!0})}))},updateCoverShape:function(ae,me,Oe,Ze){me.childAt(0).setShape({points:Ge(ae,me,Oe)})},updateCommon:z,contain:lt}};function ze(ae){return{createCover:function(me,Oe){return W(o(Se,function(Ze){var vt=[Ze,[0,100]];return ae&&vt.reverse(),vt},function(Ze){return Ze[ae]}),me,Oe,[["w","e"],["n","s"]][ae])},getCreatingRange:function(me){var Oe=H(me),Ze=a(Oe[0][ae],Oe[1][ae]),vt=u(Oe[0][ae],Oe[1][ae]);return[Ze,vt]},updateCoverShape:function(me,Oe,Ze,vt){var Ct,Be=K(me,Oe);if(Be!==!0&&Be.getLinearBrushOtherExtent)Ct=Be.getLinearBrushOtherExtent(ae,me._transform);else{var Rt=me._zr;Ct=[0,[Rt.getWidth(),Rt.getHeight()][1-ae]]}var He=[Ze,Ct];ae&&He.reverse(),V(me,Oe,He,vt)},updateCommon:z,contain:lt}}var _e=A;D.exports=_e},"/MfK":function(D,I,e){"use strict";var g=e("q1tI"),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},y=f,p=e("6VBw"),v=function(o,i){return g.createElement(p.a,Object.assign({},o,{ref:i,icon:y}))};v.displayName="DeleteOutlined";var h=I.a=g.forwardRef(v)},"/POA":function(D,I,e){!function(g,f){if(!0)D.exports=f();else var y,p}(window,function(){return function(g){var f={};function y(p){if(f[p])return f[p].exports;var v=f[p]={i:p,l:!1,exports:{}};return g[p].call(v.exports,v,v.exports,y),v.l=!0,v.exports}return y.m=g,y.c=f,y.d=function(p,v,h){y.o(p,v)||Object.defineProperty(p,v,{enumerable:!0,get:h})},y.r=function(p){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(p,"__esModule",{value:!0})},y.t=function(p,v){if(1&v&&(p=y(p)),8&v)return p;if(4&v&&typeof p=="object"&&p&&p.__esModule)return p;var h=Object.create(null);if(y.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:p}),2&v&&typeof p!="string")for(var c in p)y.d(h,c,function(o){return p[o]}.bind(null,c));return h},y.n=function(p){var v=p&&p.__esModule?function(){return p.default}:function(){return p};return y.d(v,"a",v),v},y.o=function(p,v){return Object.prototype.hasOwnProperty.call(p,v)},y.p="",y(y.s=34)}([function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.forwardEvent=f.EventEmitter=void 0;var p=function(){function v(){this._listeners=[],this._disposed=!1}return Object.defineProperty(v.prototype,"event",{get:function(){var c=this;return this._event||(this._event=function(o){return c._listeners.push(o),{dispose:function(){if(!c._disposed){for(var n=0;n>22},a.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?h.stringFromCodePoint(2097151&this.content):""},a.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},a.prototype.setFromCharData=function(u){this.fg=u[c.CHAR_DATA_ATTR_INDEX],this.bg=0;var r=!1;if(u[c.CHAR_DATA_CHAR_INDEX].length>2)r=!0;else if(u[c.CHAR_DATA_CHAR_INDEX].length===2){var l=u[c.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=l&&l<=56319){var t=u[c.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=t&&t<=57343?this.content=1024*(l-55296)+t-56320+65536|u[c.CHAR_DATA_WIDTH_INDEX]<<22:r=!0}else r=!0}else this.content=u[c.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|u[c.CHAR_DATA_WIDTH_INDEX]<<22;r&&(this.combinedData=u[c.CHAR_DATA_CHAR_INDEX],this.content=2097152|u[c.CHAR_DATA_WIDTH_INDEX]<<22)},a.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},a}(o.AttributeData);f.CellData=i},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.ISoundService=f.ISelectionService=f.IRenderService=f.IMouseService=f.ICoreBrowserService=f.ICharSizeService=void 0;var p=y(14);f.ICharSizeService=p.createDecorator("CharSizeService"),f.ICoreBrowserService=p.createDecorator("CoreBrowserService"),f.IMouseService=p.createDecorator("MouseService"),f.IRenderService=p.createDecorator("RenderService"),f.ISelectionService=p.createDecorator("SelectionService"),f.ISoundService=p.createDecorator("SoundService")},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.ExtendedAttrs=f.AttributeData=void 0;var p=function(){function h(){this.fg=0,this.bg=0,this.extended=new v}return h.toColorRGB=function(c){return[c>>>16&255,c>>>8&255,255&c]},h.fromColorRGB=function(c){return(255&c[0])<<16|(255&c[1])<<8|255&c[2]},h.prototype.clone=function(){var c=new h;return c.fg=this.fg,c.bg=this.bg,c.extended=this.extended.clone(),c},h.prototype.isInverse=function(){return 67108864&this.fg},h.prototype.isBold=function(){return 134217728&this.fg},h.prototype.isUnderline=function(){return 268435456&this.fg},h.prototype.isBlink=function(){return 536870912&this.fg},h.prototype.isInvisible=function(){return 1073741824&this.fg},h.prototype.isItalic=function(){return 67108864&this.bg},h.prototype.isDim=function(){return 134217728&this.bg},h.prototype.getFgColorMode=function(){return 50331648&this.fg},h.prototype.getBgColorMode=function(){return 50331648&this.bg},h.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},h.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},h.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},h.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},h.prototype.isFgDefault=function(){return(50331648&this.fg)==0},h.prototype.isBgDefault=function(){return(50331648&this.bg)==0},h.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},h.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},h.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},h.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},h.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},h.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()},h.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},h.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},h.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},h.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},h.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},h}();f.AttributeData=p;var v=function(){function h(c,o){c===void 0&&(c=0),o===void 0&&(o=-1),this.underlineStyle=c,this.underlineColor=o}return h.prototype.clone=function(){return new h(this.underlineStyle,this.underlineColor)},h.prototype.isEmpty=function(){return this.underlineStyle===0},h}();f.ExtendedAttrs=v},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.addDisposableDomListener=void 0,f.addDisposableDomListener=function(p,v,h,c){p.addEventListener(v,h,c);var o=!1;return{dispose:function(){o||(o=!0,p.removeEventListener(v,h,c))}}}},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.Utf8ToUtf32=f.StringToUtf32=f.utf32ToString=f.stringFromCodePoint=void 0,f.stringFromCodePoint=function(h){return h>65535?(h-=65536,String.fromCharCode(55296+(h>>10))+String.fromCharCode(h%1024+56320)):String.fromCharCode(h)},f.utf32ToString=function(h,c,o){c===void 0&&(c=0),o===void 0&&(o=h.length);for(var i="",n=c;n65535?(a-=65536,i+=String.fromCharCode(55296+(a>>10))+String.fromCharCode(a%1024+56320)):i+=String.fromCharCode(a)}return i};var p=function(){function h(){this._interim=0}return h.prototype.clear=function(){this._interim=0},h.prototype.decode=function(c,o){var i=c.length;if(!i)return 0;var n=0,a=0;this._interim&&(56320<=(l=c.charCodeAt(a++))&&l<=57343?o[n++]=1024*(this._interim-55296)+l-56320+65536:(o[n++]=this._interim,o[n++]=l),this._interim=0);for(var u=a;u=i)return this._interim=r,n;var l;56320<=(l=c.charCodeAt(u))&&l<=57343?o[n++]=1024*(r-55296)+l-56320+65536:(o[n++]=r,o[n++]=l)}else o[n++]=r}return n},h}();f.StringToUtf32=p;var v=function(){function h(){this.interim=new Uint8Array(3)}return h.prototype.clear=function(){this.interim.fill(0)},h.prototype.decode=function(c,o){var i=c.length;if(!i)return 0;var n,a,u,r,l=0,t=0,s=0;if(this.interim[0]){var d=!1,m=this.interim[0];m&=(224&m)==192?31:(240&m)==224?15:7;for(var w=0,b=void 0;(b=63&this.interim[++w])&&w<4;)m<<=6,m|=b;for(var E=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,A=E-w;s=i)return 0;if((192&(b=c[s++]))!=128){s--,d=!0;break}this.interim[w++]=b,m<<=6,m|=63&b}d||(E===2?m<128?s--:o[l++]=m:E===3?m<2048||m>=55296&&m<=57343||(o[l++]=m):m<65536||m>1114111||(o[l++]=m)),this.interim.fill(0)}for(var S=i-4,T=s;T=i)return this.interim[0]=n,l;if((192&(a=c[T++]))!=128){T--;continue}if((t=(31&n)<<6|63&a)<128){T--;continue}o[l++]=t}else if((240&n)==224){if(T>=i)return this.interim[0]=n,l;if((192&(a=c[T++]))!=128){T--;continue}if(T>=i)return this.interim[0]=n,this.interim[1]=a,l;if((192&(u=c[T++]))!=128){T--;continue}if((t=(15&n)<<12|(63&a)<<6|63&u)<2048||t>=55296&&t<=57343)continue;o[l++]=t}else if((248&n)==240){if(T>=i)return this.interim[0]=n,l;if((192&(a=c[T++]))!=128){T--;continue}if(T>=i)return this.interim[0]=n,this.interim[1]=a,l;if((192&(u=c[T++]))!=128){T--;continue}if(T>=i)return this.interim[0]=n,this.interim[1]=a,this.interim[2]=u,l;if((192&(r=c[T++]))!=128){T--;continue}if((t=(7&n)<<18|(63&a)<<12|(63&u)<<6|63&r)<65536||t>1114111)continue;o[l++]=t}}return l},h}();f.Utf8ToUtf32=v},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CHAR_ATLAS_CELL_SPACING=f.DIM_OPACITY=f.INVERTED_DEFAULT_COLOR=void 0,f.INVERTED_DEFAULT_COLOR=257,f.DIM_OPACITY=.5,f.CHAR_ATLAS_CELL_SPACING=1},function(g,f,y){"use strict";var p,v,h,c;function o(n){var a=n.toString(16);return a.length<2?"0"+a:a}function i(n,a){return n>>0}}(p=f.channels||(f.channels={})),(v=f.color||(f.color={})).blend=function(n,a){var u=(255&a.rgba)/255;if(u===1)return{css:a.css,rgba:a.rgba};var r=a.rgba>>24&255,l=a.rgba>>16&255,t=a.rgba>>8&255,s=n.rgba>>24&255,d=n.rgba>>16&255,m=n.rgba>>8&255,w=s+Math.round((r-s)*u),b=d+Math.round((l-d)*u),E=m+Math.round((t-m)*u);return{css:p.toCss(w,b,E),rgba:p.toRgba(w,b,E)}},v.isOpaque=function(n){return(255&n.rgba)==255},v.ensureContrastRatio=function(n,a,u){var r=c.ensureContrastRatio(n.rgba,a.rgba,u);if(r)return c.toColor(r>>24&255,r>>16&255,r>>8&255)},v.opaque=function(n){var a=(255|n.rgba)>>>0,u=c.toChannels(a),r=u[0],l=u[1],t=u[2];return{css:p.toCss(r,l,t),rgba:a}},v.opacity=function(n,a){var u=Math.round(255*a),r=c.toChannels(n.rgba),l=r[0],t=r[1],s=r[2];return{css:p.toCss(l,t,s,u),rgba:p.toRgba(l,t,s,u)}},(f.css||(f.css={})).toColor=function(n){switch(n.length){case 7:return{css:n,rgba:(parseInt(n.slice(1),16)<<8|255)>>>0};case 9:return{css:n,rgba:parseInt(n.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(n){function a(u,r,l){var t=u/255,s=r/255,d=l/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))+.0722*(d<=.03928?d/12.92:Math.pow((d+.055)/1.055,2.4))}n.relativeLuminance=function(u){return a(u>>16&255,u>>8&255,255&u)},n.relativeLuminance2=a}(h=f.rgb||(f.rgb={})),function(n){function a(r,l,t){for(var s=r>>24&255,d=r>>16&255,m=r>>8&255,w=l>>24&255,b=l>>16&255,E=l>>8&255,A=i(h.relativeLuminance2(w,E,b),h.relativeLuminance2(s,d,m));A0||b>0||E>0);)w-=Math.max(0,Math.ceil(.1*w)),b-=Math.max(0,Math.ceil(.1*b)),E-=Math.max(0,Math.ceil(.1*E)),A=i(h.relativeLuminance2(w,E,b),h.relativeLuminance2(s,d,m));return(w<<24|b<<16|E<<8|255)>>>0}function u(r,l,t){for(var s=r>>24&255,d=r>>16&255,m=r>>8&255,w=l>>24&255,b=l>>16&255,E=l>>8&255,A=i(h.relativeLuminance2(w,E,b),h.relativeLuminance2(s,d,m));A>>0}n.ensureContrastRatio=function(r,l,t){var s=h.relativeLuminance(r>>8),d=h.relativeLuminance(l>>8);if(i(s,d)>24&255,r>>16&255,r>>8&255,255&r]},n.toColor=function(r,l,t){return{css:p.toCss(r,l,t),rgba:p.toRgba(r,l,t)}}}(c=f.rgba||(f.rgba={})),f.toPaddedHex=o,f.contrastRatio=i},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.isLinux=f.isWindows=f.isIphone=f.isIpad=f.isMac=f.isSafari=f.isFirefox=void 0;var p=typeof navigator=="undefined",v=p?"node":navigator.userAgent,h=p?"node":navigator.platform;function c(o,i){return o.indexOf(i)>=0}f.isFirefox=!!~v.indexOf("Firefox"),f.isSafari=/^((?!chrome|android).)*safari/i.test(v),f.isMac=c(["Macintosh","MacIntel","MacPPC","Mac68K"],h),f.isIpad=h==="iPad",f.isIphone=h==="iPhone",f.isWindows=c(["Windows","Win16","Win32","WinCE"],h),f.isLinux=h.indexOf("Linux")>=0},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.C1=f.C0=void 0,function(p){p.NUL="\0",p.SOH="",p.STX="",p.ETX="",p.EOT="",p.ENQ="",p.ACK="",p.BEL="\x07",p.BS="\b",p.HT=" ",p.LF=` `,p.VT="\v",p.FF="\f",p.CR="\r",p.SO="",p.SI="",p.DLE="",p.DC1="",p.DC2="",p.DC3="",p.DC4="",p.NAK="",p.SYN="",p.ETB="",p.CAN="",p.EM="",p.SUB="",p.ESC="",p.FS="",p.GS="",p.RS="",p.US="",p.SP=" ",p.DEL="\x7F"}(f.C0||(f.C0={})),function(p){p.PAD="\x80",p.HOP="\x81",p.BPH="\x82",p.NBH="\x83",p.IND="\x84",p.NEL="\x85",p.SSA="\x86",p.ESA="\x87",p.HTS="\x88",p.HTJ="\x89",p.VTS="\x8A",p.PLD="\x8B",p.PLU="\x8C",p.RI="\x8D",p.SS2="\x8E",p.SS3="\x8F",p.DCS="\x90",p.PU1="\x91",p.PU2="\x92",p.STS="\x93",p.CCH="\x94",p.MW="\x95",p.SPA="\x96",p.EPA="\x97",p.SOS="\x98",p.SGCI="\x99",p.SCI="\x9A",p.CSI="\x9B",p.ST="\x9C",p.OSC="\x9D",p.PM="\x9E",p.APC="\x9F"}(f.C1||(f.C1={}))},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.BaseRenderLayer=void 0;var p=y(3),v=y(9),h=y(25),c=y(6),o=y(28),i=y(10),n=y(17),a=function(){function u(r,l,t,s,d,m,w,b){this._container=r,this._alpha=s,this._colors=d,this._rendererId=m,this._bufferService=w,this._optionsService=b,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-"+l+"-layer"),this._canvas.style.zIndex=t.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return u.prototype.dispose=function(){var r;n.removeElementFromParent(this._canvas),(r=this._charAtlas)===null||r===void 0||r.dispose()},u.prototype._initCanvas=function(){this._ctx=o.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},u.prototype.onOptionsChanged=function(){},u.prototype.onBlur=function(){},u.prototype.onFocus=function(){},u.prototype.onCursorMove=function(){},u.prototype.onGridChanged=function(r,l){},u.prototype.onSelectionChanged=function(r,l,t){t===void 0&&(t=!1)},u.prototype.setColors=function(r){this._refreshCharAtlas(r)},u.prototype._setTransparency=function(r){if(r!==this._alpha){var l=this._canvas;this._alpha=r,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,l),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},u.prototype._refreshCharAtlas=function(r){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=h.acquireCharAtlas(this._optionsService.options,this._rendererId,r,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},u.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)},u.prototype._fillCells=function(r,l,t,s){this._ctx.fillRect(r*this._scaledCellWidth,l*this._scaledCellHeight,t*this._scaledCellWidth,s*this._scaledCellHeight)},u.prototype._fillBottomLineAtCells=function(r,l,t){t===void 0&&(t=1),this._ctx.fillRect(r*this._scaledCellWidth,(l+1)*this._scaledCellHeight-window.devicePixelRatio-1,t*this._scaledCellWidth,window.devicePixelRatio)},u.prototype._fillLeftLineAtCell=function(r,l,t){this._ctx.fillRect(r*this._scaledCellWidth,l*this._scaledCellHeight,window.devicePixelRatio*t,this._scaledCellHeight)},u.prototype._strokeRectAtCell=function(r,l,t,s){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(r*this._scaledCellWidth+window.devicePixelRatio/2,l*this._scaledCellHeight+window.devicePixelRatio/2,t*this._scaledCellWidth-window.devicePixelRatio,s*this._scaledCellHeight-window.devicePixelRatio)},u.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))},u.prototype._clearCells=function(r,l,t,s){this._alpha?this._ctx.clearRect(r*this._scaledCellWidth,l*this._scaledCellHeight,t*this._scaledCellWidth,s*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(r*this._scaledCellWidth,l*this._scaledCellHeight,t*this._scaledCellWidth,s*this._scaledCellHeight))},u.prototype._fillCharTrueColor=function(r,l,t){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(t),this._ctx.fillText(r.getChars(),l*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},u.prototype._drawChars=function(r,l,t){var s,d,m=this._getContrastColor(r);m||r.isFgRGB()||r.isBgRGB()?this._drawUncachedChars(r,l,t,m):(r.isInverse()?(s=r.isBgDefault()?v.INVERTED_DEFAULT_COLOR:r.getBgColor(),d=r.isFgDefault()?v.INVERTED_DEFAULT_COLOR:r.getFgColor()):(d=r.isBgDefault()?p.DEFAULT_COLOR:r.getBgColor(),s=r.isFgDefault()?p.DEFAULT_COLOR:r.getFgColor()),s+=this._optionsService.options.drawBoldTextInBrightColors&&r.isBold()&&s<8?8:0,this._currentGlyphIdentifier.chars=r.getChars()||p.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=r.getCode()||p.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=d,this._currentGlyphIdentifier.fg=s,this._currentGlyphIdentifier.bold=!!r.isBold(),this._currentGlyphIdentifier.dim=!!r.isDim(),this._currentGlyphIdentifier.italic=!!r.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,l*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(r,l,t))},u.prototype._drawUncachedChars=function(r,l,t,s){if(this._ctx.save(),this._ctx.font=this._getFont(!!r.isBold(),!!r.isItalic()),this._ctx.textBaseline="middle",r.isInverse())if(s)this._ctx.fillStyle=s.css;else if(r.isBgDefault())this._ctx.fillStyle=i.color.opaque(this._colors.background).css;else if(r.isBgRGB())this._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(r.getBgColor()).join(",")+")";else{var d=r.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&r.isBold()&&d<8&&(d+=8),this._ctx.fillStyle=this._colors.ansi[d].css}else if(s)this._ctx.fillStyle=s.css;else if(r.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(r.isFgRGB())this._ctx.fillStyle="rgb("+c.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(t),r.isDim()&&(this._ctx.globalAlpha=v.DIM_OPACITY),this._ctx.fillText(r.getChars(),l*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},u.prototype._clipRow=function(r){this._ctx.beginPath(),this._ctx.rect(0,r*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},u.prototype._getFont=function(r,l){return(l?"italic":"")+" "+(r?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},u.prototype._getContrastColor=function(r){if(this._optionsService.options.minimumContrastRatio!==1){var l=this._colors.contrastCache.getColor(r.bg,r.fg);if(l!==void 0)return l||void 0;var t=r.getFgColor(),s=r.getFgColorMode(),d=r.getBgColor(),m=r.getBgColorMode(),w=!!r.isInverse(),b=!!r.isInverse();if(w){var E=t;t=d,d=E;var A=s;s=m,m=A}var S=this._resolveBackgroundRgba(m,d,w),T=this._resolveForegroundRgba(s,t,w,b),O=i.rgba.ensureContrastRatio(S,T,this._optionsService.options.minimumContrastRatio);if(O){var x={css:i.channels.toCss(O>>24&255,O>>16&255,O>>8&255),rgba:O};return this._colors.contrastCache.setColor(r.bg,r.fg,x),x}this._colors.contrastCache.setColor(r.bg,r.fg,null)}},u.prototype._resolveBackgroundRgba=function(r,l,t){switch(r){case 16777216:case 33554432:return this._colors.ansi[l].rgba;case 50331648:return l<<8;case 0:default:return t?this._colors.foreground.rgba:this._colors.background.rgba}},u.prototype._resolveForegroundRgba=function(r,l,t,s){switch(r){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&s&&l<8&&(l+=8),this._colors.ansi[l].rgba;case 50331648:return l<<8;case 0:default:return t?this._colors.background.rgba:this._colors.foreground.rgba}},u}();f.BaseRenderLayer=a},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.createDecorator=f.getServiceDependencies=f.serviceRegistry=void 0;function p(v,h,c){h.di$target===h?h.di$dependencies.push({id:v,index:c}):(h.di$dependencies=[{id:v,index:c}],h.di$target=h)}f.serviceRegistry=new Map,f.getServiceDependencies=function(v){return v.di$dependencies||[]},f.createDecorator=function(v){if(f.serviceRegistry.has(v))return f.serviceRegistry.get(v);var h=function c(o,i,n){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");p(c,o,n)};return h.toString=function(){return v},f.serviceRegistry.set(v,h),h}},function(g,f,y){"use strict";function p(v,h,c,o){if(c===void 0&&(c=0),o===void 0&&(o=v.length),c>=v.length)return v;c=(v.length+c)%v.length,o=o>=v.length?v.length:(v.length+o)%v.length;for(var i=c;i>22,2097152&a?this._combined[n].charCodeAt(this._combined[n].length-1):u]},i.prototype.set=function(n,a){this._data[3*n+1]=a[v.CHAR_DATA_ATTR_INDEX],a[v.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[n]=a[1],this._data[3*n+0]=2097152|n|a[v.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*n+0]=a[v.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|a[v.CHAR_DATA_WIDTH_INDEX]<<22},i.prototype.getWidth=function(n){return this._data[3*n+0]>>22},i.prototype.hasWidth=function(n){return 12582912&this._data[3*n+0]},i.prototype.getFg=function(n){return this._data[3*n+1]},i.prototype.getBg=function(n){return this._data[3*n+2]},i.prototype.hasContent=function(n){return 4194303&this._data[3*n+0]},i.prototype.getCodePoint=function(n){var a=this._data[3*n+0];return 2097152&a?this._combined[n].charCodeAt(this._combined[n].length-1):2097151&a},i.prototype.isCombined=function(n){return 2097152&this._data[3*n+0]},i.prototype.getString=function(n){var a=this._data[3*n+0];return 2097152&a?this._combined[n]:2097151&a?p.stringFromCodePoint(2097151&a):""},i.prototype.loadCell=function(n,a){var u=3*n;return a.content=this._data[u+0],a.fg=this._data[u+1],a.bg=this._data[u+2],2097152&a.content&&(a.combinedData=this._combined[n]),268435456&a.bg&&(a.extended=this._extendedAttrs[n]),a},i.prototype.setCell=function(n,a){2097152&a.content&&(this._combined[n]=a.combinedData),268435456&a.bg&&(this._extendedAttrs[n]=a.extended),this._data[3*n+0]=a.content,this._data[3*n+1]=a.fg,this._data[3*n+2]=a.bg},i.prototype.setCellFromCodePoint=function(n,a,u,r,l,t){268435456&l&&(this._extendedAttrs[n]=t),this._data[3*n+0]=a|u<<22,this._data[3*n+1]=r,this._data[3*n+2]=l},i.prototype.addCodepointToCell=function(n,a){var u=this._data[3*n+0];2097152&u?this._combined[n]+=p.stringFromCodePoint(a):(2097151&u?(this._combined[n]=p.stringFromCodePoint(2097151&u)+p.stringFromCodePoint(a),u&=-2097152,u|=2097152):u=a|1<<22,this._data[3*n+0]=u)},i.prototype.insertCells=function(n,a,u,r){if((n%=this.length)&&this.getWidth(n-1)===2&&this.setCellFromCodePoint(n-1,0,1,(r==null?void 0:r.fg)||0,(r==null?void 0:r.bg)||0,(r==null?void 0:r.extended)||new c.ExtendedAttrs),a=0;--t)this.setCell(n+a+t,this.loadCell(n+t,l));for(t=0;tthis.length){var u=new Uint32Array(3*n);this.length&&(3*n=n&&delete this._combined[t]}}else this._data=new Uint32Array(0),this._combined={};this.length=n}},i.prototype.fill=function(n){this._combined={},this._extendedAttrs={};for(var a=0;a=0;--n)if(4194303&this._data[3*n+0])return n+(this._data[3*n+0]>>22);return 0},i.prototype.copyCellsFrom=function(n,a,u,r,l){var t=n._data;if(l)for(var s=r-1;s>=0;s--)for(var d=0;d<3;d++)this._data[3*(u+s)+d]=t[3*(a+s)+d];else for(s=0;s=a&&(this._combined[w-a+u]=n._combined[w])}},i.prototype.translateToString=function(n,a,u){n===void 0&&(n=!1),a===void 0&&(a=0),u===void 0&&(u=this.length),n&&(u=Math.min(u,this.getTrimmedLength()));for(var r="";a>22||1}return r},i}();f.BufferLine=o},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.removeElementFromParent=void 0,f.removeElementFromParent=function(){for(var p,v=[],h=0;h24)return O.setWinLines||!1;switch(T){case 1:return!!O.restoreWin;case 2:return!!O.minimizeWin;case 3:return!!O.setWinPosition;case 4:return!!O.setWinSizePixels;case 5:return!!O.raiseWin;case 6:return!!O.lowerWin;case 7:return!!O.refreshWin;case 8:return!!O.setWinSizeChars;case 9:return!!O.maximizeWin;case 10:return!!O.fullscreenWin;case 11:return!!O.getWinState;case 13:return!!O.getWinPosition;case 14:return!!O.getWinSizePixels;case 15:return!!O.getScreenSizePixels;case 16:return!!O.getCellSizePixels;case 18:return!!O.getWinSizeChars;case 19:return!!O.getScreenSizeChars;case 20:return!!O.getIconTitle;case 21:return!!O.getWinTitle;case 22:return!!O.pushTitle;case 23:return!!O.popTitle;case 24:return!!O.setWinLines}return!1}!function(T){T[T.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",T[T.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(h=f.WindowsOptionsReportType||(f.WindowsOptionsReportType={}));var A=function(){function T(O,x,C,_){this._bufferService=O,this._coreService=x,this._logService=C,this._optionsService=_,this._data=new Uint32Array(0)}return T.prototype.hook=function(O){this._data=new Uint32Array(0)},T.prototype.put=function(O,x,C){this._data=a.concat(this._data,O.subarray(x,C))},T.prototype.unhook=function(O){if(O){var x=u.utf32ToString(this._data);switch(this._data=new Uint32Array(0),x){case'"q':return this._coreService.triggerDataEvent(c.C0.ESC+'P1$r0"q'+c.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(c.C0.ESC+'P1$r61;1"p'+c.C0.ESC+"\\");case"r":var C=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(c.C0.ESC+"P1$r"+C+c.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(c.C0.ESC+"P1$r0m"+c.C0.ESC+"\\");case" q":var _={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return _-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(c.C0.ESC+"P1$r"+_+" q"+c.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",x),this._coreService.triggerDataEvent(c.C0.ESC+"P0$r"+c.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},T}(),S=function(T){function O(x,C,_,N,F,k,P,j,K){K===void 0&&(K=new i.EscapeSequenceParser);var R=T.call(this)||this;R._bufferService=x,R._charsetService=C,R._coreService=_,R._dirtyRowService=N,R._logService=F,R._optionsService=k,R._coreMouseService=P,R._unicodeService=j,R._parser=K,R._parseBuffer=new Uint32Array(4096),R._stringDecoder=new u.StringToUtf32,R._utf8Decoder=new u.Utf8ToUtf32,R._workCell=new s.CellData,R._windowTitle="",R._iconName="",R._windowTitleStack=[],R._iconNameStack=[],R._curAttrData=r.DEFAULT_ATTR_DATA.clone(),R._eraseAttrDataInternal=r.DEFAULT_ATTR_DATA.clone(),R._onRequestBell=new l.EventEmitter,R._onRequestRefreshRows=new l.EventEmitter,R._onRequestReset=new l.EventEmitter,R._onRequestScroll=new l.EventEmitter,R._onRequestSyncScrollBar=new l.EventEmitter,R._onRequestWindowsOptionsReport=new l.EventEmitter,R._onA11yChar=new l.EventEmitter,R._onA11yTab=new l.EventEmitter,R._onCursorMove=new l.EventEmitter,R._onLineFeed=new l.EventEmitter,R._onScroll=new l.EventEmitter,R._onTitleChange=new l.EventEmitter,R.register(R._parser),R._parser.setCsiHandlerFallback(function(W,V){R._logService.debug("Unknown CSI code: ",{identifier:R._parser.identToString(W),params:V.toArray()})}),R._parser.setEscHandlerFallback(function(W){R._logService.debug("Unknown ESC code: ",{identifier:R._parser.identToString(W)})}),R._parser.setExecuteHandlerFallback(function(W){R._logService.debug("Unknown EXECUTE code: ",{code:W})}),R._parser.setOscHandlerFallback(function(W,V,z){R._logService.debug("Unknown OSC code: ",{identifier:W,action:V,data:z})}),R._parser.setDcsHandlerFallback(function(W,V,z){V==="HOOK"&&(z=z.toArray()),R._logService.debug("Unknown DCS code: ",{identifier:R._parser.identToString(W),action:V,payload:z})}),R._parser.setPrintHandler(function(W,V,z){return R.print(W,V,z)}),R._parser.setCsiHandler({final:"@"},function(W){return R.insertChars(W)}),R._parser.setCsiHandler({intermediates:" ",final:"@"},function(W){return R.scrollLeft(W)}),R._parser.setCsiHandler({final:"A"},function(W){return R.cursorUp(W)}),R._parser.setCsiHandler({intermediates:" ",final:"A"},function(W){return R.scrollRight(W)}),R._parser.setCsiHandler({final:"B"},function(W){return R.cursorDown(W)}),R._parser.setCsiHandler({final:"C"},function(W){return R.cursorForward(W)}),R._parser.setCsiHandler({final:"D"},function(W){return R.cursorBackward(W)}),R._parser.setCsiHandler({final:"E"},function(W){return R.cursorNextLine(W)}),R._parser.setCsiHandler({final:"F"},function(W){return R.cursorPrecedingLine(W)}),R._parser.setCsiHandler({final:"G"},function(W){return R.cursorCharAbsolute(W)}),R._parser.setCsiHandler({final:"H"},function(W){return R.cursorPosition(W)}),R._parser.setCsiHandler({final:"I"},function(W){return R.cursorForwardTab(W)}),R._parser.setCsiHandler({final:"J"},function(W){return R.eraseInDisplay(W)}),R._parser.setCsiHandler({prefix:"?",final:"J"},function(W){return R.eraseInDisplay(W)}),R._parser.setCsiHandler({final:"K"},function(W){return R.eraseInLine(W)}),R._parser.setCsiHandler({prefix:"?",final:"K"},function(W){return R.eraseInLine(W)}),R._parser.setCsiHandler({final:"L"},function(W){return R.insertLines(W)}),R._parser.setCsiHandler({final:"M"},function(W){return R.deleteLines(W)}),R._parser.setCsiHandler({final:"P"},function(W){return R.deleteChars(W)}),R._parser.setCsiHandler({final:"S"},function(W){return R.scrollUp(W)}),R._parser.setCsiHandler({final:"T"},function(W){return R.scrollDown(W)}),R._parser.setCsiHandler({final:"X"},function(W){return R.eraseChars(W)}),R._parser.setCsiHandler({final:"Z"},function(W){return R.cursorBackwardTab(W)}),R._parser.setCsiHandler({final:"`"},function(W){return R.charPosAbsolute(W)}),R._parser.setCsiHandler({final:"a"},function(W){return R.hPositionRelative(W)}),R._parser.setCsiHandler({final:"b"},function(W){return R.repeatPrecedingCharacter(W)}),R._parser.setCsiHandler({final:"c"},function(W){return R.sendDeviceAttributesPrimary(W)}),R._parser.setCsiHandler({prefix:">",final:"c"},function(W){return R.sendDeviceAttributesSecondary(W)}),R._parser.setCsiHandler({final:"d"},function(W){return R.linePosAbsolute(W)}),R._parser.setCsiHandler({final:"e"},function(W){return R.vPositionRelative(W)}),R._parser.setCsiHandler({final:"f"},function(W){return R.hVPosition(W)}),R._parser.setCsiHandler({final:"g"},function(W){return R.tabClear(W)}),R._parser.setCsiHandler({final:"h"},function(W){return R.setMode(W)}),R._parser.setCsiHandler({prefix:"?",final:"h"},function(W){return R.setModePrivate(W)}),R._parser.setCsiHandler({final:"l"},function(W){return R.resetMode(W)}),R._parser.setCsiHandler({prefix:"?",final:"l"},function(W){return R.resetModePrivate(W)}),R._parser.setCsiHandler({final:"m"},function(W){return R.charAttributes(W)}),R._parser.setCsiHandler({final:"n"},function(W){return R.deviceStatus(W)}),R._parser.setCsiHandler({prefix:"?",final:"n"},function(W){return R.deviceStatusPrivate(W)}),R._parser.setCsiHandler({intermediates:"!",final:"p"},function(W){return R.softReset(W)}),R._parser.setCsiHandler({intermediates:" ",final:"q"},function(W){return R.setCursorStyle(W)}),R._parser.setCsiHandler({final:"r"},function(W){return R.setScrollRegion(W)}),R._parser.setCsiHandler({final:"s"},function(W){return R.saveCursor(W)}),R._parser.setCsiHandler({final:"t"},function(W){return R.windowOptions(W)}),R._parser.setCsiHandler({final:"u"},function(W){return R.restoreCursor(W)}),R._parser.setCsiHandler({intermediates:"'",final:"}"},function(W){return R.insertColumns(W)}),R._parser.setCsiHandler({intermediates:"'",final:"~"},function(W){return R.deleteColumns(W)}),R._parser.setExecuteHandler(c.C0.BEL,function(){return R.bell()}),R._parser.setExecuteHandler(c.C0.LF,function(){return R.lineFeed()}),R._parser.setExecuteHandler(c.C0.VT,function(){return R.lineFeed()}),R._parser.setExecuteHandler(c.C0.FF,function(){return R.lineFeed()}),R._parser.setExecuteHandler(c.C0.CR,function(){return R.carriageReturn()}),R._parser.setExecuteHandler(c.C0.BS,function(){return R.backspace()}),R._parser.setExecuteHandler(c.C0.HT,function(){return R.tab()}),R._parser.setExecuteHandler(c.C0.SO,function(){return R.shiftOut()}),R._parser.setExecuteHandler(c.C0.SI,function(){return R.shiftIn()}),R._parser.setExecuteHandler(c.C1.IND,function(){return R.index()}),R._parser.setExecuteHandler(c.C1.NEL,function(){return R.nextLine()}),R._parser.setExecuteHandler(c.C1.HTS,function(){return R.tabSet()}),R._parser.setOscHandler(0,new m.OscHandler(function(W){R.setTitle(W),R.setIconName(W)})),R._parser.setOscHandler(1,new m.OscHandler(function(W){return R.setIconName(W)})),R._parser.setOscHandler(2,new m.OscHandler(function(W){return R.setTitle(W)})),R._parser.setEscHandler({final:"7"},function(){return R.saveCursor()}),R._parser.setEscHandler({final:"8"},function(){return R.restoreCursor()}),R._parser.setEscHandler({final:"D"},function(){return R.index()}),R._parser.setEscHandler({final:"E"},function(){return R.nextLine()}),R._parser.setEscHandler({final:"H"},function(){return R.tabSet()}),R._parser.setEscHandler({final:"M"},function(){return R.reverseIndex()}),R._parser.setEscHandler({final:"="},function(){return R.keypadApplicationMode()}),R._parser.setEscHandler({final:">"},function(){return R.keypadNumericMode()}),R._parser.setEscHandler({final:"c"},function(){return R.fullReset()}),R._parser.setEscHandler({final:"n"},function(){return R.setgLevel(2)}),R._parser.setEscHandler({final:"o"},function(){return R.setgLevel(3)}),R._parser.setEscHandler({final:"|"},function(){return R.setgLevel(3)}),R._parser.setEscHandler({final:"}"},function(){return R.setgLevel(2)}),R._parser.setEscHandler({final:"~"},function(){return R.setgLevel(1)}),R._parser.setEscHandler({intermediates:"%",final:"@"},function(){return R.selectDefaultCharset()}),R._parser.setEscHandler({intermediates:"%",final:"G"},function(){return R.selectDefaultCharset()});var B=function(V){U._parser.setEscHandler({intermediates:"(",final:V},function(){return R.selectCharset("("+V)}),U._parser.setEscHandler({intermediates:")",final:V},function(){return R.selectCharset(")"+V)}),U._parser.setEscHandler({intermediates:"*",final:V},function(){return R.selectCharset("*"+V)}),U._parser.setEscHandler({intermediates:"+",final:V},function(){return R.selectCharset("+"+V)}),U._parser.setEscHandler({intermediates:"-",final:V},function(){return R.selectCharset("-"+V)}),U._parser.setEscHandler({intermediates:".",final:V},function(){return R.selectCharset("."+V)}),U._parser.setEscHandler({intermediates:"/",final:V},function(){return R.selectCharset("/"+V)})},U=this;for(var H in o.CHARSETS)B(H);return R._parser.setEscHandler({intermediates:"#",final:"8"},function(){return R.screenAlignmentPattern()}),R._parser.setErrorHandler(function(W){return R._logService.error("Parsing error: ",W),W}),R._parser.setDcsHandler({intermediates:"$",final:"q"},new A(R._bufferService,R._coreService,R._logService,R._optionsService)),R}return v(O,T),Object.defineProperty(O.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),O.prototype.dispose=function(){T.prototype.dispose.call(this)},O.prototype.parse=function(x){var C=this._bufferService.buffer,_=C.x,N=C.y;if(this._logService.debug("parsing data",x),this._parseBuffer.length131072)for(var F=0;F0&&H.getWidth(k.x-1)===2&&H.setCellFromCodePoint(k.x-1,0,1,U.fg,U.bg,U.extended);for(var W=C;W<_;++W){if(N=x[W],F=this._unicodeService.wcwidth(N),N<127&&P){var V=P[String.fromCharCode(N)];V&&(N=V.charCodeAt(0))}if(j&&this._onA11yChar.fire(u.stringFromCodePoint(N)),F||!k.x){if(k.x+F-1>=K){if(R){for(;k.x=this._bufferService.rows&&(k.y=this._bufferService.rows-1),k.lines.get(k.ybase+k.y).isWrapped=!0),H=k.lines.get(k.ybase+k.y)}else if(k.x=K-1,F===2)continue}if(B&&(H.insertCells(k.x,F,k.getNullCell(U),U),H.getWidth(K-1)===2&&H.setCellFromCodePoint(K-1,t.NULL_CELL_CODE,t.NULL_CELL_WIDTH,U.fg,U.bg,U.extended)),H.setCellFromCodePoint(k.x++,N,F,U.fg,U.bg,U.extended),F>0)for(;--F;)H.setCellFromCodePoint(k.x++,0,0,U.fg,U.bg,U.extended)}else H.getWidth(k.x-1)?H.addCodepointToCell(k.x-1,N):H.addCodepointToCell(k.x-2,N)}_-C>0&&(H.loadCell(k.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),k.x0&&H.getWidth(k.x)===0&&!H.hasContent(k.x)&&H.setCellFromCodePoint(k.x,0,1,U.fg,U.bg,U.extended),this._dirtyRowService.markDirty(k.y)},O.prototype.addCsiHandler=function(x,C){var _=this;return x.final!=="t"||x.prefix||x.intermediates?this._parser.addCsiHandler(x,C):this._parser.addCsiHandler(x,function(N){return!E(N.params[0],_._optionsService.options.windowOptions)||C(N)})},O.prototype.addDcsHandler=function(x,C){return this._parser.addDcsHandler(x,new w.DcsHandler(C))},O.prototype.addEscHandler=function(x,C){return this._parser.addEscHandler(x,C)},O.prototype.addOscHandler=function(x,C){return this._parser.addOscHandler(x,new m.OscHandler(C))},O.prototype.bell=function(){this._onRequestBell.fire()},O.prototype.lineFeed=function(){var x=this._bufferService.buffer;this._dirtyRowService.markDirty(x.y),this._optionsService.options.convertEol&&(x.x=0),x.y++,x.y===x.scrollBottom+1?(x.y--,this._onRequestScroll.fire(this._eraseAttrData())):x.y>=this._bufferService.rows&&(x.y=this._bufferService.rows-1),x.x>=this._bufferService.cols&&x.x--,this._dirtyRowService.markDirty(x.y),this._onLineFeed.fire()},O.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},O.prototype.backspace=function(){var x,C=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(C.x>0&&C.x--);if(this._restrictCursor(this._bufferService.cols),C.x>0)C.x--;else if(C.x===0&&C.y>C.scrollTop&&C.y<=C.scrollBottom&&((x=C.lines.get(C.ybase+C.y))===null||x===void 0?void 0:x.isWrapped)){C.lines.get(C.ybase+C.y).isWrapped=!1,C.y--,C.x=this._bufferService.cols-1;var _=C.lines.get(C.ybase+C.y);_.hasWidth(C.x)&&!_.hasContent(C.x)&&C.x--}this._restrictCursor()},O.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var x=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-x)}},O.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},O.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},O.prototype._restrictCursor=function(x){x===void 0&&(x=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(x,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)},O.prototype._setCursor=function(x,C){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=x,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+C):(this._bufferService.buffer.x=x,this._bufferService.buffer.y=C),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},O.prototype._moveCursor=function(x,C){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+x,this._bufferService.buffer.y+C)},O.prototype.cursorUp=function(x){var C=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;C>=0?this._moveCursor(0,-Math.min(C,x.params[0]||1)):this._moveCursor(0,-(x.params[0]||1))},O.prototype.cursorDown=function(x){var C=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;C>=0?this._moveCursor(0,Math.min(C,x.params[0]||1)):this._moveCursor(0,x.params[0]||1)},O.prototype.cursorForward=function(x){this._moveCursor(x.params[0]||1,0)},O.prototype.cursorBackward=function(x){this._moveCursor(-(x.params[0]||1),0)},O.prototype.cursorNextLine=function(x){this.cursorDown(x),this._bufferService.buffer.x=0},O.prototype.cursorPrecedingLine=function(x){this.cursorUp(x),this._bufferService.buffer.x=0},O.prototype.cursorCharAbsolute=function(x){this._setCursor((x.params[0]||1)-1,this._bufferService.buffer.y)},O.prototype.cursorPosition=function(x){this._setCursor(x.length>=2?(x.params[1]||1)-1:0,(x.params[0]||1)-1)},O.prototype.charPosAbsolute=function(x){this._setCursor((x.params[0]||1)-1,this._bufferService.buffer.y)},O.prototype.hPositionRelative=function(x){this._moveCursor(x.params[0]||1,0)},O.prototype.linePosAbsolute=function(x){this._setCursor(this._bufferService.buffer.x,(x.params[0]||1)-1)},O.prototype.vPositionRelative=function(x){this._moveCursor(0,x.params[0]||1)},O.prototype.hVPosition=function(x){this.cursorPosition(x)},O.prototype.tabClear=function(x){var C=x.params[0];C===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:C===3&&(this._bufferService.buffer.tabs={})},O.prototype.cursorForwardTab=function(x){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var C=x.params[0]||1;C--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},O.prototype.cursorBackwardTab=function(x){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var C=x.params[0]||1,_=this._bufferService.buffer;C--;)_.x=_.prevStop()},O.prototype._eraseInBufferLine=function(x,C,_,N){N===void 0&&(N=!1);var F=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+x);F.replaceCells(C,_,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),N&&(F.isWrapped=!1)},O.prototype._resetBufferLine=function(x){var C=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+x);C.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),C.isWrapped=!1},O.prototype.eraseInDisplay=function(x){var C;switch(this._restrictCursor(),x.params[0]){case 0:for(C=this._bufferService.buffer.y,this._dirtyRowService.markDirty(C),this._eraseInBufferLine(C++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);C=this._bufferService.cols&&(this._bufferService.buffer.lines.get(C+1).isWrapped=!1);C--;)this._resetBufferLine(C);this._dirtyRowService.markDirty(0);break;case 2:for(C=this._bufferService.rows,this._dirtyRowService.markDirty(C-1);C--;)this._resetBufferLine(C);this._dirtyRowService.markDirty(0);break;case 3:var _=this._bufferService.buffer.lines.length-this._bufferService.rows;_>0&&(this._bufferService.buffer.lines.trimStart(_),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-_,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-_,0),this._onScroll.fire(0))}},O.prototype.eraseInLine=function(x){switch(this._restrictCursor(),x.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)},O.prototype.insertLines=function(x){this._restrictCursor();var C=x.params[0]||1,_=this._bufferService.buffer;if(!(_.y>_.scrollBottom||_.y<_.scrollTop)){for(var N=_.ybase+_.y,F=this._bufferService.rows-1-_.scrollBottom,k=this._bufferService.rows-1+_.ybase-F+1;C--;)_.lines.splice(k-1,1),_.lines.splice(N,0,_.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(_.y,_.scrollBottom),_.x=0}},O.prototype.deleteLines=function(x){this._restrictCursor();var C=x.params[0]||1,_=this._bufferService.buffer;if(!(_.y>_.scrollBottom||_.y<_.scrollTop)){var N,F=_.ybase+_.y;for(N=this._bufferService.rows-1-_.scrollBottom,N=this._bufferService.rows-1+_.ybase-N;C--;)_.lines.splice(F,1),_.lines.splice(N,0,_.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(_.y,_.scrollBottom),_.x=0}},O.prototype.insertChars=function(x){this._restrictCursor();var C=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);C&&(C.insertCells(this._bufferService.buffer.x,x.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},O.prototype.deleteChars=function(x){this._restrictCursor();var C=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);C&&(C.deleteCells(this._bufferService.buffer.x,x.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},O.prototype.scrollUp=function(x){for(var C=x.params[0]||1,_=this._bufferService.buffer;C--;)_.lines.splice(_.ybase+_.scrollTop,1),_.lines.splice(_.ybase+_.scrollBottom,0,_.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(_.scrollTop,_.scrollBottom)},O.prototype.scrollDown=function(x){for(var C=x.params[0]||1,_=this._bufferService.buffer;C--;)_.lines.splice(_.ybase+_.scrollBottom,1),_.lines.splice(_.ybase+_.scrollTop,0,_.getBlankLine(r.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(_.scrollTop,_.scrollBottom)},O.prototype.scrollLeft=function(x){var C=this._bufferService.buffer;if(!(C.y>C.scrollBottom||C.yC.scrollBottom||C.yC.scrollBottom||C.yC.scrollBottom||C.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(c.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(c.C0.ESC+"[?6c"))},O.prototype.sendDeviceAttributesSecondary=function(x){x.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(c.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(c.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(x.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(c.C0.ESC+"[>83;40003;0c"))},O.prototype._is=function(x){return(this._optionsService.options.termName+"").indexOf(x)===0},O.prototype.setMode=function(x){for(var C=0;C=2||N[1]===2&&k+F>=5)break;N[1]&&(F=1)}while(++k+C5)&&(x=1),C.extended.underlineStyle=x,C.fg|=268435456,x===0&&(C.fg&=-268435457),C.updateExtended()},O.prototype.charAttributes=function(x){if(x.length===1&&x.params[0]===0)return this._curAttrData.fg=r.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=r.DEFAULT_ATTR_DATA.bg);for(var C,_=x.length,N=this._curAttrData,F=0;F<_;F++)(C=x.params[F])>=30&&C<=37?(N.fg&=-50331904,N.fg|=16777216|C-30):C>=40&&C<=47?(N.bg&=-50331904,N.bg|=16777216|C-40):C>=90&&C<=97?(N.fg&=-50331904,N.fg|=16777224|C-90):C>=100&&C<=107?(N.bg&=-50331904,N.bg|=16777224|C-100):C===0?(N.fg=r.DEFAULT_ATTR_DATA.fg,N.bg=r.DEFAULT_ATTR_DATA.bg):C===1?N.fg|=134217728:C===3?N.bg|=67108864:C===4?(N.fg|=268435456,this._processUnderline(x.hasSubParams(F)?x.getSubParams(F)[0]:1,N)):C===5?N.fg|=536870912:C===7?N.fg|=67108864:C===8?N.fg|=1073741824:C===2?N.bg|=134217728:C===21?this._processUnderline(2,N):C===22?(N.fg&=-134217729,N.bg&=-134217729):C===23?N.bg&=-67108865:C===24?N.fg&=-268435457:C===25?N.fg&=-536870913:C===27?N.fg&=-67108865:C===28?N.fg&=-1073741825:C===39?(N.fg&=-67108864,N.fg|=16777215&r.DEFAULT_ATTR_DATA.fg):C===49?(N.bg&=-67108864,N.bg|=16777215&r.DEFAULT_ATTR_DATA.bg):C===38||C===48||C===58?F+=this._extractColor(x,F,N):C===59?(N.extended=N.extended.clone(),N.extended.underlineColor=-1,N.updateExtended()):C===100?(N.fg&=-67108864,N.fg|=16777215&r.DEFAULT_ATTR_DATA.fg,N.bg&=-67108864,N.bg|=16777215&r.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",C)},O.prototype.deviceStatus=function(x){switch(x.params[0]){case 5:this._coreService.triggerDataEvent(c.C0.ESC+"[0n");break;case 6:var C=this._bufferService.buffer.y+1,_=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(c.C0.ESC+"["+C+";"+_+"R")}},O.prototype.deviceStatusPrivate=function(x){switch(x.params[0]){case 6:var C=this._bufferService.buffer.y+1,_=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(c.C0.ESC+"[?"+C+";"+_+"R")}},O.prototype.softReset=function(x){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},O.prototype.setCursorStyle=function(x){var C=x.params[0]||1;switch(C){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 _=C%2==1;this._optionsService.options.cursorBlink=_},O.prototype.setScrollRegion=function(x){var C,_=x.params[0]||1;(x.length<2||(C=x.params[1])>this._bufferService.rows||C===0)&&(C=this._bufferService.rows),C>_&&(this._bufferService.buffer.scrollTop=_-1,this._bufferService.buffer.scrollBottom=C-1,this._setCursor(0,0))},O.prototype.windowOptions=function(x){if(E(x.params[0],this._optionsService.options.windowOptions)){var C=x.length>1?x.params[1]:0;switch(x.params[0]){case 14:C!==2&&this._onRequestWindowsOptionsReport.fire(h.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(h.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(c.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:C!==0&&C!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),C!==0&&C!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:C!==0&&C!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),C!==0&&C!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},O.prototype.saveCursor=function(x){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},O.prototype.restoreCursor=function(x){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()},O.prototype.setTitle=function(x){this._windowTitle=x,this._onTitleChange.fire(x)},O.prototype.setIconName=function(x){this._iconName=x},O.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},O.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},O.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},O.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,o.DEFAULT_CHARSET)},O.prototype.selectCharset=function(x){x.length===2?x[0]!=="/"&&this._charsetService.setgCharset(b[x[0]],o.CHARSETS[x[1]]||o.DEFAULT_CHARSET):this.selectDefaultCharset()},O.prototype.index=function(){this._restrictCursor();var x=this._bufferService.buffer;this._bufferService.buffer.y++,x.y===x.scrollBottom+1?(x.y--,this._onRequestScroll.fire(this._eraseAttrData())):x.y>=this._bufferService.rows&&(x.y=this._bufferService.rows-1),this._restrictCursor()},O.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},O.prototype.reverseIndex=function(){this._restrictCursor();var x=this._bufferService.buffer;if(x.y===x.scrollTop){var C=x.scrollBottom-x.scrollTop;x.lines.shiftElements(x.ybase+x.y,C,1),x.lines.set(x.ybase+x.y,x.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(x.scrollTop,x.scrollBottom)}else x.y--,this._restrictCursor()},O.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},O.prototype.reset=function(){this._curAttrData=r.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=r.DEFAULT_ATTR_DATA.clone()},O.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},O.prototype.setgLevel=function(x){this._charsetService.setgLevel(x)},O.prototype.screenAlignmentPattern=function(){var x=new s.CellData;x.content=1<<22|"E".charCodeAt(0),x.fg=this._curAttrData.fg,x.bg=this._curAttrData.bg;var C=this._bufferService.buffer;this._setCursor(0,0);for(var _=0;_256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(h),this.length=0,this._subParams=new Int32Array(c),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(h),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return v.fromArray=function(h){var c=new v;if(!h.length)return c;for(var o=h[0]instanceof Array?1:0;o>8,i=255&this._subParamsIdx[c];i-o>0&&h.push(Array.prototype.slice.call(this._subParams,o,i))}return h},v.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},v.prototype.addParam=function(h){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(h<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=h>2147483647?2147483647:h}},v.prototype.addSubParam=function(h){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(h<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=h>2147483647?2147483647:h,this._subParamsIdx[this.length-1]++}},v.prototype.hasSubParams=function(h){return(255&this._subParamsIdx[h])-(this._subParamsIdx[h]>>8)>0},v.prototype.getSubParams=function(h){var c=this._subParamsIdx[h]>>8,o=255&this._subParamsIdx[h];return o-c>0?this._subParams.subarray(c,o):null},v.prototype.getSubParamsAll=function(){for(var h={},c=0;c>8,i=255&this._subParamsIdx[c];i-o>0&&(h[c]=this._subParams.slice(o,i))}return h},v.prototype.addDigit=function(h){var c;if(!(this._rejectDigits||!(c=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var o=this._digitIsSub?this._subParams:this.params,i=o[c-1];o[c-1]=~i?Math.min(10*i+h,2147483647):h}},v}();f.Params=p},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.OscHandler=f.OscParser=void 0;var p=y(23),v=y(8),h=function(){function o(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return o.prototype.addHandler=function(i,n){this._handlers[i]===void 0&&(this._handlers[i]=[]);var a=this._handlers[i];return a.push(n),{dispose:function(){var r=a.indexOf(n);r!==-1&&a.splice(r,1)}}},o.prototype.setHandler=function(i,n){this._handlers[i]=[n]},o.prototype.clearHandler=function(i){this._handlers[i]&&delete this._handlers[i]},o.prototype.setHandlerFallback=function(i){this._handlerFb=i},o.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},o.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},o.prototype._start=function(){var i=this._handlers[this._id];if(i)for(var n=i.length-1;n>=0;n--)i[n].start();else this._handlerFb(this._id,"START")},o.prototype._put=function(i,n,a){var u=this._handlers[this._id];if(u)for(var r=u.length-1;r>=0;r--)u[r].put(i,n,a);else this._handlerFb(this._id,"PUT",v.utf32ToString(i,n,a))},o.prototype._end=function(i){var n=this._handlers[this._id];if(n){for(var a=n.length-1;a>=0&&n[a].end(i)===!1;a--);for(a--;a>=0;a--)n[a].end(!1)}else this._handlerFb(this._id,"END",i)},o.prototype.start=function(){this.reset(),this._id=-1,this._state=1},o.prototype.put=function(i,n,a){if(this._state!==3){if(this._state===1)for(;n0&&this._put(i,n,a)}},o.prototype.end=function(i){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(i)),this._id=-1,this._state=0)},o}();f.OscParser=h;var c=function(){function o(i){this._handler=i,this._data="",this._hitLimit=!1}return o.prototype.start=function(){this._data="",this._hitLimit=!1},o.prototype.put=function(i,n,a){this._hitLimit||(this._data+=v.utf32ToString(i,n,a),this._data.length>p.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},o.prototype.end=function(i){var n;return this._hitLimit?n=!1:i&&(n=this._handler(this._data)),this._data="",this._hitLimit=!1,n},o}();f.OscHandler=c},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.PAYLOAD_LIMIT=void 0,f.PAYLOAD_LIMIT=1e7},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.DcsHandler=f.DcsParser=void 0;var p=y(8),v=y(21),h=y(23),c=[],o=function(){function n(){this._handlers=Object.create(null),this._active=c,this._ident=0,this._handlerFb=function(){}}return n.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},n.prototype.addHandler=function(a,u){this._handlers[a]===void 0&&(this._handlers[a]=[]);var r=this._handlers[a];return r.push(u),{dispose:function(){var t=r.indexOf(u);t!==-1&&r.splice(t,1)}}},n.prototype.setHandler=function(a,u){this._handlers[a]=[u]},n.prototype.clearHandler=function(a){this._handlers[a]&&delete this._handlers[a]},n.prototype.setHandlerFallback=function(a){this._handlerFb=a},n.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=c,this._ident=0},n.prototype.hook=function(a,u){if(this.reset(),this._ident=a,this._active=this._handlers[a]||c,this._active.length)for(var r=this._active.length-1;r>=0;r--)this._active[r].hook(u);else this._handlerFb(this._ident,"HOOK",u)},n.prototype.put=function(a,u,r){if(this._active.length)for(var l=this._active.length-1;l>=0;l--)this._active[l].put(a,u,r);else this._handlerFb(this._ident,"PUT",p.utf32ToString(a,u,r))},n.prototype.unhook=function(a){if(this._active.length){for(var u=this._active.length-1;u>=0&&this._active[u].unhook(a)===!1;u--);for(u--;u>=0;u--)this._active[u].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",a);this._active=c,this._ident=0},n}();f.DcsParser=o;var i=function(){function n(a){this._handler=a,this._data="",this._hitLimit=!1}return n.prototype.hook=function(a){this._params=a.clone(),this._data="",this._hitLimit=!1},n.prototype.put=function(a,u,r){this._hitLimit||(this._data+=p.utf32ToString(a,u,r),this._data.length>h.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},n.prototype.unhook=function(a){var u;return this._hitLimit?u=!1:a&&(u=this._handler(this._data,this._params||new v.Params)),this._params=void 0,this._data="",this._hitLimit=!1,u},n}();f.DcsHandler=i},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.removeTerminalFromCache=f.acquireCharAtlas=void 0;var p=y(26),v=y(43),h=[];f.acquireCharAtlas=function(c,o,i,n,a){for(var u=p.generateConfig(n,a,c,i),r=0;r=0){if(p.configEquals(t.config,u))return t.atlas;t.ownedBy.length===1?(t.atlas.dispose(),h.splice(r,1)):t.ownedBy.splice(l,1);break}}for(r=0;r1)for(var A=this._getJoinedRanges(t,m,d,r,s),S=0;S1)for(A=this._getJoinedRanges(t,m,d,r,s),S=0;S=this._line.length))return d?(this._line.loadCell(s,d),d):this._line.loadCell(s,new p.CellData)},t.prototype.translateToString=function(s,d,m){return this._line.translateToString(s,d,m)},t}(),r=function(){function t(s){this._core=s}return t.prototype.registerCsiHandler=function(s,d){return this._core.addCsiHandler(s,function(m){return d(m.toArray())})},t.prototype.addCsiHandler=function(s,d){return this.registerCsiHandler(s,d)},t.prototype.registerDcsHandler=function(s,d){return this._core.addDcsHandler(s,function(m,w){return d(m,w.toArray())})},t.prototype.addDcsHandler=function(s,d){return this.registerDcsHandler(s,d)},t.prototype.registerEscHandler=function(s,d){return this._core.addEscHandler(s,d)},t.prototype.addEscHandler=function(s,d){return this.registerEscHandler(s,d)},t.prototype.registerOscHandler=function(s,d){return this._core.addOscHandler(s,d)},t.prototype.addOscHandler=function(s,d){return this.registerOscHandler(s,d)},t}(),l=function(){function t(s){this._core=s}return t.prototype.register=function(s){this._core.unicodeService.register(s)},Object.defineProperty(t.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(d){this._core.unicodeService.activeVersion=d},enumerable:!1,configurable:!0}),t}()},function(g,f,y){"use strict";var p,v=this&&this.__extends||(p=function(R,B){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,H){U.__proto__=H}||function(U,H){for(var W in H)H.hasOwnProperty(W)&&(U[W]=H[W])})(R,B)},function(K,R){function B(){this.constructor=K}p(K,R),K.prototype=R===null?Object.create(R):(B.prototype=R.prototype,new B)});Object.defineProperty(f,"__esModule",{value:!0}),f.Terminal=void 0;var h=y(36),c=y(37),o=y(38),i=y(12),n=y(19),a=y(40),u=y(50),r=y(51),l=y(11),t=y(7),s=y(18),d=y(54),m=y(55),w=y(56),b=y(57),E=y(59),A=y(0),S=y(16),T=y(27),O=y(60),x=y(5),C=y(61),_=y(62),N=y(63),F=y(64),k=y(65),P=typeof window!="undefined"?window.document:null,j=function(K){function R(B){B===void 0&&(B={});var U=K.call(this,B)||this;return U.browser=l,U._keyDownHandled=!1,U._onCursorMove=new A.EventEmitter,U._onKey=new A.EventEmitter,U._onRender=new A.EventEmitter,U._onSelectionChange=new A.EventEmitter,U._onTitleChange=new A.EventEmitter,U._onFocus=new A.EventEmitter,U._onBlur=new A.EventEmitter,U._onA11yCharEmitter=new A.EventEmitter,U._onA11yTabEmitter=new A.EventEmitter,U._setup(),U.linkifier=U._instantiationService.createInstance(u.Linkifier),U.linkifier2=U.register(U._instantiationService.createInstance(N.Linkifier2)),U.register(U._inputHandler.onRequestBell(function(){return U.bell()})),U.register(U._inputHandler.onRequestRefreshRows(function(H,W){return U.refresh(H,W)})),U.register(U._inputHandler.onRequestReset(function(){return U.reset()})),U.register(U._inputHandler.onRequestScroll(function(H,W){return U.scroll(H,W||void 0)})),U.register(U._inputHandler.onRequestWindowsOptionsReport(function(H){return U._reportWindowsOptions(H)})),U.register(A.forwardEvent(U._inputHandler.onCursorMove,U._onCursorMove)),U.register(A.forwardEvent(U._inputHandler.onTitleChange,U._onTitleChange)),U.register(A.forwardEvent(U._inputHandler.onA11yChar,U._onA11yCharEmitter)),U.register(A.forwardEvent(U._inputHandler.onA11yTab,U._onA11yTabEmitter)),U.register(U._bufferService.onResize(function(H){return U._afterResize(H.cols,H.rows)})),U}return v(R,K),Object.defineProperty(R.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),R.prototype.dispose=function(){var B,U,H;this._isDisposed||(K.prototype.dispose.call(this),(B=this._renderService)===null||B===void 0||B.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(H=(U=this.element)===null||U===void 0?void 0:U.parentNode)===null||H===void 0||H.removeChild(this.element))},R.prototype._setup=function(){K.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(R.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),R.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},R.prototype._updateOptions=function(B){var U,H,W,V;switch(K.prototype._updateOptions.call(this,B),B){case"fontFamily":case"fontSize":(U=this._renderService)===null||U===void 0||U.clear(),(H=this._charSizeService)===null||H===void 0||H.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":(W=this.viewport)===null||W===void 0||W.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new w.AccessibilityManager(this,this._renderService)):((V=this._accessibilityManager)===null||V===void 0||V.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},R.prototype._onTextAreaFocus=function(B){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(i.C0.ESC+"[I"),this.updateCursorStyle(B),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},R.prototype.blur=function(){var B;return(B=this.textarea)===null||B===void 0?void 0:B.blur()},R.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(i.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},R.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var B=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),U=this._bufferService.buffer.y*B,H=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=H+"px",this.textarea.style.top=U+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=B+"px",this.textarea.style.lineHeight=B+"px",this.textarea.style.zIndex="-5"}},R.prototype._initGlobal=function(){var B=this;this._bindKeys(),this.register(t.addDisposableDomListener(this.element,"copy",function(H){B.hasSelection()&&o.copyHandler(H,B._selectionService)}));var U=function(W){return o.handlePasteEvent(W,B.textarea,B._coreService)};this.register(t.addDisposableDomListener(this.textarea,"paste",U)),this.register(t.addDisposableDomListener(this.element,"paste",U)),l.isFirefox?this.register(t.addDisposableDomListener(this.element,"mousedown",function(H){H.button===2&&o.rightClickHandler(H,B.textarea,B.screenElement,B._selectionService,B.options.rightClickSelectsWord)})):this.register(t.addDisposableDomListener(this.element,"contextmenu",function(H){o.rightClickHandler(H,B.textarea,B.screenElement,B._selectionService,B.options.rightClickSelectsWord)})),l.isLinux&&this.register(t.addDisposableDomListener(this.element,"auxclick",function(H){H.button===1&&o.moveTextAreaUnderMouseCursor(H,B.textarea,B.screenElement)}))},R.prototype._bindKeys=function(){var B=this;this.register(t.addDisposableDomListener(this.textarea,"keyup",function(U){return B._keyUp(U)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keydown",function(U){return B._keyDown(U)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keypress",function(U){return B._keyPress(U)},!0)),this.register(t.addDisposableDomListener(this.textarea,"compositionstart",function(){return B._compositionHelper.compositionstart()})),this.register(t.addDisposableDomListener(this.textarea,"compositionupdate",function(U){return B._compositionHelper.compositionupdate(U)})),this.register(t.addDisposableDomListener(this.textarea,"compositionend",function(){return B._compositionHelper.compositionend()})),this.register(this.onRender(function(){return B._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(U){return B._queueLinkification(U.start,U.end)}))},R.prototype.open=function(B){var U=this;if(!B)throw new Error("Terminal requires a parent element.");P.body.contains(B)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=B.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"),B.appendChild(this.element);var H=P.createDocumentFragment();this._viewportElement=P.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),H.appendChild(this._viewportElement),this._viewportScrollArea=P.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=P.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=P.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),H.appendChild(this.screenElement),this.textarea=P.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",s.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(t.addDisposableDomListener(this.textarea,"focus",function(z){return U._onTextAreaFocus(z)})),this.register(t.addDisposableDomListener(this.textarea,"blur",function(){return U._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var W=this._instantiationService.createInstance(F.CoreBrowserService,this.textarea);this._instantiationService.setService(x.ICoreBrowserService,W),this._charSizeService=this._instantiationService.createInstance(C.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(x.ICharSizeService,this._charSizeService),this._compositionView=P.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(h.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(H),this._theme=this.options.theme||this._theme,this._colorManager=new T.ColorManager(P,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(z){return U._colorManager.onOptionsChange(z)})),this._colorManager.setTheme(this._theme);var V=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(O.RenderService,V,this.rows,this.screenElement)),this._instantiationService.setService(x.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(z){return U._onRender.fire(z)})),this.onResize(function(z){return U._renderService.resize(z.cols,z.rows)}),this._soundService=this._instantiationService.createInstance(d.SoundService),this._instantiationService.setService(x.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(_.MouseService),this._instantiationService.setService(x.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(c.Viewport,function(z,X){return U.scrollLines(z,X)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return U.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){U._renderService.onCursorMove(),U._syncTextArea()})),this.register(this.onResize(function(){return U._renderService.onResize(U.cols,U.rows)})),this.register(this.onBlur(function(){return U._renderService.onBlur()})),this.register(this.onFocus(function(){return U._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return U.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(r.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(x.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(z){return U.scrollLines(z.amount,z.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return U._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(z){return U._renderService.onSelectionChanged(z.start,z.end,z.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(z){U.textarea.value=z,U.textarea.focus(),U.textarea.select()})),this.register(this.onScroll(function(){U.viewport.syncScrollArea(),U._selectionService.refresh()})),this.register(t.addDisposableDomListener(this._viewportElement,"scroll",function(){return U._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(m.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return U._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(t.addDisposableDomListener(this.element,"mousedown",function(z){return U._selectionService.onMouseDown(z)})),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()},R.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(a.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(b.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},R.prototype._setTheme=function(B){var U,H,W;this._theme=B,(U=this._colorManager)===null||U===void 0||U.setTheme(B),(H=this._renderService)===null||H===void 0||H.setColors(this._colorManager.colors),(W=this.viewport)===null||W===void 0||W.onThemeChange(this._colorManager.colors)},R.prototype.bindMouse=function(){var B=this,U=this,H=this.element;function W(G){var ve,Se,ge=U._mouseService.getRawByteCoords(G,U.screenElement,U.cols,U.rows);if(!ge)return!1;switch(G.overrideType||G.type){case"mousemove":Se=32,G.buttons===void 0?(ve=3,G.button!==void 0&&(ve=G.button<3?G.button:3)):ve=1&G.buttons?0:4&G.buttons?1:2&G.buttons?2:3;break;case"mouseup":Se=0,ve=G.button<3?G.button:3;break;case"mousedown":Se=1,ve=G.button<3?G.button:3;break;case"wheel":G.deltaY!==0&&(Se=G.deltaY<0?0:1),ve=4;break;default:return!1}return!(Se===void 0||ve===void 0||ve>4)&&U._coreMouseService.triggerMouseEvent({col:ge.x-33,row:ge.y-33,button:ve,action:Se,ctrl:G.ctrlKey,alt:G.altKey,shift:G.shiftKey})}var V={mouseup:null,wheel:null,mousedrag:null,mousemove:null},z=function(ve){return W(ve),ve.buttons||(B._document.removeEventListener("mouseup",V.mouseup),V.mousedrag&&B._document.removeEventListener("mousemove",V.mousedrag)),B.cancel(ve)},X=function(ve){return W(ve),ve.preventDefault(),B.cancel(ve)},q=function(ve){ve.buttons&&W(ve)},fe=function(ve){ve.buttons||W(ve)};this.register(this._coreMouseService.onProtocolChange(function(G){G?(B.optionsService.options.logLevel==="debug"&&B._logService.debug("Binding to mouse events:",B._coreMouseService.explainEvents(G)),B.element.classList.add("enable-mouse-events"),B._selectionService.disable()):(B._logService.debug("Unbinding from mouse events."),B.element.classList.remove("enable-mouse-events"),B._selectionService.enable()),8&G?V.mousemove||(H.addEventListener("mousemove",fe),V.mousemove=fe):(H.removeEventListener("mousemove",V.mousemove),V.mousemove=null),16&G?V.wheel||(H.addEventListener("wheel",X,{passive:!1}),V.wheel=X):(H.removeEventListener("wheel",V.wheel),V.wheel=null),2&G?V.mouseup||(V.mouseup=z):(B._document.removeEventListener("mouseup",V.mouseup),V.mouseup=null),4&G?V.mousedrag||(V.mousedrag=q):(B._document.removeEventListener("mousemove",V.mousedrag),V.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(t.addDisposableDomListener(H,"mousedown",function(G){if(G.preventDefault(),B.focus(),B._coreMouseService.areMouseEventsActive&&!B._selectionService.shouldForceSelection(G))return W(G),V.mouseup&&B._document.addEventListener("mouseup",V.mouseup),V.mousedrag&&B._document.addEventListener("mousemove",V.mousedrag),B.cancel(G)})),this.register(t.addDisposableDomListener(H,"wheel",function(G){if(!V.wheel){if(!B.buffer.hasScrollback){var ve=B.viewport.getLinesScrolled(G);if(ve===0)return;for(var Se=i.C0.ESC+(B._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(G.deltaY<0?"A":"B"),ge="",Pe=0;Pe47)},R.prototype._keyUp=function(B){this._customKeyEventHandler&&this._customKeyEventHandler(B)===!1||(function(U){return U.keyCode===16||U.keyCode===17||U.keyCode===18}(B)||this.focus(),this.updateCursorStyle(B))},R.prototype._keyPress=function(B){var U;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(B)===!1)return!1;if(this.cancel(B),B.charCode)U=B.charCode;else if(B.which===null||B.which===void 0)U=B.keyCode;else{if(B.which===0||B.charCode===0)return!1;U=B.which}return!(!U||(B.altKey||B.ctrlKey||B.metaKey)&&!this._isThirdLevelShift(this.browser,B))&&(U=String.fromCharCode(U),this._onKey.fire({key:U,domEvent:B}),this._showCursor(),this._coreService.triggerDataEvent(U,!0),!0)},R.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},R.prototype.resize=function(B,U){B!==this.cols||U!==this.rows?K.prototype.resize.call(this,B,U):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},R.prototype._afterResize=function(B,U){var H,W;(H=this._charSizeService)===null||H===void 0||H.measure(),(W=this.viewport)===null||W===void 0||W.syncScrollArea(!0)},R.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 B=1;B=0;s--)(r=i[s])&&(t=(l<3?r(t):l>3?r(n,a,t):r(n,a))||t);return l>3&&t&&Object.defineProperty(n,a,t),t},v=this&&this.__param||function(i,n){return function(a,u){n(a,u,i)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CompositionHelper=void 0;var h=y(5),c=y(1),o=function(){function i(n,a,u,r,l,t){this._textarea=n,this._compositionView=a,this._bufferService=u,this._optionsService=r,this._charSizeService=l,this._coreService=t,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(i.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),i.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},i.prototype.compositionupdate=function(n){var a=this;this._compositionView.textContent=n.data,this.updateCompositionElements(),setTimeout(function(){a._compositionPosition.end=a._textarea.value.length},0)},i.prototype.compositionend=function(){this._finalizeComposition(!0)},i.prototype.keydown=function(n){if(this._isComposing||this._isSendingComposition){if(n.keyCode===229)return!1;if(n.keyCode===16||n.keyCode===17||n.keyCode===18)return!1;this._finalizeComposition(!1)}return n.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},i.prototype._finalizeComposition=function(n){var a=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,n){var u={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(a._isSendingComposition){a._isSendingComposition=!1;var l=void 0;l=a._isComposing?a._textarea.value.substring(u.start,u.end):a._textarea.value.substring(u.start),a._coreService.triggerDataEvent(l,!0)}},0)}else{this._isSendingComposition=!1;var r=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(r,!0)}},i.prototype._handleAnyTextareaChanges=function(){var n=this,a=this._textarea.value;setTimeout(function(){if(!n._isComposing){var u=n._textarea.value.replace(a,"");u.length>0&&n._coreService.triggerDataEvent(u,!0)}},0)},i.prototype.updateCompositionElements=function(n){var a=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var u=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),r=this._bufferService.buffer.y*u,l=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=l+"px",this._compositionView.style.top=r+"px",this._compositionView.style.height=u+"px",this._compositionView.style.lineHeight=u+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var t=this._compositionView.getBoundingClientRect();this._textarea.style.left=l+"px",this._textarea.style.top=r+"px",this._textarea.style.width=t.width+"px",this._textarea.style.height=t.height+"px",this._textarea.style.lineHeight=t.height+"px"}n||setTimeout(function(){return a.updateCompositionElements(!0)},0)}},i=p([v(2,c.IBufferService),v(3,c.IOptionsService),v(4,h.ICharSizeService),v(5,c.ICoreService)],i)}();f.CompositionHelper=o},function(g,f,y){"use strict";var p,v=this&&this.__extends||(p=function(l,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,d){s.__proto__=d}||function(s,d){for(var m in d)d.hasOwnProperty(m)&&(s[m]=d[m])})(l,t)},function(r,l){function t(){this.constructor=r}p(r,l),r.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)}),h=this&&this.__decorate||function(r,l,t,s){var d,m=arguments.length,w=m<3?l:s===null?s=Object.getOwnPropertyDescriptor(l,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(r,l,t,s);else for(var b=r.length-1;b>=0;b--)(d=r[b])&&(w=(m<3?d(w):m>3?d(l,t,w):d(l,t))||w);return m>3&&w&&Object.defineProperty(l,t,w),w},c=this&&this.__param||function(r,l){return function(t,s){l(t,s,r)}};Object.defineProperty(f,"__esModule",{value:!0}),f.Viewport=void 0;var o=y(2),i=y(7),n=y(5),a=y(1),u=function(r){function l(t,s,d,m,w,b,E){var A=r.call(this)||this;return A._scrollLines=t,A._viewportElement=s,A._scrollArea=d,A._bufferService=m,A._optionsService=w,A._charSizeService=b,A._renderService=E,A.scrollBarWidth=0,A._currentRowHeight=0,A._lastRecordedBufferLength=0,A._lastRecordedViewportHeight=0,A._lastRecordedBufferHeight=0,A._lastTouchY=0,A._lastScrollTop=0,A._wheelPartialScroll=0,A._refreshAnimationFrame=null,A._ignoreNextScrollEvent=!1,A.scrollBarWidth=A._viewportElement.offsetWidth-A._scrollArea.offsetWidth||15,A.register(i.addDisposableDomListener(A._viewportElement,"scroll",A._onScroll.bind(A))),setTimeout(function(){return A.syncScrollArea()},0),A}return v(l,r),l.prototype.onThemeChange=function(t){this._viewportElement.style.backgroundColor=t.background.css},l.prototype._refresh=function(t){var s=this;if(t)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return s._innerRefresh()}))},l.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var t=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==t&&(this._lastRecordedBufferHeight=t,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var s=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==s&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=s),this._refreshAnimationFrame=null},l.prototype.syncScrollArea=function(t){if(t===void 0&&(t=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(t);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var s=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===s&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(t)}else this._refresh(t)},l.prototype._onScroll=function(t){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var s=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(s,!0)}},l.prototype._bubbleScroll=function(t,s){var d=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(s<0&&this._viewportElement.scrollTop!==0||s>0&&d0?1:-1),this._wheelPartialScroll%=1):t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(s*=this._bufferService.rows),s},l.prototype._applyScrollModifier=function(t,s){var d=this._optionsService.options.fastScrollModifier;return d==="alt"&&s.altKey||d==="ctrl"&&s.ctrlKey||d==="shift"&&s.shiftKey?t*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:t*this._optionsService.options.scrollSensitivity},l.prototype.onTouchStart=function(t){this._lastTouchY=t.touches[0].pageY},l.prototype.onTouchMove=function(t){var s=this._lastTouchY-t.touches[0].pageY;return this._lastTouchY=t.touches[0].pageY,s!==0&&(this._viewportElement.scrollTop+=s,this._bubbleScroll(t,s))},l=h([c(3,a.IBufferService),c(4,a.IOptionsService),c(5,n.ICharSizeService),c(6,n.IRenderService)],l)}(o.Disposable);f.Viewport=u},function(g,f,y){"use strict";function p(o){return o.replace(/\r?\n/g,"\r")}function v(o,i){return i?"[200~"+o+"[201~":o}function h(o,i,n){o=v(o=p(o),n.decPrivateModes.bracketedPasteMode),n.triggerDataEvent(o,!0),i.value=""}function c(o,i,n){var a=n.getBoundingClientRect(),u=o.clientX-a.left-10,r=o.clientY-a.top-10;i.style.width="20px",i.style.height="20px",i.style.left=u+"px",i.style.top=r+"px",i.style.zIndex="1000",i.focus()}Object.defineProperty(f,"__esModule",{value:!0}),f.rightClickHandler=f.moveTextAreaUnderMouseCursor=f.paste=f.handlePasteEvent=f.copyHandler=f.bracketTextForPaste=f.prepareTextForTerminal=void 0,f.prepareTextForTerminal=p,f.bracketTextForPaste=v,f.copyHandler=function(o,i){o.clipboardData&&o.clipboardData.setData("text/plain",i.selectionText),o.preventDefault()},f.handlePasteEvent=function(o,i,n){o.stopPropagation(),o.clipboardData&&h(o.clipboardData.getData("text/plain"),i,n)},f.paste=h,f.moveTextAreaUnderMouseCursor=c,f.rightClickHandler=function(o,i,n,a,u){c(o,i,n),u&&!a.isClickInSelection(o)&&a.selectWordAtCursor(o),i.value=a.selectionText,i.select()}},function(g,f,y){"use strict";var p,v=this&&this.__extends||(p=function(l,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,d){s.__proto__=d}||function(s,d){for(var m in d)d.hasOwnProperty(m)&&(s[m]=d[m])})(l,t)},function(r,l){function t(){this.constructor=r}p(r,l),r.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)});Object.defineProperty(f,"__esModule",{value:!0}),f.EscapeSequenceParser=f.VT500_TRANSITION_TABLE=f.TransitionTable=void 0;var h=y(2),c=y(15),o=y(21),i=y(22),n=y(24),a=function(){function r(l){this.table=new Uint8Array(l)}return r.prototype.setDefault=function(l,t){c.fill(this.table,l<<4|t)},r.prototype.add=function(l,t,s,d){this.table[t<<8|l]=s<<4|d},r.prototype.addMany=function(l,t,s,d){for(var m=0;m1)throw new Error("only one byte as prefix supported");if((d=t.prefix.charCodeAt(0))&&60>d||d>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(t.intermediates){if(t.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var m=0;mw||w>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");d<<=8,d|=w}}if(t.final.length!==1)throw new Error("final must be a single byte");var b=t.final.charCodeAt(0);if(s[0]>b||b>s[1])throw new Error("final must be in range "+s[0]+" .. "+s[1]);return d<<=8,d|=b},l.prototype.identToString=function(t){for(var s=[];t;)s.push(String.fromCharCode(255&t)),t>>=8;return s.reverse().join("")},l.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},l.prototype.setPrintHandler=function(t){this._printHandler=t},l.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},l.prototype.addEscHandler=function(t,s){var d=this._identifier(t,[48,126]);this._escHandlers[d]===void 0&&(this._escHandlers[d]=[]);var m=this._escHandlers[d];return m.push(s),{dispose:function(){var b=m.indexOf(s);b!==-1&&m.splice(b,1)}}},l.prototype.setEscHandler=function(t,s){this._escHandlers[this._identifier(t,[48,126])]=[s]},l.prototype.clearEscHandler=function(t){this._escHandlers[this._identifier(t,[48,126])]&&delete this._escHandlers[this._identifier(t,[48,126])]},l.prototype.setEscHandlerFallback=function(t){this._escHandlerFb=t},l.prototype.setExecuteHandler=function(t,s){this._executeHandlers[t.charCodeAt(0)]=s},l.prototype.clearExecuteHandler=function(t){this._executeHandlers[t.charCodeAt(0)]&&delete this._executeHandlers[t.charCodeAt(0)]},l.prototype.setExecuteHandlerFallback=function(t){this._executeHandlerFb=t},l.prototype.addCsiHandler=function(t,s){var d=this._identifier(t);this._csiHandlers[d]===void 0&&(this._csiHandlers[d]=[]);var m=this._csiHandlers[d];return m.push(s),{dispose:function(){var b=m.indexOf(s);b!==-1&&m.splice(b,1)}}},l.prototype.setCsiHandler=function(t,s){this._csiHandlers[this._identifier(t)]=[s]},l.prototype.clearCsiHandler=function(t){this._csiHandlers[this._identifier(t)]&&delete this._csiHandlers[this._identifier(t)]},l.prototype.setCsiHandlerFallback=function(t){this._csiHandlerFb=t},l.prototype.addDcsHandler=function(t,s){return this._dcsParser.addHandler(this._identifier(t),s)},l.prototype.setDcsHandler=function(t,s){this._dcsParser.setHandler(this._identifier(t),s)},l.prototype.clearDcsHandler=function(t){this._dcsParser.clearHandler(this._identifier(t))},l.prototype.setDcsHandlerFallback=function(t){this._dcsParser.setHandlerFallback(t)},l.prototype.addOscHandler=function(t,s){return this._oscParser.addHandler(t,s)},l.prototype.setOscHandler=function(t,s){this._oscParser.setHandler(t,s)},l.prototype.clearOscHandler=function(t){this._oscParser.clearHandler(t)},l.prototype.setOscHandlerFallback=function(t){this._oscParser.setHandlerFallback(t)},l.prototype.setErrorHandler=function(t){this._errorHandler=t},l.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},l.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},l.prototype.parse=function(t,s){for(var d=0,m=0,w=this.currentState,b=this._oscParser,E=this._dcsParser,A=this._collect,S=this._params,T=this._transitions.table,O=0;O>4){case 2:for(var x=O+1;;++x){if(x>=s||(d=t[x])<32||d>126&&d<160){this._printHandler(t,O,x),O=x-1;break}if(++x>=s||(d=t[x])<32||d>126&&d<160){this._printHandler(t,O,x),O=x-1;break}if(++x>=s||(d=t[x])<32||d>126&&d<160){this._printHandler(t,O,x),O=x-1;break}if(++x>=s||(d=t[x])<32||d>126&&d<160){this._printHandler(t,O,x),O=x-1;break}}break;case 3:this._executeHandlers[d]?this._executeHandlers[d]():this._executeHandlerFb(d),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:O,code:d,currentState:w,collect:A,params:S,abort:!1}).abort)return;break;case 7:for(var C=this._csiHandlers[A<<8|d],_=C?C.length-1:-1;_>=0&&C[_](S)===!1;_--);_<0&&this._csiHandlerFb(A<<8|d,S),this.precedingCodepoint=0;break;case 8:do switch(d){case 59:S.addParam(0);break;case 58:S.addSubParam(-1);break;default:S.addDigit(d-48)}while(++O47&&d<60);O--;break;case 9:A<<=8,A|=d;break;case 10:for(var N=this._escHandlers[A<<8|d],F=N?N.length-1:-1;F>=0&&N[F]()===!1;F--);F<0&&this._escHandlerFb(A<<8|d),this.precedingCodepoint=0;break;case 11:S.reset(),S.addParam(0),A=0;break;case 12:E.hook(A<<8|d,S);break;case 13:for(var k=O+1;;++k)if(k>=s||(d=t[k])===24||d===26||d===27||d>127&&d<160){E.put(t,O,k),O=k-1;break}break;case 14:E.unhook(d!==24&&d!==26),d===27&&(m|=1),S.reset(),S.addParam(0),A=0,this.precedingCodepoint=0;break;case 4:b.start();break;case 5:for(var P=O+1;;P++)if(P>=s||(d=t[P])<32||d>127&&d<=159){b.put(t,O,P),O=P-1;break}break;case 6:b.end(d!==24&&d!==26),d===27&&(m|=1),S.reset(),S.addParam(0),A=0,this.precedingCodepoint=0}w=15&m}this._collect=A,this.currentState=w},l}(h.Disposable);f.EscapeSequenceParser=u},function(g,f,y){"use strict";var p,v=this&&this.__extends||(p=function(E,A){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,T){S.__proto__=T}||function(S,T){for(var O in T)T.hasOwnProperty(O)&&(S[O]=T[O])})(E,A)},function(b,E){function A(){this.constructor=b}p(b,E),b.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)}),h=this&&this.__decorate||function(b,E,A,S){var T,O=arguments.length,x=O<3?E:S===null?S=Object.getOwnPropertyDescriptor(E,A):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(b,E,A,S);else for(var C=b.length-1;C>=0;C--)(T=b[C])&&(x=(O<3?T(x):O>3?T(E,A,x):T(E,A))||x);return O>3&&x&&Object.defineProperty(E,A,x),x},c=this&&this.__param||function(b,E){return function(A,S){E(A,S,b)}};Object.defineProperty(f,"__esModule",{value:!0}),f.Renderer=void 0;var o=y(41),i=y(47),n=y(48),a=y(49),u=y(29),r=y(2),l=y(5),t=y(1),s=y(25),d=y(0),m=1,w=function(b){function E(A,S,T,O,x,C,_,N,F){var k=b.call(this)||this;k._colors=A,k._screenElement=S,k._bufferService=x,k._charSizeService=C,k._optionsService=_,k._id=m++,k._onRequestRedraw=new d.EventEmitter;var P=k._optionsService.options.allowTransparency;return k._characterJoinerRegistry=new u.CharacterJoinerRegistry(k._bufferService),k._renderLayers=[new o.TextRenderLayer(k._screenElement,0,k._colors,k._characterJoinerRegistry,P,k._id,k._bufferService,_),new i.SelectionRenderLayer(k._screenElement,1,k._colors,k._id,k._bufferService,_),new a.LinkRenderLayer(k._screenElement,2,k._colors,k._id,T,O,k._bufferService,_),new n.CursorRenderLayer(k._screenElement,3,k._colors,k._id,k._onRequestRedraw,k._bufferService,_,N,F)],k.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},k._devicePixelRatio=window.devicePixelRatio,k._updateDimensions(),k.onOptionsChanged(),k}return v(E,b),Object.defineProperty(E.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){for(var A=0,S=this._renderLayers;A0&&S===A[0][0]){O=!0;var C=A.shift();T=new n.JoinedCellData(this._workCell,E.translateToString(!0,C[0],C[1]),C[1]-C[0]),x=C[1]-1}!O&&this._isOverlapping(T)&&xthis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[s]=d,d},l}(c.BaseRenderLayer);f.TextRenderLayer=u},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.GridCache=void 0;var p=function(){function v(){this.cache=[]}return v.prototype.resize=function(h,c){for(var o=0;o>>24,j=F.rgba>>>16&255,K=F.rgba>>>8&255,R=0;R=this.capacity)o=this._head,this._unlinkNode(o),delete this._map[o.key],o.key=h,o.value=c,this._map[h]=o;else{var i=this._nodePool;i.length>0?((o=i.pop()).key=h,o.value=c):o={prev:null,next:null,key:h,value:c},this._map[h]=o,this.size++}this._appendNode(o)},v}();f.LRUMap=p},function(g,f,y){"use strict";var p,v=this&&this.__extends||(p=function(o,i){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var u in a)a.hasOwnProperty(u)&&(n[u]=a[u])})(o,i)},function(c,o){function i(){this.constructor=c}p(c,o),c.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)});Object.defineProperty(f,"__esModule",{value:!0}),f.SelectionRenderLayer=void 0;var h=function(c){function o(i,n,a,u,r,l){var t=c.call(this,i,"selection",n,!0,a,u,r,l)||this;return t._clearState(),t}return v(o,c),o.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},o.prototype.resize=function(i){c.prototype.resize.call(this,i),this._clearState()},o.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},o.prototype.onSelectionChanged=function(i,n,a){if(this._didStateChange(i,n,a,this._bufferService.buffer.ydisp))if(this._clearAll(),i&&n){var u=i[1]-this._bufferService.buffer.ydisp,r=n[1]-this._bufferService.buffer.ydisp,l=Math.max(u,0),t=Math.min(r,this._bufferService.rows-1);if(!(l>=this._bufferService.rows||t<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,a){var s=i[0],d=n[0]-s,m=t-l+1;this._fillCells(s,l,d,m)}else{s=u===l?i[0]:0;var w=l===t?n[0]:this._bufferService.cols;this._fillCells(s,l,w-s,1);var b=Math.max(t-l-1,0);if(this._fillCells(0,l+1,this._bufferService.cols,b),l!==t){var E=r===t?n[0]:this._bufferService.cols;this._fillCells(0,t,E,1)}}this._state.start=[i[0],i[1]],this._state.end=[n[0],n[1]],this._state.columnSelectMode=a,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},o.prototype._didStateChange=function(i,n,a,u){return!this._areCoordinatesEqual(i,this._state.start)||!this._areCoordinatesEqual(n,this._state.end)||a!==this._state.columnSelectMode||u!==this._state.ydisp},o.prototype._areCoordinatesEqual=function(i,n){return!(!i||!n)&&i[0]===n[0]&&i[1]===n[1]},o}(y(13).BaseRenderLayer);f.SelectionRenderLayer=h},function(g,f,y){"use strict";var p,v=this&&this.__extends||(p=function(a,u){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,l){r.__proto__=l}||function(r,l){for(var t in l)l.hasOwnProperty(t)&&(r[t]=l[t])})(a,u)},function(n,a){function u(){this.constructor=n}p(n,a),n.prototype=a===null?Object.create(a):(u.prototype=a.prototype,new u)});Object.defineProperty(f,"__esModule",{value:!0}),f.CursorRenderLayer=void 0;var h=y(13),c=y(4),o=function(n){function a(u,r,l,t,s,d,m,w,b){var E=n.call(this,u,"cursor",r,!0,l,t,d,m)||this;return E._onRequestRedraw=s,E._coreService=w,E._coreBrowserService=b,E._cell=new c.CellData,E._state={x:0,y:0,isFocused:!1,style:"",width:0},E._cursorRenderers={bar:E._renderBarCursor.bind(E),block:E._renderBlockCursor.bind(E),underline:E._renderUnderlineCursor.bind(E)},E}return v(a,n),a.prototype.resize=function(u){n.prototype.resize.call(this,u),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},a.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},a.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},a.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},a.prototype.onOptionsChanged=function(){var u,r=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new i(this._coreBrowserService.isFocused,function(){r._render(!0)})):((u=this._cursorBlinkStateManager)===null||u===void 0||u.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},a.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},a.prototype.onGridChanged=function(u,r){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},a.prototype._render=function(u){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var r=this._bufferService.buffer.ybase+this._bufferService.buffer.y,l=r-this._bufferService.buffer.ydisp;if(l<0||l>=this._bufferService.rows)this._clearCursor();else{var t=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(r).loadCell(t,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var s=this._optionsService.options.cursorStyle;return s&&s!=="block"?this._cursorRenderers[s](t,l,this._cell):this._renderBlurCursor(t,l,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=l,this._state.isFocused=!1,this._state.style=s,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===t&&this._state.y===l&&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"](t,l,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=l,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},a.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})},a.prototype._renderBarCursor=function(u,r,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(u,r,this._optionsService.options.cursorWidth),this._ctx.restore()},a.prototype._renderBlockCursor=function(u,r,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(u,r,l.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(l,u,r),this._ctx.restore()},a.prototype._renderUnderlineCursor=function(u,r,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(u,r),this._ctx.restore()},a.prototype._renderBlurCursor=function(u,r,l){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(u,r,l.getWidth(),1),this._ctx.restore()},a}(h.BaseRenderLayer);f.CursorRenderLayer=o;var i=function(){function n(a,u){this._renderCallback=u,this.isCursorVisible=!0,a&&this._restartInterval()}return Object.defineProperty(n.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),n.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)},n.prototype.restartBlinkAnimation=function(){var a=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){a._renderCallback(),a._animationFrame=void 0})))},n.prototype._restartInterval=function(a){var u=this;a===void 0&&(a=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(u._animationTimeRestarted){var r=600-(Date.now()-u._animationTimeRestarted);if(u._animationTimeRestarted=void 0,r>0)return void u._restartInterval(r)}u.isCursorVisible=!1,u._animationFrame=window.requestAnimationFrame(function(){u._renderCallback(),u._animationFrame=void 0}),u._blinkInterval=window.setInterval(function(){if(u._animationTimeRestarted){var l=600-(Date.now()-u._animationTimeRestarted);return u._animationTimeRestarted=void 0,void u._restartInterval(l)}u.isCursorVisible=!u.isCursorVisible,u._animationFrame=window.requestAnimationFrame(function(){u._renderCallback(),u._animationFrame=void 0})},600)},a)},n.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)},n.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},n}()},function(g,f,y){"use strict";var p,v=this&&this.__extends||(p=function(a,u){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,l){r.__proto__=l}||function(r,l){for(var t in l)l.hasOwnProperty(t)&&(r[t]=l[t])})(a,u)},function(n,a){function u(){this.constructor=n}p(n,a),n.prototype=a===null?Object.create(a):(u.prototype=a.prototype,new u)});Object.defineProperty(f,"__esModule",{value:!0}),f.LinkRenderLayer=void 0;var h=y(13),c=y(9),o=y(26),i=function(n){function a(u,r,l,t,s,d,m,w){var b=n.call(this,u,"link",r,!0,l,t,m,w)||this;return s.onShowLinkUnderline(function(E){return b._onShowLinkUnderline(E)}),s.onHideLinkUnderline(function(E){return b._onHideLinkUnderline(E)}),d.onShowLinkUnderline(function(E){return b._onShowLinkUnderline(E)}),d.onHideLinkUnderline(function(E){return b._onHideLinkUnderline(E)}),b}return v(a,n),a.prototype.resize=function(u){n.prototype.resize.call(this,u),this._state=void 0},a.prototype.reset=function(){this._clearCurrentLink()},a.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var u=this._state.y2-this._state.y1-1;u>0&&this._clearCells(0,this._state.y1+1,this._state.cols,u),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},a.prototype._onShowLinkUnderline=function(u){if(u.fg===c.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:u.fg&&o.is256Color(u.fg)?this._ctx.fillStyle=this._colors.ansi[u.fg].css:this._ctx.fillStyle=this._colors.foreground.css,u.y1===u.y2)this._fillBottomLineAtCells(u.x1,u.y1,u.x2-u.x1);else{this._fillBottomLineAtCells(u.x1,u.y1,u.cols-u.x1);for(var r=u.y1+1;r=0;d--)(l=n[d])&&(s=(t<3?l(s):t>3?l(a,u,s):l(a,u))||s);return t>3&&s&&Object.defineProperty(a,u,s),s},v=this&&this.__param||function(n,a){return function(u,r){a(u,r,n)}};Object.defineProperty(f,"__esModule",{value:!0}),f.MouseZone=f.Linkifier=void 0;var h=y(0),c=y(1),o=function(){function n(a,u,r){this._bufferService=a,this._logService=u,this._unicodeService=r,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new h.EventEmitter,this._onHideLinkUnderline=new h.EventEmitter,this._onLinkTooltip=new h.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(n.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),n.prototype.attachToDom=function(a,u){this._element=a,this._mouseZoneManager=u},n.prototype.linkifyRows=function(a,u){var r=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=a,this._rowsToLinkify.end=u):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,a),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,u)),this._mouseZoneManager.clearAll(a,u),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return r._linkifyRows()},n._timeBeforeLatency))},n.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var a=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var u=a.ydisp+this._rowsToLinkify.start;if(!(u>=a.lines.length)){for(var r=a.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,l=Math.ceil(2e3/this._bufferService.cols),t=this._bufferService.buffer.iterator(!1,u,r,l,l);t.hasNext();)for(var s=t.next(),d=0;d=0;u--)if(a.priority<=this._linkMatchers[u].priority)return void this._linkMatchers.splice(u+1,0,a);this._linkMatchers.splice(0,0,a)}else this._linkMatchers.push(a)},n.prototype.deregisterLinkMatcher=function(a){for(var u=0;u>9&511:void 0;r.validationCallback?r.validationCallback(E,function(x){t._rowsTimeoutId||x&&t._addLink(A[1],A[0]-t._bufferService.buffer.ydisp,E,r,O)}):w._addLink(A[1],A[0]-w._bufferService.buffer.ydisp,E,r,O)},w=this;(l=s.exec(u))!==null&&!(m()==="break"););},n.prototype._addLink=function(a,u,r,l,t){var s=this;if(this._mouseZoneManager&&this._element){var d=this._unicodeService.getStringCellWidth(r),m=a%this._bufferService.cols,w=u+Math.floor(a/this._bufferService.cols),b=(m+d)%this._bufferService.cols,E=w+Math.floor((m+d)/this._bufferService.cols);b===0&&(b=this._bufferService.cols,E--),this._mouseZoneManager.add(new i(m+1,w+1,b+1,E+1,function(A){if(l.handler)return l.handler(A,r);var S=window.open();S?(S.opener=null,S.location.href=r):console.warn("Opening link blocked as opener could not be cleared")},function(){s._onShowLinkUnderline.fire(s._createLinkHoverEvent(m,w,b,E,t)),s._element.classList.add("xterm-cursor-pointer")},function(A){s._onLinkTooltip.fire(s._createLinkHoverEvent(m,w,b,E,t)),l.hoverTooltipCallback&&l.hoverTooltipCallback(A,r,{start:{x:m,y:w},end:{x:b,y:E}})},function(){s._onHideLinkUnderline.fire(s._createLinkHoverEvent(m,w,b,E,t)),s._element.classList.remove("xterm-cursor-pointer"),l.hoverLeaveCallback&&l.hoverLeaveCallback()},function(A){return!l.willLinkActivate||l.willLinkActivate(A,r)}))}},n.prototype._createLinkHoverEvent=function(a,u,r,l,t){return{x1:a,y1:u,x2:r,y2:l,cols:this._bufferService.cols,fg:t}},n._timeBeforeLatency=200,n=p([v(0,c.IBufferService),v(1,c.ILogService),v(2,c.IUnicodeService)],n)}();f.Linkifier=o;var i=function(a,u,r,l,t,s,d,m,w){this.x1=a,this.y1=u,this.x2=r,this.y2=l,this.clickCallback=t,this.hoverCallback=s,this.tooltipCallback=d,this.leaveCallback=m,this.willLinkActivate=w};f.MouseZone=i},function(g,f,y){"use strict";var p,v=this&&this.__extends||(p=function(E,A){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,T){S.__proto__=T}||function(S,T){for(var O in T)T.hasOwnProperty(O)&&(S[O]=T[O])})(E,A)},function(b,E){function A(){this.constructor=b}p(b,E),b.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)}),h=this&&this.__decorate||function(b,E,A,S){var T,O=arguments.length,x=O<3?E:S===null?S=Object.getOwnPropertyDescriptor(E,A):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(b,E,A,S);else for(var C=b.length-1;C>=0;C--)(T=b[C])&&(x=(O<3?T(x):O>3?T(E,A,x):T(E,A))||x);return O>3&&x&&Object.defineProperty(E,A,x),x},c=this&&this.__param||function(b,E){return function(A,S){E(A,S,b)}};Object.defineProperty(f,"__esModule",{value:!0}),f.SelectionService=void 0;var o=y(11),i=y(52),n=y(4),a=y(0),u=y(5),r=y(1),l=y(30),t=y(53),s=y(2),d=String.fromCharCode(160),m=new RegExp(d,"g"),w=function(b){function E(A,S,T,O,x,C,_){var N=b.call(this)||this;return N._element=A,N._screenElement=S,N._bufferService=T,N._coreService=O,N._mouseService=x,N._optionsService=C,N._renderService=_,N._dragScrollAmount=0,N._enabled=!0,N._workCell=new n.CellData,N._mouseDownTimeStamp=0,N._onLinuxMouseSelection=N.register(new a.EventEmitter),N._onRedrawRequest=N.register(new a.EventEmitter),N._onSelectionChange=N.register(new a.EventEmitter),N._onRequestScrollLines=N.register(new a.EventEmitter),N._mouseMoveListener=function(F){return N._onMouseMove(F)},N._mouseUpListener=function(F){return N._onMouseUp(F)},N._coreService.onUserInput(function(){N.hasSelection&&N.clearSelection()}),N._trimListener=N._bufferService.buffer.lines.onTrim(function(F){return N._onTrim(F)}),N.register(N._bufferService.buffers.onBufferActivate(function(F){return N._onBufferActivate(F)})),N.enable(),N._model=new i.SelectionModel(N._bufferService),N._activeSelectionMode=0,N}return v(E,b),Object.defineProperty(E.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){this._removeMouseDownListeners()},E.prototype.reset=function(){this.clearSelection()},E.prototype.disable=function(){this.clearSelection(),this._enabled=!1},E.prototype.enable=function(){this._enabled=!0},Object.defineProperty(E.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"hasSelection",{get:function(){var S=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;return!(!S||!T)&&(S[0]!==T[0]||S[1]!==T[1])},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"selectionText",{get:function(){var S=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;if(!S||!T)return"";var O=this._bufferService.buffer,x=[];if(this._activeSelectionMode===3){if(S[0]===T[0])return"";for(var C=S[1];C<=T[1];C++){var _=O.translateBufferLineToString(C,!0,S[0],T[0]);x.push(_)}}else{var N=S[1]===T[1]?T[0]:void 0;for(x.push(O.translateBufferLineToString(S[1],!0,S[0],N)),C=S[1]+1;C<=T[1]-1;C++){var F=O.lines.get(C);_=O.translateBufferLineToString(C,!0),F&&F.isWrapped?x[x.length-1]+=_:x.push(_)}S[1]!==T[1]&&(F=O.lines.get(T[1]),_=O.translateBufferLineToString(T[1],!0,0,T[0]),F&&F.isWrapped?x[x.length-1]+=_:x.push(_))}return x.map(function(k){return k.replace(m," ")}).join(o.isWindows?`\r `:` `)},enumerable:!1,configurable:!0}),E.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},E.prototype.refresh=function(A){var S=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return S._refresh()})),o.isLinux&&A)&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},E.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},E.prototype.isClickInSelection=function(A){var S=this._getMouseBufferCoords(A),T=this._model.finalSelectionStart,O=this._model.finalSelectionEnd;return!!(T&&O&&S)&&this._areCoordsInSelection(S,T,O)},E.prototype._areCoordsInSelection=function(A,S,T){return A[1]>S[1]&&A[1]=S[0]&&A[0]=S[0]},E.prototype.selectWordAtCursor=function(A){var S=this._getMouseBufferCoords(A);S&&(this._selectWordAt(S,!1),this._model.selectionEnd=void 0,this.refresh(!0))},E.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},E.prototype.selectLines=function(A,S){this._model.clearSelection(),A=Math.max(A,0),S=Math.min(S,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,A],this._model.selectionEnd=[this._bufferService.cols,S],this.refresh(),this._onSelectionChange.fire()},E.prototype._onTrim=function(A){this._model.onTrim(A)&&this.refresh()},E.prototype._getMouseBufferCoords=function(A){var S=this._mouseService.getCoords(A,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(S)return S[0]--,S[1]--,S[1]+=this._bufferService.buffer.ydisp,S},E.prototype._getMouseEventScrollAmount=function(A){var S=l.getCoordsRelativeToElement(A,this._screenElement)[1],T=this._renderService.dimensions.canvasHeight;return S>=0&&S<=T?0:(S>T&&(S-=T),S=Math.min(Math.max(S,-50),50),(S/=50)/Math.abs(S)+Math.round(14*S))},E.prototype.shouldForceSelection=function(A){return o.isMac?A.altKey&&this._optionsService.options.macOptionClickForcesSelection:A.shiftKey},E.prototype.onMouseDown=function(A){if(this._mouseDownTimeStamp=A.timeStamp,(A.button!==2||!this.hasSelection)&&A.button===0){if(!this._enabled){if(!this.shouldForceSelection(A))return;A.stopPropagation()}A.preventDefault(),this._dragScrollAmount=0,this._enabled&&A.shiftKey?this._onIncrementalClick(A):A.detail===1?this._onSingleClick(A):A.detail===2?this._onDoubleClick(A):A.detail===3&&this._onTripleClick(A),this._addMouseDownListeners(),this.refresh(!0)}},E.prototype._addMouseDownListeners=function(){var A=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return A._dragScroll()},50)},E.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},E.prototype._onIncrementalClick=function(A){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(A))},E.prototype._onSingleClick=function(A){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(A)?3:0,this._model.selectionStart=this._getMouseBufferCoords(A),this._model.selectionStart){this._model.selectionEnd=void 0;var S=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);S&&S.length!==this._model.selectionStart[0]&&S.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},E.prototype._onDoubleClick=function(A){var S=this._getMouseBufferCoords(A);S&&(this._activeSelectionMode=1,this._selectWordAt(S,!0))},E.prototype._onTripleClick=function(A){var S=this._getMouseBufferCoords(A);S&&(this._activeSelectionMode=2,this._selectLineAt(S[1]))},E.prototype.shouldColumnSelect=function(A){return A.altKey&&!(o.isMac&&this._optionsService.options.macOptionClickForcesSelection)},E.prototype._onMouseMove=function(A){if(A.stopImmediatePropagation(),this._model.selectionStart){var S=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(A),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var T=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(A.ydisp+this._bufferService.rows,A.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=A.ydisp),this.refresh()}},E.prototype._onMouseUp=function(A){var S=A.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&S<500&&A.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var T=this._mouseService.getCoords(A,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(T&&T[0]!==void 0&&T[1]!==void 0){var O=t.moveToCellSequence(T[0]-1,T[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(O,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},E.prototype._onBufferActivate=function(A){var S=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=A.activeBuffer.lines.onTrim(function(T){return S._onTrim(T)})},E.prototype._convertViewportColToCharacterIndex=function(A,S){for(var T=S[0],O=0;S[0]>=O;O++){var x=A.loadCell(O,this._workCell).getChars().length;this._workCell.getWidth()===0?T--:x>1&&S[0]!==O&&(T+=x-1)}return T},E.prototype.setSelection=function(A,S,T){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[A,S],this._model.selectionStartLength=T,this.refresh()},E.prototype._getWordAt=function(A,S,T,O){if(T===void 0&&(T=!0),O===void 0&&(O=!0),!(A[0]>=this._bufferService.cols)){var x=this._bufferService.buffer,C=x.lines.get(A[1]);if(C){var _=x.translateBufferLineToString(A[1],!1),N=this._convertViewportColToCharacterIndex(C,A),F=N,k=A[0]-N,P=0,j=0,K=0,R=0;if(_.charAt(N)===" "){for(;N>0&&_.charAt(N-1)===" ";)N--;for(;F<_.length&&_.charAt(F+1)===" ";)F++}else{var B=A[0],U=A[0];C.getWidth(B)===0&&(P++,B--),C.getWidth(U)===2&&(j++,U++);var H=C.getString(U).length;for(H>1&&(R+=H-1,F+=H-1);B>0&&N>0&&!this._isCharWordSeparator(C.loadCell(B-1,this._workCell));){C.loadCell(B-1,this._workCell);var W=this._workCell.getChars().length;this._workCell.getWidth()===0?(P++,B--):W>1&&(K+=W-1,N-=W-1),N--,B--}for(;U1&&(R+=V-1,F+=V-1),F++,U++}}F++;var z=N+k-P+K,X=Math.min(this._bufferService.cols,F-N+P+j-K-R);if(S||_.slice(N,F).trim()!==""){if(T&&z===0&&C.getCodePoint(0)!==32){var q=x.lines.get(A[1]-1);if(q&&C.isWrapped&&q.getCodePoint(this._bufferService.cols-1)!==32){var fe=this._getWordAt([this._bufferService.cols-1,A[1]-1],!1,!0,!1);if(fe){var G=this._bufferService.cols-fe.start;z-=G,X+=G}}}if(O&&z+X===this._bufferService.cols&&C.getCodePoint(this._bufferService.cols-1)!==32){var ve=x.lines.get(A[1]+1);if(ve&&ve.isWrapped&&ve.getCodePoint(0)!==32){var Se=this._getWordAt([0,A[1]+1],!1,!1,!0);Se&&(X+=Se.length)}}return{start:z,length:X}}}}},E.prototype._selectWordAt=function(A,S){var T=this._getWordAt(A,S);if(T){for(;T.start<0;)T.start+=this._bufferService.cols,A[1]--;this._model.selectionStart=[T.start,A[1]],this._model.selectionStartLength=T.length}},E.prototype._selectToWordAt=function(A){var S=this._getWordAt(A,!0);if(S){for(var T=A[1];S.start<0;)S.start+=this._bufferService.cols,T--;if(!this._model.areSelectionValuesReversed())for(;S.start+S.length>this._bufferService.cols;)S.length-=this._bufferService.cols,T++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?S.start:S.start+S.length,T]}},E.prototype._isCharWordSeparator=function(A){return A.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(A.getChars())>=0},E.prototype._selectLineAt=function(A){var S=this._bufferService.buffer.getWrappedRangeForLine(A);this._model.selectionStart=[0,S.first],this._model.selectionEnd=[this._bufferService.cols,S.last],this._model.selectionStartLength=0},E=h([c(2,r.IBufferService),c(3,r.ICoreService),c(4,u.IMouseService),c(5,r.IOptionsService),c(6,u.IRenderService)],E)}(s.Disposable);f.SelectionService=w},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.SelectionModel=void 0;var p=function(){function v(h){this._bufferService=h,this.isSelectAllActive=!1,this.selectionStartLength=0}return v.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(v.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(v.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 c=this.selectionStart[0]+this.selectionStartLength;return c>this._bufferService.cols?[c%this._bufferService.cols,this.selectionStart[1]+Math.floor(c/this._bufferService.cols)]:[c,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}),v.prototype.areSelectionValuesReversed=function(){var h=this.selectionStart,c=this.selectionEnd;return!(!h||!c)&&(h[1]>c[1]||h[1]===c[1]&&h[0]>c[0])},v.prototype.onTrim=function(h){return this.selectionStart&&(this.selectionStart[1]-=h),this.selectionEnd&&(this.selectionEnd[1]-=h),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},v}();f.SelectionModel=p},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.moveToCellSequence=void 0;var p=y(12);function v(a,u,r,l){var t=a-h(r,a),s=u-h(r,u);return n(Math.abs(t-s)-function(d,m,w){for(var b=0,E=d-h(w,d),A=m-h(w,m),S=0;S=0&&uu?"A":"B"}function o(a,u,r,l,t,s){for(var d=a,m=u,w="";d!==r||m!==l;)d+=t?1:-1,t&&d>s.cols-1?(w+=s.buffer.translateBufferLineToString(m,!1,a,d),d=0,a=0,m++):!t&&d<0&&(w+=s.buffer.translateBufferLineToString(m,!1,0,a+1),a=d=s.cols-1,m--);return w+s.buffer.translateBufferLineToString(m,!1,a,d)}function i(a,u){var r=u?"O":"[";return p.C0.ESC+r+a}function n(a,u){a=Math.floor(a);for(var r="",l=0;l0?A-h(S,A):b;var x=A,C=function(_,N,F,k,P,j){var K;return K=v(F,k,P,j).length>0?k-h(P,k):N,_=F&&Ka?"D":"C",n(Math.abs(s-a),i(t,l));t=d>u?"D":"C";var m=Math.abs(d-u);return n(function(w,b){return b.cols-w}(d>u?a:s,r)+(m-1)*r.cols+1+((d>u?s:a)-1),i(t,l))}},function(g,f,y){"use strict";var p=this&&this.__decorate||function(o,i,n,a){var u,r=arguments.length,l=r<3?i:a===null?a=Object.getOwnPropertyDescriptor(i,n):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(o,i,n,a);else for(var t=o.length-1;t>=0;t--)(u=o[t])&&(l=(r<3?u(l):r>3?u(i,n,l):u(i,n))||l);return r>3&&l&&Object.defineProperty(i,n,l),l},v=this&&this.__param||function(o,i){return function(n,a){i(n,a,o)}};Object.defineProperty(f,"__esModule",{value:!0}),f.SoundService=void 0;var h=y(1),c=function(){function o(i){this._optionsService=i}return Object.defineProperty(o,"audioContext",{get:function(){if(!o._audioContext){var n=window.AudioContext||window.webkitAudioContext;if(!n)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;o._audioContext=new n}return o._audioContext},enumerable:!1,configurable:!0}),o.prototype.playBellSound=function(){var i=o.audioContext;if(i){var n=i.createBufferSource();i.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(a){n.buffer=a,n.connect(i.destination),n.start(0)})}},o.prototype._base64ToArrayBuffer=function(i){for(var n=window.atob(i),a=n.length,u=new Uint8Array(a),r=0;r=0;b--)(d=r[b])&&(w=(m<3?d(w):m>3?d(l,t,w):d(l,t))||w);return m>3&&w&&Object.defineProperty(l,t,w),w},c=this&&this.__param||function(r,l){return function(t,s){l(t,s,r)}};Object.defineProperty(f,"__esModule",{value:!0}),f.MouseZoneManager=void 0;var o=y(2),i=y(7),n=y(5),a=y(1),u=function(r){function l(t,s,d,m,w,b){var E=r.call(this)||this;return E._element=t,E._screenElement=s,E._bufferService=d,E._mouseService=m,E._selectionService=w,E._optionsService=b,E._zones=[],E._areZonesActive=!1,E._lastHoverCoords=[void 0,void 0],E._initialSelectionLength=0,E.register(i.addDisposableDomListener(E._element,"mousedown",function(A){return E._onMouseDown(A)})),E._mouseMoveListener=function(A){return E._onMouseMove(A)},E._mouseLeaveListener=function(A){return E._onMouseLeave(A)},E._clickListener=function(A){return E._onClick(A)},E}return v(l,r),l.prototype.dispose=function(){r.prototype.dispose.call(this),this._deactivate()},l.prototype.add=function(t){this._zones.push(t),this._zones.length===1&&this._activate()},l.prototype.clearAll=function(t,s){if(this._zones.length!==0){t&&s||(t=0,s=this._bufferService.rows-1);for(var d=0;dt&&m.y1<=s+1||m.y2>t&&m.y2<=s+1||m.y1s+1)&&(this._currentZone&&this._currentZone===m&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(d--,1))}this._zones.length===0&&this._deactivate()}},l.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))},l.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))},l.prototype._onMouseMove=function(t){this._lastHoverCoords[0]===t.pageX&&this._lastHoverCoords[1]===t.pageY||(this._onHover(t),this._lastHoverCoords=[t.pageX,t.pageY])},l.prototype._onHover=function(t){var s=this,d=this._findZoneEventAt(t);d!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),d&&(this._currentZone=d,d.hoverCallback&&d.hoverCallback(t),this._tooltipTimeout=window.setTimeout(function(){return s._onTooltip(t)},this._optionsService.options.linkTooltipHoverDuration)))},l.prototype._onTooltip=function(t){this._tooltipTimeout=void 0;var s=this._findZoneEventAt(t);s&&s.tooltipCallback&&s.tooltipCallback(t)},l.prototype._onMouseDown=function(t){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var s=this._findZoneEventAt(t);(s==null?void 0:s.willLinkActivate(t))&&(t.preventDefault(),t.stopImmediatePropagation())}},l.prototype._onMouseLeave=function(t){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},l.prototype._onClick=function(t){var s=this._findZoneEventAt(t),d=this._getSelectionLength();s&&d===this._initialSelectionLength&&(s.clickCallback(t),t.preventDefault(),t.stopImmediatePropagation())},l.prototype._getSelectionLength=function(){var t=this._selectionService.selectionText;return t?t.length:0},l.prototype._findZoneEventAt=function(t){var s=this._mouseService.getCoords(t,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(s)for(var d=s[0],m=s[1],w=0;w=b.x1&&d=b.x1||m===b.y2&&db.y1&&ms;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var s=document.createElement("div");return s.setAttribute("role","listitem"),s.tabIndex=-1,this._refreshRowDimensions(s),s},t.prototype._onTab=function(s){for(var d=0;d0?this._charsToConsume.shift()!==s&&(this._charsToAnnounce+=s):this._charsToAnnounce+=s,s===` `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=h.tooMuchOutput)),c.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){d._accessibilityTreeRoot.appendChild(d._liveRegion)},0))},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,c.isMac&&u.removeElementFromParent(this._liveRegion)},t.prototype._onKey=function(s){this._clearLiveRegion(),this._charsToConsume.push(s)},t.prototype._refreshRows=function(s,d){this._renderRowsDebouncer.refresh(s,d,this._terminal.rows)},t.prototype._renderRows=function(s,d){for(var m=this._terminal.buffer,w=m.lines.length.toString(),b=s;b<=d;b++){var E=m.translateBufferLineToString(m.ydisp+b,!0),A=(m.ydisp+b+1).toString(),S=this._rowElements[b];S&&(E.length===0?S.innerHTML=" ":S.textContent=E,S.setAttribute("aria-posinset",A),S.setAttribute("aria-setsize",w))}this._announceCharacters()},t.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var s=0;s=0;O--)(A=m[O])&&(T=(S<3?A(T):S>3?A(w,b,T):A(w,b))||T);return S>3&&T&&Object.defineProperty(w,b,T),T},c=this&&this.__param||function(m,w){return function(b,E){w(b,E,m)}};Object.defineProperty(f,"__esModule",{value:!0}),f.DomRenderer=void 0;var o=y(58),i=y(9),n=y(2),a=y(5),u=y(1),r=y(0),l=y(10),t=y(17),s=1,d=function(m){function w(b,E,A,S,T,O,x,C,_){var N=m.call(this)||this;return N._colors=b,N._element=E,N._screenElement=A,N._viewportElement=S,N._linkifier=T,N._linkifier2=O,N._charSizeService=x,N._optionsService=C,N._bufferService=_,N._terminalClass=s++,N._rowElements=[],N._rowContainer=document.createElement("div"),N._rowContainer.classList.add("xterm-rows"),N._rowContainer.style.lineHeight="normal",N._rowContainer.setAttribute("aria-hidden","true"),N._refreshRowElements(N._bufferService.cols,N._bufferService.rows),N._selectionContainer=document.createElement("div"),N._selectionContainer.classList.add("xterm-selection"),N._selectionContainer.setAttribute("aria-hidden","true"),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._updateDimensions(),N._injectCss(),N._rowFactory=new o.DomRendererRowFactory(document,N._optionsService,N._colors),N._element.classList.add("xterm-dom-renderer-owner-"+N._terminalClass),N._screenElement.appendChild(N._rowContainer),N._screenElement.appendChild(N._selectionContainer),N._linkifier.onShowLinkUnderline(function(F){return N._onLinkHover(F)}),N._linkifier.onHideLinkUnderline(function(F){return N._onLinkLeave(F)}),N._linkifier2.onShowLinkUnderline(function(F){return N._onLinkHover(F)}),N._linkifier2.onHideLinkUnderline(function(F){return N._onLinkLeave(F)}),N}return v(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),t.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 b=0,E=this._rowElements;bE;)this._rowContainer.removeChild(this._rowElements.pop())},w.prototype.onResize=function(b,E){this._refreshRowElements(b,E),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(b,E,A){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(b&&E){var S=b[1]-this._bufferService.buffer.ydisp,T=E[1]-this._bufferService.buffer.ydisp,O=Math.max(S,0),x=Math.min(T,this._bufferService.rows-1);if(!(O>=this._bufferService.rows||x<0)){var C=document.createDocumentFragment();if(A)C.appendChild(this._createSelectionElement(O,b[0],E[0],x-O+1));else{var _=S===O?b[0]:0,N=O===x?E[0]:this._bufferService.cols;C.appendChild(this._createSelectionElement(O,_,N));var F=x-O-1;if(C.appendChild(this._createSelectionElement(O+1,0,this._bufferService.cols,F)),O!==x){var k=T===x?E[0]:this._bufferService.cols;C.appendChild(this._createSelectionElement(x,0,k))}}this._selectionContainer.appendChild(C)}}},w.prototype._createSelectionElement=function(b,E,A,S){S===void 0&&(S=1);var T=document.createElement("div");return T.style.height=S*this.dimensions.actualCellHeight+"px",T.style.top=b*this.dimensions.actualCellHeight+"px",T.style.left=E*this.dimensions.actualCellWidth+"px",T.style.width=this.dimensions.actualCellWidth*(A-E)+"px",T},w.prototype.onCursorMove=function(){},w.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},w.prototype.clear=function(){for(var b=0,E=this._rowElements;b=T&&(b=0,A++)}},w=h([c(6,a.ICharSizeService),c(7,u.IOptionsService),c(8,u.IBufferService)],w)}(n.Disposable);f.DomRenderer=d},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.DomRendererRowFactory=f.CURSOR_STYLE_UNDERLINE_CLASS=f.CURSOR_STYLE_BAR_CLASS=f.CURSOR_STYLE_BLOCK_CLASS=f.CURSOR_BLINK_CLASS=f.CURSOR_CLASS=f.UNDERLINE_CLASS=f.ITALIC_CLASS=f.DIM_CLASS=f.BOLD_CLASS=void 0;var p=y(9),v=y(3),h=y(4),c=y(10);f.BOLD_CLASS="xterm-bold",f.DIM_CLASS="xterm-dim",f.ITALIC_CLASS="xterm-italic",f.UNDERLINE_CLASS="xterm-underline",f.CURSOR_CLASS="xterm-cursor",f.CURSOR_BLINK_CLASS="xterm-cursor-blink",f.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",f.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",f.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var o=function(){function n(a,u,r){this._document=a,this._optionsService=u,this._colors=r,this._workCell=new h.CellData}return n.prototype.setColors=function(a){this._colors=a},n.prototype.createRow=function(a,u,r,l,t,s,d){for(var m=this._document.createDocumentFragment(),w=0,b=Math.min(a.length,d)-1;b>=0;b--)if(a.loadCell(b,this._workCell).getCode()!==v.NULL_CELL_CODE||u&&b===l){w=b+1;break}for(b=0;b1&&(A.style.width=s*E+"px"),u&&b===l)switch(A.classList.add(f.CURSOR_CLASS),t&&A.classList.add(f.CURSOR_BLINK_CLASS),r){case"bar":A.classList.add(f.CURSOR_STYLE_BAR_CLASS);break;case"underline":A.classList.add(f.CURSOR_STYLE_UNDERLINE_CLASS);break;default:A.classList.add(f.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&A.classList.add(f.BOLD_CLASS),this._workCell.isItalic()&&A.classList.add(f.ITALIC_CLASS),this._workCell.isDim()&&A.classList.add(f.DIM_CLASS),this._workCell.isUnderline()&&A.classList.add(f.UNDERLINE_CLASS),this._workCell.isInvisible()?A.textContent=v.WHITESPACE_CELL_CHAR:A.textContent=this._workCell.getChars()||v.WHITESPACE_CELL_CHAR;var S=this._workCell.getFgColor(),T=this._workCell.getFgColorMode(),O=this._workCell.getBgColor(),x=this._workCell.getBgColorMode(),C=!!this._workCell.isInverse();if(C){var _=S;S=O,O=_;var N=T;T=x,x=N}switch(T){case 16777216:case 33554432:this._workCell.isBold()&&S<8&&this._optionsService.options.drawBoldTextInBrightColors&&(S+=8),this._applyMinimumContrast(A,this._colors.background,this._colors.ansi[S])||A.classList.add("xterm-fg-"+S);break;case 50331648:var F=c.rgba.toColor(S>>16&255,S>>8&255,255&S);this._applyMinimumContrast(A,this._colors.background,F)||this._addStyle(A,"color:#"+i(S.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(A,this._colors.background,this._colors.foreground)||C&&A.classList.add("xterm-fg-"+p.INVERTED_DEFAULT_COLOR)}switch(x){case 16777216:case 33554432:A.classList.add("xterm-bg-"+O);break;case 50331648:this._addStyle(A,"background-color:#"+i(O.toString(16),"0",6));break;case 0:default:C&&A.classList.add("xterm-bg-"+p.INVERTED_DEFAULT_COLOR)}m.appendChild(A)}}return m},n.prototype._applyMinimumContrast=function(a,u,r){if(this._optionsService.options.minimumContrastRatio===1)return!1;var l=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return l===void 0&&(l=c.color.ensureContrastRatio(u,r,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,l!=null?l:null)),!!l&&(this._addStyle(a,"color:"+l.css),!0)},n.prototype._addStyle=function(a,u){a.setAttribute("style",""+(a.getAttribute("style")||"")+u+";")},n}();function i(n,a,u){for(;n.length"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};f.evaluateKeyboardEvent=function(h,c,o,i){var n={type:0,cancel:!1,key:void 0},a=(h.shiftKey?1:0)|(h.altKey?2:0)|(h.ctrlKey?4:0)|(h.metaKey?8:0);switch(h.keyCode){case 0:h.key==="UIKeyInputUpArrow"?n.key=c?p.C0.ESC+"OA":p.C0.ESC+"[A":h.key==="UIKeyInputLeftArrow"?n.key=c?p.C0.ESC+"OD":p.C0.ESC+"[D":h.key==="UIKeyInputRightArrow"?n.key=c?p.C0.ESC+"OC":p.C0.ESC+"[C":h.key==="UIKeyInputDownArrow"&&(n.key=c?p.C0.ESC+"OB":p.C0.ESC+"[B");break;case 8:if(h.shiftKey){n.key=p.C0.BS;break}if(h.altKey){n.key=p.C0.ESC+p.C0.DEL;break}n.key=p.C0.DEL;break;case 9:if(h.shiftKey){n.key=p.C0.ESC+"[Z";break}n.key=p.C0.HT,n.cancel=!0;break;case 13:n.key=h.altKey?p.C0.ESC+p.C0.CR:p.C0.CR,n.cancel=!0;break;case 27:n.key=p.C0.ESC,h.altKey&&(n.key=p.C0.ESC+p.C0.ESC),n.cancel=!0;break;case 37:if(h.metaKey)break;a?(n.key=p.C0.ESC+"[1;"+(a+1)+"D",n.key===p.C0.ESC+"[1;3D"&&(n.key=p.C0.ESC+(o?"b":"[1;5D"))):n.key=c?p.C0.ESC+"OD":p.C0.ESC+"[D";break;case 39:if(h.metaKey)break;a?(n.key=p.C0.ESC+"[1;"+(a+1)+"C",n.key===p.C0.ESC+"[1;3C"&&(n.key=p.C0.ESC+(o?"f":"[1;5C"))):n.key=c?p.C0.ESC+"OC":p.C0.ESC+"[C";break;case 38:if(h.metaKey)break;a?(n.key=p.C0.ESC+"[1;"+(a+1)+"A",o||n.key!==p.C0.ESC+"[1;3A"||(n.key=p.C0.ESC+"[1;5A")):n.key=c?p.C0.ESC+"OA":p.C0.ESC+"[A";break;case 40:if(h.metaKey)break;a?(n.key=p.C0.ESC+"[1;"+(a+1)+"B",o||n.key!==p.C0.ESC+"[1;3B"||(n.key=p.C0.ESC+"[1;5B")):n.key=c?p.C0.ESC+"OB":p.C0.ESC+"[B";break;case 45:h.shiftKey||h.ctrlKey||(n.key=p.C0.ESC+"[2~");break;case 46:n.key=a?p.C0.ESC+"[3;"+(a+1)+"~":p.C0.ESC+"[3~";break;case 36:n.key=a?p.C0.ESC+"[1;"+(a+1)+"H":c?p.C0.ESC+"OH":p.C0.ESC+"[H";break;case 35:n.key=a?p.C0.ESC+"[1;"+(a+1)+"F":c?p.C0.ESC+"OF":p.C0.ESC+"[F";break;case 33:h.shiftKey?n.type=2:n.key=p.C0.ESC+"[5~";break;case 34:h.shiftKey?n.type=3:n.key=p.C0.ESC+"[6~";break;case 112:n.key=a?p.C0.ESC+"[1;"+(a+1)+"P":p.C0.ESC+"OP";break;case 113:n.key=a?p.C0.ESC+"[1;"+(a+1)+"Q":p.C0.ESC+"OQ";break;case 114:n.key=a?p.C0.ESC+"[1;"+(a+1)+"R":p.C0.ESC+"OR";break;case 115:n.key=a?p.C0.ESC+"[1;"+(a+1)+"S":p.C0.ESC+"OS";break;case 116:n.key=a?p.C0.ESC+"[15;"+(a+1)+"~":p.C0.ESC+"[15~";break;case 117:n.key=a?p.C0.ESC+"[17;"+(a+1)+"~":p.C0.ESC+"[17~";break;case 118:n.key=a?p.C0.ESC+"[18;"+(a+1)+"~":p.C0.ESC+"[18~";break;case 119:n.key=a?p.C0.ESC+"[19;"+(a+1)+"~":p.C0.ESC+"[19~";break;case 120:n.key=a?p.C0.ESC+"[20;"+(a+1)+"~":p.C0.ESC+"[20~";break;case 121:n.key=a?p.C0.ESC+"[21;"+(a+1)+"~":p.C0.ESC+"[21~";break;case 122:n.key=a?p.C0.ESC+"[23;"+(a+1)+"~":p.C0.ESC+"[23~";break;case 123:n.key=a?p.C0.ESC+"[24;"+(a+1)+"~":p.C0.ESC+"[24~";break;default:if(!h.ctrlKey||h.shiftKey||h.altKey||h.metaKey)if(o&&!i||!h.altKey||h.metaKey)o&&!h.altKey&&!h.ctrlKey&&h.metaKey?h.keyCode===65&&(n.type=1):h.key&&!h.ctrlKey&&!h.altKey&&!h.metaKey&&h.keyCode>=48&&h.key.length===1?n.key=h.key:h.key&&h.ctrlKey&&h.key==="_"&&(n.key=p.C0.US);else{var u=v[h.keyCode],r=u&&u[h.shiftKey?1:0];if(r)n.key=p.C0.ESC+r;else if(h.keyCode>=65&&h.keyCode<=90){var l=h.ctrlKey?h.keyCode-64:h.keyCode+32;n.key=p.C0.ESC+String.fromCharCode(l)}}else h.keyCode>=65&&h.keyCode<=90?n.key=String.fromCharCode(h.keyCode-64):h.keyCode===32?n.key=p.C0.NUL:h.keyCode>=51&&h.keyCode<=55?n.key=String.fromCharCode(h.keyCode-51+27):h.keyCode===56?n.key=p.C0.DEL:h.keyCode===219?n.key=p.C0.ESC:h.keyCode===220?n.key=p.C0.FS:h.keyCode===221&&(n.key=p.C0.GS)}return n}},function(g,f,y){"use strict";var p,v=this&&this.__extends||(p=function(d,m){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var E in b)b.hasOwnProperty(E)&&(w[E]=b[E])})(d,m)},function(s,d){function m(){this.constructor=s}p(s,d),s.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}),h=this&&this.__decorate||function(s,d,m,w){var b,E=arguments.length,A=E<3?d:w===null?w=Object.getOwnPropertyDescriptor(d,m):w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(s,d,m,w);else for(var S=s.length-1;S>=0;S--)(b=s[S])&&(A=(E<3?b(A):E>3?b(d,m,A):b(d,m))||A);return E>3&&A&&Object.defineProperty(d,m,A),A},c=this&&this.__param||function(s,d){return function(m,w){d(m,w,s)}};Object.defineProperty(f,"__esModule",{value:!0}),f.RenderService=void 0;var o=y(31),i=y(0),n=y(2),a=y(32),u=y(7),r=y(1),l=y(5),t=function(s){function d(m,w,b,E,A,S){var T=s.call(this)||this;if(T._renderer=m,T._rowCount=w,T._isPaused=!1,T._needsFullRefresh=!1,T._isNextRenderRedrawOnly=!0,T._needsSelectionRefresh=!1,T._canvasWidth=0,T._canvasHeight=0,T._selectionState={start:void 0,end:void 0,columnSelectMode:!1},T._onDimensionsChange=new i.EventEmitter,T._onRender=new i.EventEmitter,T._onRefreshRequest=new i.EventEmitter,T.register({dispose:function(){return T._renderer.dispose()}}),T._renderDebouncer=new o.RenderDebouncer(function(x,C){return T._renderRows(x,C)}),T.register(T._renderDebouncer),T._screenDprMonitor=new a.ScreenDprMonitor,T._screenDprMonitor.setListener(function(){return T.onDevicePixelRatioChange()}),T.register(T._screenDprMonitor),T.register(S.onResize(function(x){return T._fullRefresh()})),T.register(E.onOptionChange(function(){return T._renderer.onOptionsChanged()})),T.register(A.onCharSizeChange(function(){return T.onCharSizeChanged()})),T._renderer.onRequestRedraw(function(x){return T.refreshRows(x.start,x.end,!0)}),T.register(u.addDisposableDomListener(window,"resize",function(){return T.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var O=new IntersectionObserver(function(x){return T._onIntersectionChange(x[x.length-1])},{threshold:0});O.observe(b),T.register({dispose:function(){return O.disconnect()}})}return T}return v(d,s),Object.defineProperty(d.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),d.prototype._onIntersectionChange=function(m){this._isPaused=m.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},d.prototype.refreshRows=function(m,w,b){b===void 0&&(b=!1),this._isPaused?this._needsFullRefresh=!0:(b||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(m,w,this._rowCount))},d.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},d.prototype.resize=function(m,w){this._rowCount=w,this._fireOnCanvasResize()},d.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},d.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},d.prototype.dispose=function(){s.prototype.dispose.call(this)},d.prototype.setRenderer=function(m){var w=this;this._renderer.dispose(),this._renderer=m,this._renderer.onRequestRedraw(function(b){return w.refreshRows(b.start,b.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},d.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},d.prototype.setColors=function(m){this._renderer.setColors(m),this._fullRefresh()},d.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},d.prototype.onResize=function(m,w){this._renderer.onResize(m,w),this._fullRefresh()},d.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},d.prototype.onBlur=function(){this._renderer.onBlur()},d.prototype.onFocus=function(){this._renderer.onFocus()},d.prototype.onSelectionChanged=function(m,w,b){this._selectionState.start=m,this._selectionState.end=w,this._selectionState.columnSelectMode=b,this._renderer.onSelectionChanged(m,w,b)},d.prototype.onCursorMove=function(){this._renderer.onCursorMove()},d.prototype.clear=function(){this._renderer.clear()},d.prototype.registerCharacterJoiner=function(m){return this._renderer.registerCharacterJoiner(m)},d.prototype.deregisterCharacterJoiner=function(m){return this._renderer.deregisterCharacterJoiner(m)},d=h([c(3,r.IOptionsService),c(4,l.ICharSizeService),c(5,r.IBufferService)],d)}(n.Disposable);f.RenderService=t},function(g,f,y){"use strict";var p=this&&this.__decorate||function(n,a,u,r){var l,t=arguments.length,s=t<3?a:r===null?r=Object.getOwnPropertyDescriptor(a,u):r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,a,u,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(s=(t<3?l(s):t>3?l(a,u,s):l(a,u))||s);return t>3&&s&&Object.defineProperty(a,u,s),s},v=this&&this.__param||function(n,a){return function(u,r){a(u,r,n)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CharSizeService=void 0;var h=y(1),c=y(0),o=function(){function n(a,u,r){this._optionsService=r,this.width=0,this.height=0,this._onCharSizeChange=new c.EventEmitter,this._measureStrategy=new i(a,u,this._optionsService)}return Object.defineProperty(n.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),n.prototype.measure=function(){var a=this._measureStrategy.measure();a.width===this.width&&a.height===this.height||(this.width=a.width,this.height=a.height,this._onCharSizeChange.fire())},n=p([v(2,h.IOptionsService)],n)}();f.CharSizeService=o;var i=function(){function n(a,u,r){this._document=a,this._parentElement=u,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 n.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var a=this._measureElement.getBoundingClientRect();return a.width!==0&&a.height!==0&&(this._result.width=a.width,this._result.height=Math.ceil(a.height)),this._result},n}()},function(g,f,y){"use strict";var p=this&&this.__decorate||function(i,n,a,u){var r,l=arguments.length,t=l<3?n:u===null?u=Object.getOwnPropertyDescriptor(n,a):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(i,n,a,u);else for(var s=i.length-1;s>=0;s--)(r=i[s])&&(t=(l<3?r(t):l>3?r(n,a,t):r(n,a))||t);return l>3&&t&&Object.defineProperty(n,a,t),t},v=this&&this.__param||function(i,n){return function(a,u){n(a,u,i)}};Object.defineProperty(f,"__esModule",{value:!0}),f.MouseService=void 0;var h=y(5),c=y(30),o=function(){function i(n,a){this._renderService=n,this._charSizeService=a}return i.prototype.getCoords=function(n,a,u,r,l){return c.getCoords(n,a,u,r,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,l)},i.prototype.getRawByteCoords=function(n,a,u,r){var l=this.getCoords(n,a,u,r);return c.getRawByteCoords(l)},i=p([v(0,h.IRenderService),v(1,h.ICharSizeService)],i)}();f.MouseService=o},function(g,f,y){"use strict";var p,v=this&&this.__extends||(p=function(l,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,d){s.__proto__=d}||function(s,d){for(var m in d)d.hasOwnProperty(m)&&(s[m]=d[m])})(l,t)},function(r,l){function t(){this.constructor=r}p(r,l),r.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)}),h=this&&this.__decorate||function(r,l,t,s){var d,m=arguments.length,w=m<3?l:s===null?s=Object.getOwnPropertyDescriptor(l,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(r,l,t,s);else for(var b=r.length-1;b>=0;b--)(d=r[b])&&(w=(m<3?d(w):m>3?d(l,t,w):d(l,t))||w);return m>3&&w&&Object.defineProperty(l,t,w),w},c=this&&this.__param||function(r,l){return function(t,s){l(t,s,r)}};Object.defineProperty(f,"__esModule",{value:!0}),f.Linkifier2=void 0;var o=y(1),i=y(0),n=y(2),a=y(7),u=function(r){function l(t){var s=r.call(this)||this;return s._bufferService=t,s._linkProviders=[],s._linkCacheDisposables=[],s._isMouseOut=!0,s._activeLine=-1,s._onShowLinkUnderline=s.register(new i.EventEmitter),s._onHideLinkUnderline=s.register(new i.EventEmitter),s.register(n.getDisposeArrayDisposable(s._linkCacheDisposables)),s}return v(l,r),Object.defineProperty(l.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),l.prototype.registerLinkProvider=function(t){var s=this;return this._linkProviders.push(t),{dispose:function(){var m=s._linkProviders.indexOf(t);m!==-1&&s._linkProviders.splice(m,1)}}},l.prototype.attachToDom=function(t,s,d){var m=this;this._element=t,this._mouseService=s,this._renderService=d,this.register(a.addDisposableDomListener(this._element,"mouseleave",function(){m._isMouseOut=!0,m._clearCurrentLink()})),this.register(a.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(a.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},l.prototype._onMouseMove=function(t){if(this._lastMouseEvent=t,this._element&&this._mouseService){var s=this._positionFromMouseEvent(t,this._element,this._mouseService);if(s){this._isMouseOut=!1;for(var d=t.composedPath(),m=0;mt?this._bufferService.cols:E.link.range.end.x,T=A;T<=S;T++){if(d.has(T)){w.splice(b--,1);break}d.add(T)}}},l.prototype._checkLinkProviderResult=function(t,s,d){var m,w=this;if(!this._activeProviderReplies)return d;for(var b=this._activeProviderReplies.get(t),E=!1,A=0;A=t&&this._currentLink.link.range.end.y<=s)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,n.disposeArray(this._linkCacheDisposables))},l.prototype._handleNewLink=function(t){var s=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var d=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);d&&this._linkAtPosition(t.link,d)&&(this._currentLink=t,this._currentLink.state={decorations:{underline:t.link.decorations===void 0||t.link.decorations.underline,pointerCursor:t.link.decorations===void 0||t.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,t.link,this._lastMouseEvent),t.link.decorations={},Object.defineProperties(t.link.decorations,{pointerCursor:{get:function(){var w,b;return(b=(w=s._currentLink)===null||w===void 0?void 0:w.state)===null||b===void 0?void 0:b.decorations.pointerCursor},set:function(w){var b,E;((b=s._currentLink)===null||b===void 0?void 0:b.state)&&s._currentLink.state.decorations.pointerCursor!==w&&(s._currentLink.state.decorations.pointerCursor=w,s._currentLink.state.isHovered&&((E=s._element)===null||E===void 0||E.classList.toggle("xterm-cursor-pointer",w)))}},underline:{get:function(){var w,b;return(b=(w=s._currentLink)===null||w===void 0?void 0:w.state)===null||b===void 0?void 0:b.decorations.underline},set:function(w){var b,E,A;((b=s._currentLink)===null||b===void 0?void 0:b.state)&&((A=(E=s._currentLink)===null||E===void 0?void 0:E.state)===null||A===void 0?void 0:A.decorations.underline)!==w&&(s._currentLink.state.decorations.underline=w,s._currentLink.state.isHovered&&s._fireUnderlineEvent(t.link,w))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(m){var w=m.start===0?0:m.start+1+s._bufferService.buffer.ydisp;s._clearCurrentLink(w,m.end+1+s._bufferService.buffer.ydisp)})))}},l.prototype._linkHover=function(t,s,d){var m;((m=this._currentLink)===null||m===void 0?void 0:m.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!0),this._currentLink.state.decorations.pointerCursor&&t.classList.add("xterm-cursor-pointer")),s.hover&&s.hover(d,s.text)},l.prototype._fireUnderlineEvent=function(t,s){var d=t.range,m=this._bufferService.buffer.ydisp,w=this._createLinkUnderlineEvent(d.start.x-1,d.start.y-m-1,d.end.x,d.end.y-m-1,void 0);(s?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(w)},l.prototype._linkLeave=function(t,s,d){var m;((m=this._currentLink)===null||m===void 0?void 0:m.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!1),this._currentLink.state.decorations.pointerCursor&&t.classList.remove("xterm-cursor-pointer")),s.leave&&s.leave(d,s.text)},l.prototype._linkAtPosition=function(t,s){var d=t.range.start.y===t.range.end.y,m=t.range.start.ys.y;return(d&&t.range.start.x<=s.x&&t.range.end.x>=s.x||m&&t.range.end.x>=s.x||w&&t.range.start.x<=s.x||m&&w)&&t.range.start.y<=s.y&&t.range.end.y>=s.y},l.prototype._positionFromMouseEvent=function(t,s,d){var m=d.getCoords(t,s,this._bufferService.cols,this._bufferService.rows);if(m)return{x:m[0],y:m[1]+this._bufferService.buffer.ydisp}},l.prototype._createLinkUnderlineEvent=function(t,s,d,m,w){return{x1:t,y1:s,x2:d,y2:m,cols:this._bufferService.cols,fg:w}},l=h([c(0,o.IBufferService)],l)}(n.Disposable);f.Linkifier2=u},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CoreBrowserService=void 0;var p=function(){function v(h){this._textarea=h}return Object.defineProperty(v.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),v}();f.CoreBrowserService=p},function(g,f,y){"use strict";var p,v=this&&this.__extends||(p=function(S,T){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,x){O.__proto__=x}||function(O,x){for(var C in x)x.hasOwnProperty(C)&&(O[C]=x[C])})(S,T)},function(A,S){function T(){this.constructor=A}p(A,S),A.prototype=S===null?Object.create(S):(T.prototype=S.prototype,new T)});Object.defineProperty(f,"__esModule",{value:!0}),f.CoreTerminal=void 0;var h=y(2),c=y(1),o=y(66),i=y(67),n=y(68),a=y(74),u=y(75),r=y(0),l=y(76),t=y(77),s=y(78),d=y(80),m=y(81),w=y(19),b=y(82),E=function(A){function S(T){var O=A.call(this)||this;return O._onBinary=new r.EventEmitter,O._onData=new r.EventEmitter,O._onLineFeed=new r.EventEmitter,O._onResize=new r.EventEmitter,O._onScroll=new r.EventEmitter,O._instantiationService=new o.InstantiationService,O.optionsService=new a.OptionsService(T),O._instantiationService.setService(c.IOptionsService,O.optionsService),O._bufferService=O.register(O._instantiationService.createInstance(n.BufferService)),O._instantiationService.setService(c.IBufferService,O._bufferService),O._logService=O._instantiationService.createInstance(i.LogService),O._instantiationService.setService(c.ILogService,O._logService),O._coreService=O.register(O._instantiationService.createInstance(u.CoreService,function(){return O.scrollToBottom()})),O._instantiationService.setService(c.ICoreService,O._coreService),O._coreMouseService=O._instantiationService.createInstance(l.CoreMouseService),O._instantiationService.setService(c.ICoreMouseService,O._coreMouseService),O._dirtyRowService=O._instantiationService.createInstance(t.DirtyRowService),O._instantiationService.setService(c.IDirtyRowService,O._dirtyRowService),O.unicodeService=O._instantiationService.createInstance(s.UnicodeService),O._instantiationService.setService(c.IUnicodeService,O.unicodeService),O._charsetService=O._instantiationService.createInstance(d.CharsetService),O._instantiationService.setService(c.ICharsetService,O._charsetService),O._inputHandler=new w.InputHandler(O._bufferService,O._charsetService,O._coreService,O._dirtyRowService,O._logService,O.optionsService,O._coreMouseService,O.unicodeService),O.register(r.forwardEvent(O._inputHandler.onLineFeed,O._onLineFeed)),O.register(O._inputHandler),O.register(r.forwardEvent(O._bufferService.onResize,O._onResize)),O.register(r.forwardEvent(O._coreService.onData,O._onData)),O.register(r.forwardEvent(O._coreService.onBinary,O._onBinary)),O.register(O.optionsService.onOptionChange(function(x){return O._updateOptions(x)})),O._writeBuffer=new b.WriteBuffer(function(x){return O._inputHandler.parse(x)}),O}return v(S,A),Object.defineProperty(S.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),S.prototype.dispose=function(){var T;this._isDisposed||(A.prototype.dispose.call(this),(T=this._windowsMode)===null||T===void 0||T.dispose(),this._windowsMode=void 0)},S.prototype.write=function(T,O){this._writeBuffer.write(T,O)},S.prototype.writeSync=function(T){this._writeBuffer.writeSync(T)},S.prototype.resize=function(T,O){isNaN(T)||isNaN(O)||(T=Math.max(T,n.MINIMUM_COLS),O=Math.max(O,n.MINIMUM_ROWS),this._bufferService.resize(T,O))},S.prototype.scroll=function(T,O){O===void 0&&(O=!1);var x,C=this._bufferService.buffer;(x=this._cachedBlankLine)&&x.length===this.cols&&x.getFg(0)===T.fg&&x.getBg(0)===T.bg||(x=C.getBlankLine(T,O),this._cachedBlankLine=x),x.isWrapped=O;var _=C.ybase+C.scrollTop,N=C.ybase+C.scrollBottom;if(C.scrollTop===0){var F=C.lines.isFull;N===C.lines.length-1?F?C.lines.recycle().copyFrom(x):C.lines.push(x.clone()):C.lines.splice(N+1,0,x.clone()),F?this._bufferService.isUserScrolling&&(C.ydisp=Math.max(C.ydisp-1,0)):(C.ybase++,this._bufferService.isUserScrolling||C.ydisp++)}else{var k=N-_+1;C.lines.shiftElements(_+1,k-1,-1),C.lines.set(N,x.clone())}this._bufferService.isUserScrolling||(C.ydisp=C.ybase),this._dirtyRowService.markRangeDirty(C.scrollTop,C.scrollBottom),this._onScroll.fire(C.ydisp)},S.prototype.scrollLines=function(T,O){var x=this._bufferService.buffer;if(T<0){if(x.ydisp===0)return;this._bufferService.isUserScrolling=!0}else T+x.ydisp>=x.ybase&&(this._bufferService.isUserScrolling=!1);var C=x.ydisp;x.ydisp=Math.max(Math.min(x.ydisp+T,x.ybase),0),C!==x.ydisp&&(O||this._onScroll.fire(x.ydisp))},S.prototype.scrollPages=function(T){this.scrollLines(T*(this.rows-1))},S.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},S.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},S.prototype.scrollToLine=function(T){var O=T-this._bufferService.buffer.ydisp;O!==0&&this.scrollLines(O)},S.prototype.addEscHandler=function(T,O){return this._inputHandler.addEscHandler(T,O)},S.prototype.addDcsHandler=function(T,O){return this._inputHandler.addDcsHandler(T,O)},S.prototype.addCsiHandler=function(T,O){return this._inputHandler.addCsiHandler(T,O)},S.prototype.addOscHandler=function(T,O){return this._inputHandler.addOscHandler(T,O)},S.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},S.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},S.prototype._updateOptions=function(T){var O;switch(T){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((O=this._windowsMode)===null||O===void 0||O.dispose(),this._windowsMode=void 0)}},S.prototype._enableWindowsMode=function(){var T=this;if(!this._windowsMode){var O=[];O.push(this.onLineFeed(m.updateWindowsModeWrappedState.bind(null,this._bufferService))),O.push(this.addCsiHandler({final:"H"},function(){return m.updateWindowsModeWrappedState(T._bufferService),!1})),this._windowsMode={dispose:function(){for(var C=0,_=O;C<_.length;C++)_[C].dispose()}}}},S}(h.Disposable);f.CoreTerminal=E},function(g,f,y){"use strict";var p=this&&this.__spreadArrays||function(){for(var i=0,n=0,a=arguments.length;n0?r[0].index:a.length;if(a.length!==w)throw new Error("[createInstance] First service dependency of "+n.name+" at position "+(w+1)+" conflicts with "+a.length+" static arguments");return new(n.bind.apply(n,p([void 0],p(a,l))))},i}();f.InstantiationService=o},function(g,f,y){"use strict";var p=this&&this.__decorate||function(a,u,r,l){var t,s=arguments.length,d=s<3?u:l===null?l=Object.getOwnPropertyDescriptor(u,r):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(a,u,r,l);else for(var m=a.length-1;m>=0;m--)(t=a[m])&&(d=(s<3?t(d):s>3?t(u,r,d):t(u,r))||d);return s>3&&d&&Object.defineProperty(u,r,d),d},v=this&&this.__param||function(a,u){return function(r,l){u(r,l,a)}},h=this&&this.__spreadArrays||function(){for(var a=0,u=0,r=arguments.length;u=0;b--)(d=r[b])&&(w=(m<3?d(w):m>3?d(l,t,w):d(l,t))||w);return m>3&&w&&Object.defineProperty(l,t,w),w},c=this&&this.__param||function(r,l){return function(t,s){l(t,s,r)}};Object.defineProperty(f,"__esModule",{value:!0}),f.BufferService=f.MINIMUM_ROWS=f.MINIMUM_COLS=void 0;var o=y(1),i=y(69),n=y(0),a=y(2);f.MINIMUM_COLS=2,f.MINIMUM_ROWS=1;var u=function(r){function l(t){var s=r.call(this)||this;return s._optionsService=t,s.isUserScrolling=!1,s._onResize=new n.EventEmitter,s.cols=Math.max(t.options.cols,f.MINIMUM_COLS),s.rows=Math.max(t.options.rows,f.MINIMUM_ROWS),s.buffers=new i.BufferSet(t,s),s}return v(l,r),Object.defineProperty(l.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),l.prototype.dispose=function(){r.prototype.dispose.call(this),this.buffers.dispose()},l.prototype.resize=function(t,s){this.cols=t,this.rows=s,this.buffers.resize(t,s),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:t,rows:s})},l.prototype.reset=function(){this.buffers.dispose(),this.buffers=new i.BufferSet(this._optionsService,this),this.isUserScrolling=!1},l=h([c(0,o.IOptionsService)],l)}(a.Disposable);f.BufferService=u},function(g,f,y){"use strict";var p,v=this&&this.__extends||(p=function(n,a){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,r){u.__proto__=r}||function(u,r){for(var l in r)r.hasOwnProperty(l)&&(u[l]=r[l])})(n,a)},function(i,n){function a(){this.constructor=i}p(i,n),i.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)});Object.defineProperty(f,"__esModule",{value:!0}),f.BufferSet=void 0;var h=y(70),c=y(0),o=function(i){function n(a,u){var r=i.call(this)||this;return r._onBufferActivate=r.register(new c.EventEmitter),r._normal=new h.Buffer(!0,a,u),r._normal.fillViewportRows(),r._alt=new h.Buffer(!1,a,u),r._activeBuffer=r._normal,r.setupTabStops(),r}return v(n,i),Object.defineProperty(n.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),n.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}))},n.prototype.activateAltBuffer=function(a){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(a),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}))},n.prototype.resize=function(a,u){this._normal.resize(a,u),this._alt.resize(a,u)},n.prototype.setupTabStops=function(a){this._normal.setupTabStops(a),this._alt.setupTabStops(a)},n}(y(2).Disposable);f.BufferSet=o},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.BufferStringIterator=f.Buffer=f.MAX_BUFFER_SIZE=void 0;var p=y(71),v=y(16),h=y(4),c=y(3),o=y(72),i=y(73),n=y(20),a=y(6);f.MAX_BUFFER_SIZE=4294967295;var u=function(){function l(t,s,d){this._hasScrollback=t,this._optionsService=s,this._bufferService=d,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=v.DEFAULT_ATTR_DATA.clone(),this.savedCharset=n.DEFAULT_CHARSET,this.markers=[],this._nullCell=h.CellData.fromCharData([0,c.NULL_CELL_CHAR,c.NULL_CELL_WIDTH,c.NULL_CELL_CODE]),this._whitespaceCell=h.CellData.fromCharData([0,c.WHITESPACE_CELL_CHAR,c.WHITESPACE_CELL_WIDTH,c.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new p.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return l.prototype.getNullCell=function(t){return t?(this._nullCell.fg=t.fg,this._nullCell.bg=t.bg,this._nullCell.extended=t.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new a.ExtendedAttrs),this._nullCell},l.prototype.getWhitespaceCell=function(t){return t?(this._whitespaceCell.fg=t.fg,this._whitespaceCell.bg=t.bg,this._whitespaceCell.extended=t.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new a.ExtendedAttrs),this._whitespaceCell},l.prototype.getBlankLine=function(t,s){return new v.BufferLine(this._bufferService.cols,this.getNullCell(t),s)},Object.defineProperty(l.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isCursorInViewport",{get:function(){var s=this.ybase+this.y-this.ydisp;return s>=0&&sf.MAX_BUFFER_SIZE?f.MAX_BUFFER_SIZE:s},l.prototype.fillViewportRows=function(t){if(this.lines.length===0){t===void 0&&(t=v.DEFAULT_ATTR_DATA);for(var s=this._rows;s--;)this.lines.push(this.getBlankLine(t))}},l.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new p.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},l.prototype.resize=function(t,s){var d=this.getNullCell(v.DEFAULT_ATTR_DATA),m=this._getCorrectBufferLength(s);if(m>this.lines.maxLength&&(this.lines.maxLength=m),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+b+1?(this.ybase--,b++,this.ydisp>0&&this.ydisp--):this.lines.push(new v.BufferLine(t,d)));else for(E=this._rows;E>s;E--)this.lines.length>s+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(m0&&(this.lines.trimStart(A),this.ybase=Math.max(this.ybase-A,0),this.ydisp=Math.max(this.ydisp-A,0),this.savedY=Math.max(this.savedY-A,0)),this.lines.maxLength=m}this.x=Math.min(this.x,t-1),this.y=Math.min(this.y,s-1),b&&(this.y+=b),this.savedX=Math.min(this.savedX,t-1),this.scrollTop=0}if(this.scrollBottom=s-1,this._isReflowEnabled&&(this._reflow(t,s),this._cols>t))for(w=0;wthis._cols?this._reflowLarger(t,s):this._reflowSmaller(t,s))},l.prototype._reflowLarger=function(t,s){var d=o.reflowLargerGetLinesToRemove(this.lines,this._cols,t,this.ybase+this.y,this.getNullCell(v.DEFAULT_ATTR_DATA));if(d.length>0){var m=o.reflowLargerCreateNewLayout(this.lines,d);o.reflowLargerApplyNewLayout(this.lines,m.layout),this._reflowLargerAdjustViewport(t,s,m.countRemoved)}},l.prototype._reflowLargerAdjustViewport=function(t,s,d){for(var m=this.getNullCell(v.DEFAULT_ATTR_DATA),w=d;w-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length=0;b--){var E=this.lines.get(b);if(!(!E||!E.isWrapped&&E.getTrimmedLength()<=t)){for(var A=[E];E.isWrapped&&b>0;)E=this.lines.get(--b),A.unshift(E);var S=this.ybase+this.y;if(!(S>=b&&S0&&(m.push({start:b+A.length+w,newLines:_}),w+=_.length),A.push.apply(A,_);var k=O.length-1,P=O[k];P===0&&(P=O[--k]);for(var j=A.length-x-1,K=T;j>=0;){var R=Math.min(K,P);if(A[k].copyCellsFrom(A[j],K-R,P-R,R,!0),(P-=R)===0&&(P=O[--k]),(K-=R)===0){j--;var B=Math.max(j,0);K=o.getWrappedLineTrimmedLength(A,B,this._cols)}}for(N=0;N0;)this.ybase===0?this.y0){var H=[],W=[];for(N=0;N=0;N--)if(q&&q.start>z+fe){for(var G=q.newLines.length-1;G>=0;G--)this.lines.set(N--,q.newLines[G]);N++,H.push({index:z+1,amount:q.newLines.length}),fe+=q.newLines.length,q=m[++X]}else this.lines.set(N,W[z--]);var ve=0;for(N=H.length-1;N>=0;N--)H[N].index+=ve,this.lines.onInsertEmitter.fire(H[N]),ve+=H[N].amount;var Se=Math.max(0,V+w-this.lines.maxLength);Se>0&&this.lines.onTrimEmitter.fire(Se)}},l.prototype.stringIndexToBufferIndex=function(t,s,d){for(d===void 0&&(d=!1);s;){var m=this.lines.get(t);if(!m)return[-1,-1];for(var w=d?m.getTrimmedLength():m.length,b=0;b0&&this.lines.get(s).isWrapped;)s--;for(;d+10;);return t>=this._cols?this._cols-1:t<0?0:t},l.prototype.nextStop=function(t){for(t==null&&(t=this.x);!this.tabs[++t]&&t=this._cols?this._cols-1:t<0?0:t},l.prototype.addMarker=function(t){var s=this,d=new i.Marker(t);return this.markers.push(d),d.register(this.lines.onTrim(function(m){d.line-=m,d.line<0&&d.dispose()})),d.register(this.lines.onInsert(function(m){d.line>=m.index&&(d.line+=m.amount)})),d.register(this.lines.onDelete(function(m){d.line>=m.index&&d.linem.index&&(d.line-=m.amount)})),d.register(d.onDispose(function(){return s._removeMarker(d)})),d},l.prototype._removeMarker=function(t){this.markers.splice(this.markers.indexOf(t),1)},l.prototype.iterator=function(t,s,d,m,w){return new r(this,t,s,d,m,w)},l}();f.Buffer=u;var r=function(){function l(t,s,d,m,w,b){d===void 0&&(d=0),m===void 0&&(m=t.lines.length),w===void 0&&(w=0),b===void 0&&(b=0),this._buffer=t,this._trimRight=s,this._startIndex=d,this._endIndex=m,this._startOverscan=w,this._endOverscan=b,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return l.prototype.hasNext=function(){return this._currentthis._endIndex+this._endOverscan&&(t.last=this._endIndex+this._endOverscan),t.first=Math.max(t.first,0),t.last=Math.min(t.last,this._buffer.lines.length);for(var s="",d=t.first;d<=t.last;++d)s+=this._buffer.translateBufferLineToString(d,this._trimRight);return this._current=t.last+1,{range:t,content:s}},l}();f.BufferStringIterator=r},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CircularList=void 0;var p=y(0),v=function(){function h(c){this._maxLength=c,this.onDeleteEmitter=new p.EventEmitter,this.onInsertEmitter=new p.EventEmitter,this.onTrimEmitter=new p.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(h.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"maxLength",{get:function(){return this._maxLength},set:function(o){if(this._maxLength!==o){for(var i=new Array(o),n=0;nthis._length)for(var i=this._length;i=c;a--)this._array[this._getCyclicIndex(a+i.length)]=this._array[this._getCyclicIndex(a)];for(a=0;athis._maxLength){var u=this._length+i.length-this._maxLength;this._startIndex+=u,this._length=this._maxLength,this.onTrimEmitter.fire(u)}else this._length+=i.length},h.prototype.trimStart=function(c){c>this._length&&(c=this._length),this._startIndex+=c,this._length-=c,this.onTrimEmitter.fire(c)},h.prototype.shiftElements=function(c,o,i){if(!(o<=0)){if(c<0||c>=this._length)throw new Error("start argument out of range");if(c+i<0)throw new Error("Cannot shift elements in list beyond index 0");if(i>0){for(var n=o-1;n>=0;n--)this.set(c+n+i,this.get(c+n));var a=c+o+i-this._length;if(a>0)for(this._length+=a;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(n=0;n=a&&o0&&(T>t||l[T].getTrimmedLength()===0);T--)S++;S>0&&(n.push(a+l.length-S),n.push(S)),a+=l.length-1}}}return n},f.reflowLargerCreateNewLayout=function(v,h){for(var c=[],o=0,i=h[o],n=0,a=0;ar&&(n-=r,a++);var l=v[a].getWidth(n-1)===2;l&&n--;var t=l?c-1:c;o.push(t),u+=t}return o},f.getWrappedLineTrimmedLength=p},function(g,f,y){"use strict";var p,v=this&&this.__extends||(p=function(i,n){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,u){a.__proto__=u}||function(a,u){for(var r in u)u.hasOwnProperty(r)&&(a[r]=u[r])})(i,n)},function(o,i){function n(){this.constructor=o}p(o,i),o.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(f,"__esModule",{value:!0}),f.Marker=void 0;var h=y(0),c=function(o){function i(n){var a=o.call(this)||this;return a.line=n,a._id=i._nextId++,a.isDisposed=!1,a._onDispose=new h.EventEmitter,a}return v(i,o),Object.defineProperty(i.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},i._nextId=1,i}(y(2).Disposable);f.Marker=c},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.OptionsService=f.DEFAULT_OPTIONS=f.DEFAULT_BELL_SOUND=void 0;var p=y(0),v=y(11),h=y(33);f.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",f.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:f.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:v.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var c=["cols","rows"],o=function(){function i(n){this._onOptionChange=new p.EventEmitter,this.options=h.clone(f.DEFAULT_OPTIONS);for(var a=0,u=Object.keys(n);a=0;A--)(w=t[A])&&(E=(b<3?w(E):b>3?w(s,d,E):w(s,d))||E);return b>3&&E&&Object.defineProperty(s,d,E),E},c=this&&this.__param||function(t,s){return function(d,m){s(d,m,t)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CoreService=void 0;var o=y(1),i=y(0),n=y(33),a=y(2),u=Object.freeze({insertMode:!1}),r=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),l=function(t){function s(d,m,w,b){var E=t.call(this)||this;return E._bufferService=m,E._logService=w,E._optionsService=b,E.isCursorInitialized=!1,E.isCursorHidden=!1,E._onData=E.register(new i.EventEmitter),E._onUserInput=E.register(new i.EventEmitter),E._onBinary=E.register(new i.EventEmitter),E._scrollToBottom=d,E.register({dispose:function(){return E._scrollToBottom=void 0}}),E.modes=n.clone(u),E.decPrivateModes=n.clone(r),E}return v(s,t),Object.defineProperty(s.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),s.prototype.reset=function(){this.modes=n.clone(u),this.decPrivateModes=n.clone(r)},s.prototype.triggerDataEvent=function(d,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 "'+d+'"',function(){return d.split("").map(function(b){return b.charCodeAt(0)})}),this._onData.fire(d)}},s.prototype.triggerBinaryEvent=function(d){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+d+'"',function(){return d.split("").map(function(m){return m.charCodeAt(0)})}),this._onBinary.fire(d))},s=h([c(1,o.IBufferService),c(2,o.ILogService),c(3,o.IOptionsService)],s)}(a.Disposable);f.CoreService=l},function(g,f,y){"use strict";var p=this&&this.__decorate||function(r,l,t,s){var d,m=arguments.length,w=m<3?l:s===null?s=Object.getOwnPropertyDescriptor(l,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(r,l,t,s);else for(var b=r.length-1;b>=0;b--)(d=r[b])&&(w=(m<3?d(w):m>3?d(l,t,w):d(l,t))||w);return m>3&&w&&Object.defineProperty(l,t,w),w},v=this&&this.__param||function(r,l){return function(t,s){l(t,s,r)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CoreMouseService=void 0;var h=y(1),c=y(0),o={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(l){return l.button!==4&&l.action===1&&(l.ctrl=!1,l.alt=!1,l.shift=!1,!0)}},VT200:{events:19,restrict:function(l){return l.action!==32}},DRAG:{events:23,restrict:function(l){return l.action!==32||l.button!==3}},ANY:{events:31,restrict:function(l){return!0}}};function i(r,l){var t=(r.ctrl?16:0)|(r.shift?4:0)|(r.alt?8:0);return r.button===4?(t|=64,t|=r.action):(t|=3&r.button,4&r.button&&(t|=64),8&r.button&&(t|=128),r.action===32?t|=32:r.action!==0||l||(t|=3)),t}var n=String.fromCharCode,a={DEFAULT:function(l){var t=[i(l,!1)+32,l.col+32,l.row+32];return t[0]>255||t[1]>255||t[2]>255?"":""+n(t[0])+n(t[1])+n(t[2])},SGR:function(l){var t=l.action===0&&l.button!==4?"m":"M";return"[<"+i(l,!0)+";"+l.col+";"+l.row+t}},u=function(){function r(l,t){this._bufferService=l,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new c.EventEmitter,this._lastEvent=null;for(var s=0,d=Object.keys(o);s=this._bufferService.cols||l.row<0||l.row>=this._bufferService.rows)return!1;if(l.button===4&&l.action===32)return!1;if(l.button===3&&l.action!==32)return!1;if(l.button!==4&&(l.action===2||l.action===3))return!1;if(l.col++,l.row++,l.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,l))return!1;if(!this._protocols[this._activeProtocol].restrict(l))return!1;var t=this._encodings[this._activeEncoding](l);return t&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=l,!0},r.prototype.explainEvents=function(l){return{down:!!(1&l),up:!!(2&l),drag:!!(4&l),move:!!(8&l),wheel:!!(16&l)}},r.prototype._compareEvents=function(l,t){return l.col===t.col&&l.row===t.row&&l.button===t.button&&l.action===t.action&&l.ctrl===t.ctrl&&l.alt===t.alt&&l.shift===t.shift},r=p([v(0,h.IBufferService),v(1,h.ICoreService)],r)}();f.CoreMouseService=u},function(g,f,y){"use strict";var p=this&&this.__decorate||function(o,i,n,a){var u,r=arguments.length,l=r<3?i:a===null?a=Object.getOwnPropertyDescriptor(i,n):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(o,i,n,a);else for(var t=o.length-1;t>=0;t--)(u=o[t])&&(l=(r<3?u(l):r>3?u(i,n,l):u(i,n))||l);return r>3&&l&&Object.defineProperty(i,n,l),l},v=this&&this.__param||function(o,i){return function(n,a){i(n,a,o)}};Object.defineProperty(f,"__esModule",{value:!0}),f.DirtyRowService=void 0;var h=y(1),c=function(){function o(i){this._bufferService=i,this.clearRange()}return Object.defineProperty(o.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),o.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},o.prototype.markDirty=function(i){ithis._end&&(this._end=i)},o.prototype.markRangeDirty=function(i,n){if(i>n){var a=i;i=n,n=a}ithis._end&&(this._end=n)},o.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},o=p([v(0,h.IBufferService)],o)}();f.DirtyRowService=c},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.UnicodeService=void 0;var p=y(0),v=y(79),h=function(){function c(){this._providers=Object.create(null),this._active="",this._onChange=new p.EventEmitter;var o=new v.UnicodeV6;this.register(o),this._active=o.version,this._activeProvider=o}return Object.defineProperty(c.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"activeVersion",{get:function(){return this._active},set:function(i){if(!this._providers[i])throw new Error('unknown Unicode version "'+i+'"');this._active=i,this._activeProvider=this._providers[i],this._onChange.fire(i)},enumerable:!1,configurable:!0}),c.prototype.register=function(o){this._providers[o.version]=o},c.prototype.wcwidth=function(o){return this._activeProvider.wcwidth(o)},c.prototype.getStringCellWidth=function(o){for(var i=0,n=o.length,a=0;a=n)return i+this.wcwidth(u);var r=o.charCodeAt(a);56320<=r&&r<=57343?u=1024*(u-55296)+r-56320+65536:i+=this.wcwidth(r)}i+=this.wcwidth(u)}return i},c}();f.UnicodeService=h},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.UnicodeV6=void 0;var p,v=y(15),h=[[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]],c=[[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]],o=function(){function i(){if(this.version="6",!p){p=new Uint8Array(65536),v.fill(p,1),p[0]=0,v.fill(p,0,1,32),v.fill(p,0,127,160),v.fill(p,2,4352,4448),p[9001]=2,p[9002]=2,v.fill(p,2,11904,42192),p[12351]=1,v.fill(p,2,44032,55204),v.fill(p,2,63744,64256),v.fill(p,2,65040,65050),v.fill(p,2,65072,65136),v.fill(p,2,65280,65377),v.fill(p,2,65504,65511);for(var n=0;nu[t][1])return!1;for(;t>=l;)if(a>u[r=l+t>>1][1])l=r+1;else{if(!(a=131072&&n<=196605||n>=196608&&n<=262141?2:1},i}();f.UnicodeV6=o},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CharsetService=void 0;var p=function(){function v(){this.glevel=0,this._charsets=[]}return v.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},v.prototype.setgLevel=function(h){this.glevel=h,this.charset=this._charsets[h]},v.prototype.setgCharset=function(h,c){this._charsets[h]=c,this.glevel===h&&(this.charset=c)},v}();f.CharsetService=p},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.updateWindowsModeWrappedState=void 0;var p=y(3);f.updateWindowsModeWrappedState=function(v){var h=v.buffer.lines.get(v.buffer.ybase+v.buffer.y-1),c=h==null?void 0:h.get(v.cols-1),o=v.buffer.lines.get(v.buffer.ybase+v.buffer.y);o&&c&&(o.isWrapped=c[p.CHAR_DATA_CODE_INDEX]!==p.NULL_CELL_CODE&&c[p.CHAR_DATA_CODE_INDEX]!==p.WHITESPACE_CELL_CODE)}},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.WriteBuffer=void 0;var p=function(){function v(h){this._action=h,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return v.prototype.writeSync=function(h){if(this._writeBuffer.length){for(var c=this._bufferOffset;c5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return o._innerWrite()})),this._pendingData+=h.length,this._writeBuffer.push(h),this._callbacks.push(c)},v.prototype._innerWrite=function(){for(var h=this,c=Date.now();this._writeBuffer.length>this._bufferOffset;){var o=this._writeBuffer[this._bufferOffset],i=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(o),this._pendingData-=o.length,i&&i(),Date.now()-c>=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 h._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},v}();f.WriteBuffer=p},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.AddonManager=void 0;var p=function(){function v(){this._addons=[]}return v.prototype.dispose=function(){for(var h=this._addons.length-1;h>=0;h--)this._addons[h].instance.dispose()},v.prototype.loadAddon=function(h,c){var o=this,i={instance:c,dispose:c.dispose,isDisposed:!1};this._addons.push(i),c.dispose=function(){return o._wrappedAddonDispose(i)},c.activate(h)},v.prototype._wrappedAddonDispose=function(h){if(!h.isDisposed){for(var c=-1,o=0;oa;)r+=l*360;return[u,r]},coordToPoint:function(v){var h=v[0],c=v[1]/180*Math.PI,o=Math.cos(c)*h+this.cx,i=-Math.sin(c)*h+this.cy;return[o,i]},getArea:function(){var v=this.getAngleAxis(),h=this.getRadiusAxis(),c=h.getExtent().slice();c[0]>c[1]&&c.reverse();var o=v.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:c[0],r:c[1],startAngle:-o[0]*i,endAngle:-o[1]*i,clockwise:v.inverse,contain:function(n,a){var u=n-this.cx,r=a-this.cy,l=u*u+r*r,t=this.r,s=this.r0;return l<=t*t&&l>=s*s}}}};var p=y;D.exports=p},"/WM3":function(D,I,e){var g=e("QuXc"),f=e("bYtY"),y=f.isFunction,p={createOnAllSeries:!0,performRawSeries:!0,reset:function(v,h){var c=v.getData(),o=(v.visualColorAccessPath||"itemStyle.color").split("."),i=v.get(o),n=y(i)&&!(i instanceof g)?i:null;(!i||n)&&(i=v.getColorFromPalette(v.name,null,h.getSeriesCount())),c.setVisual("color",i);var a=(v.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),u=v.get(a);if(c.setVisual("borderColor",u),!h.isSeriesFiltered(v)){n&&c.each(function(l){c.setItemVisual(l,"color",n(v.getDataParams(l)))});var r=function(l,t){var s=l.getItemModel(t),d=s.get(o,!0),m=s.get(a,!0);d!=null&&l.setItemVisual(t,"color",d),m!=null&&l.setItemVisual(t,"borderColor",m)};return{dataEach:c.hasItemOption?r:null}}}};D.exports=p},"/d5a":function(D,I){var e={average:function(y){for(var p=0,v=0,h=0;hp&&(p=y[v]);return isFinite(p)?p:NaN},min:function(y){for(var p=Infinity,v=0;v1){var t;typeof o=="string"?t=e[o]:typeof o=="function"&&(t=o),t&&p.setData(c.downSample(c.mapDimension(a.dim),1/l,t,g))}}}}}D.exports=f},"/ezw":function(D,I,e){"use strict";var g=e("lSNA"),f=e.n(g),y=e("pVnL"),p=e.n(y),v=e("cDf5"),h=e.n(v),c=e("q1tI"),o=e("TSYQ"),i=e.n(o),n=function(U){var H=U.prefixCls,W=U.className,V=U.width,z=U.style;return c.createElement("h3",{className:i()(H,W),style:p()({width:V},z)})},a=n,u=e("RIqP"),r=e.n(u),l=function(U){var H=function(G){var ve=U.width,Se=U.rows,ge=Se===void 0?2:Se;return Array.isArray(ve)?ve[G]:ge-1===G?ve:void 0},W=U.prefixCls,V=U.className,z=U.style,X=U.rows,q=r()(Array(X)).map(function(fe,G){return c.createElement("li",{key:G,style:{width:H(G)}})});return c.createElement("ul",{className:i()(W,V),style:z},q)},t=l,s=e("H84U"),d=function(U){var H,W,V=U.prefixCls,z=U.className,X=U.style,q=U.size,fe=U.shape,G=i()((H={},f()(H,"".concat(V,"-lg"),q==="large"),f()(H,"".concat(V,"-sm"),q==="small"),H)),ve=i()((W={},f()(W,"".concat(V,"-circle"),fe==="circle"),f()(W,"".concat(V,"-square"),fe==="square"),f()(W,"".concat(V,"-round"),fe==="round"),W)),Se=typeof q=="number"?{width:q,height:q,lineHeight:"".concat(q,"px")}:{};return c.createElement("span",{className:i()(V,z,G,ve),style:p()(p()({},Se),X)})},m=d,w=e("BGR+"),b=function(U){var H=function(V){var z=V.getPrefixCls,X=U.prefixCls,q=U.className,fe=U.active,G=z("skeleton",X),ve=Object(w.default)(U,["prefixCls"]),Se=i()(G,q,"".concat(G,"-element"),f()({},"".concat(G,"-active"),fe));return c.createElement("div",{className:Se},c.createElement(m,p()({prefixCls:"".concat(G,"-avatar")},ve)))};return c.createElement(s.a,null,H)};b.defaultProps={size:"default",shape:"circle"};var E=b,A=function(U){var H=function(V){var z=V.getPrefixCls,X=U.prefixCls,q=U.className,fe=U.active,G=z("skeleton",X),ve=Object(w.default)(U,["prefixCls"]),Se=i()(G,q,"".concat(G,"-element"),f()({},"".concat(G,"-active"),fe));return c.createElement("div",{className:Se},c.createElement(m,p()({prefixCls:"".concat(G,"-button")},ve)))};return c.createElement(s.a,null,H)};A.defaultProps={size:"default"};var S=A,T=function(U){var H=function(V){var z=V.getPrefixCls,X=U.prefixCls,q=U.className,fe=U.active,G=z("skeleton",X),ve=Object(w.default)(U,["prefixCls"]),Se=i()(G,q,"".concat(G,"-element"),f()({},"".concat(G,"-active"),fe));return c.createElement("div",{className:Se},c.createElement(m,p()({prefixCls:"".concat(G,"-input")},ve)))};return c.createElement(s.a,null,H)};T.defaultProps={size:"default"};var O=T,x="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",C=function(U){var H=function(V){var z=V.getPrefixCls,X=U.prefixCls,q=U.className,fe=U.style,G=z("skeleton",X),ve=i()(G,q,"".concat(G,"-element"));return c.createElement("div",{className:ve},c.createElement("div",{className:i()("".concat(G,"-image"),q),style:fe},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(G,"-image-svg")},c.createElement("path",{d:x,className:"".concat(G,"-image-path")}))))};return c.createElement(s.a,null,H)},_=C;function N(B){return B&&h()(B)==="object"?B:{}}function F(B,U){return B&&!U?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function k(B,U){return!B&&U?{width:"38%"}:B&&U?{width:"50%"}:{}}function P(B,U){var H={};return(!B||!U)&&(H.width="61%"),!B&&U?H.rows=3:H.rows=2,H}var j=function(U){var H=function(V){var z=V.getPrefixCls,X=V.direction,q=U.prefixCls,fe=U.loading,G=U.className,ve=U.children,Se=U.avatar,ge=U.title,Pe=U.paragraph,Ge=U.active,pt=U.round,Te=z("skeleton",q);if(fe||!("loading"in U)){var xe,lt=!!Se,Ie=!!ge,de=!!Pe,ee;if(lt){var se=p()(p()({prefixCls:"".concat(Te,"-avatar")},F(Ie,de)),N(Se));ee=c.createElement("div",{className:"".concat(Te,"-header")},c.createElement(m,se))}var ke;if(Ie||de){var Ce;if(Ie){var ze=p()(p()({prefixCls:"".concat(Te,"-title")},k(lt,de)),N(ge));Ce=c.createElement(a,ze)}var _e;if(de){var ae=p()(p()({prefixCls:"".concat(Te,"-paragraph")},P(lt,Ie)),N(Pe));_e=c.createElement(t,ae)}ke=c.createElement("div",{className:"".concat(Te,"-content")},Ce,_e)}var me=i()(Te,G,(xe={},f()(xe,"".concat(Te,"-with-avatar"),lt),f()(xe,"".concat(Te,"-active"),Ge),f()(xe,"".concat(Te,"-rtl"),X==="rtl"),f()(xe,"".concat(Te,"-round"),pt),xe));return c.createElement("div",{className:me},ee,ke)}return ve};return c.createElement(s.a,null,H)};j.defaultProps={avatar:!1,title:!0,paragraph:!0},j.Button=S,j.Avatar=E,j.Input=O,j.Image=_;var K=j,R=I.a=K},"/iHx":function(D,I,e){var g=e("6GrX"),f=e("IwbS"),y=["textStyle","color"],p={getTextColor:function(v){var h=this.ecModel;return this.getShallow("color")||(!v&&h?h.get(y):null)},getFont:function(){return f.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(v){return g.getBoundingRect(v,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};D.exports=p},"/kpp":function(D,I,e){"use strict";var g=e("lSNA"),f=e.n(g),y=e("pVnL"),p=e.n(y),v=e("cDf5"),h=e.n(v),c=e("q1tI"),o=e.n(c),i=e("TSYQ"),n=e.n(i),a=e("o/2+"),u=e("H84U"),r=function(s,d){var m={};for(var w in s)Object.prototype.hasOwnProperty.call(s,w)&&d.indexOf(w)<0&&(m[w]=s[w]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,w=Object.getOwnPropertySymbols(s);b0?{paddingLeft:W[0]/2,paddingRight:W[0]/2}:{}),W[1]>0?{paddingTop:W[1]/2,paddingBottom:W[1]/2}:{}),V)),P&&(V.flex=l(P)),c.createElement("div",p()({},K,{style:V,className:U,ref:d}),k)})};return c.createElement(u.a,null,m)});t.displayName="Col",I.a=t},"/ry/":function(D,I,e){var g=e("bYtY"),f=e("T4UG"),y=e("5GhG"),p=y.seriesModelMixin,v=f.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});g.mixin(v,p,!0);var h=v;D.exports=h},"/stD":function(D,I,e){var g=e("bYtY"),f=e("IUWy"),y=e("Kagy"),p=y.toolbox.brush;function v(o,i,n){this.model=o,this.ecModel=i,this.api=n,this._brushType,this._brushMode}v.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:g.clone(p.title)};var h=v.prototype;h.render=h.updateView=function(o,i,n){var a,u,r;i.eachComponent({mainType:"brush"},function(l){a=l.brushType,u=l.brushOption.brushMode||"single",r|=l.areas.length}),this._brushType=a,this._brushMode=u,g.each(o.get("type",!0),function(l){o.setIconStatus(l,(l==="keep"?u==="multiple":l==="clear"?r:l===a)?"emphasis":"normal")})},h.getIcons=function(){var o=this.model,i=o.get("icon",!0),n={};return g.each(o.get("type",!0),function(a){i[a]&&(n[a]=i[a])}),n},h.onclick=function(o,i,n){var a=this._brushType,u=this._brushMode;n==="clear"?(i.dispatchAction({type:"axisAreaSelect",intervals:[]}),i.dispatchAction({type:"brush",command:"clear",areas:[]})):i.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?a:a===n?!1:n,brushMode:n==="keep"?u==="multiple"?"single":"multiple":u}})},f.register("brush",v);var c=v;D.exports=c},"/wGt":function(D,I,e){"use strict";var g=e("lSNA"),f=e.n(g),y=e("pVnL"),p=e.n(y),v=e("lwsE"),h=e.n(v),c=e("W8MJ"),o=e.n(c),i=e("PJYZ"),n=e.n(i),a=e("7W2i"),u=e.n(a),r=e("LQ03"),l=e.n(r),t=e("q1tI"),s=e("Ff2n"),d=e("1OyB"),m=e("vuIU"),w=e("Ji7U"),b=e("md7G"),E=e("foSv"),A=e("1W/9"),S=e("rePB"),T=e("JX7q"),O=e("TSYQ"),x=e.n(O),C=e("qx4F"),_=e("4IlW");function N(Ce){return Array.isArray(Ce)?Ce:[Ce]}var F={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},k=Object.keys(F).filter(function(Ce){if(typeof document=="undefined")return!1;var ze=document.getElementsByTagName("html")[0];return Ce in(ze?ze.style:{})})[0],P=F[k];function j(Ce,ze,_e,ae){Ce.addEventListener?Ce.addEventListener(ze,_e,ae):Ce.attachEvent&&Ce.attachEvent("on".concat(ze),_e)}function K(Ce,ze,_e,ae){Ce.removeEventListener?Ce.removeEventListener(ze,_e,ae):Ce.attachEvent&&Ce.detachEvent("on".concat(ze),_e)}function R(Ce,ze){var _e=typeof Ce=="function"?Ce(ze):Ce;return Array.isArray(_e)?_e.length===2?_e:[_e[0],_e[1]]:[_e]}var B=function(ze){return!isNaN(parseFloat(ze))&&isFinite(ze)},U=!(typeof window!="undefined"&&window.document&&window.document.createElement),H=function Ce(ze,_e,ae,me){if(!_e||_e===document||_e instanceof Document)return!1;if(_e===ze.parentNode)return!0;var Oe=Math.max(Math.abs(ae),Math.abs(me))===Math.abs(me),Ze=Math.max(Math.abs(ae),Math.abs(me))===Math.abs(ae),vt=_e.scrollHeight-_e.clientHeight,Ct=_e.scrollWidth-_e.clientWidth,Be=document.defaultView.getComputedStyle(_e),Rt=Be.overflowY==="auto"||Be.overflowY==="scroll",He=Be.overflowX==="auto"||Be.overflowX==="scroll",wt=vt&&Rt,Ye=Ct&&He;return Oe&&(!wt||wt&&(_e.scrollTop>=vt&&me<0||_e.scrollTop<=0&&me>0))||Ze&&(!Ye||Ye&&(_e.scrollLeft>=Ct&&ae<0||_e.scrollLeft<=0&&ae>0))?Ce(ze,_e.parentNode,ae,me):!1};function W(Ce){var ze=V();return function(){var ae=Object(E.a)(Ce),me;if(ze){var Oe=Object(E.a)(this).constructor;me=Reflect.construct(ae,arguments,Oe)}else me=ae.apply(this,arguments);return Object(b.a)(this,me)}}function V(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(Ce){return!1}}var z={},X=function(Ce){Object(w.a)(_e,Ce);var ze=W(_e);function _e(ae){var me;return Object(d.a)(this,_e),me=ze.call(this,ae),me.domFocus=function(){me.dom&&me.dom.focus()},me.removeStartHandler=function(Oe){if(Oe.touches.length>1)return;me.startPos={x:Oe.touches[0].clientX,y:Oe.touches[0].clientY}},me.removeMoveHandler=function(Oe){if(Oe.changedTouches.length>1)return;var Ze=Oe.currentTarget,vt=Oe.changedTouches[0].clientX-me.startPos.x,Ct=Oe.changedTouches[0].clientY-me.startPos.y;(Ze===me.maskDom||Ze===me.handlerDom||Ze===me.contentDom&&H(Ze,Oe.target,vt,Ct))&&Oe.cancelable&&Oe.preventDefault()},me.transitionEnd=function(Oe){var Ze=Oe.target;K(Ze,P,me.transitionEnd),Ze.style.transition=""},me.onKeyDown=function(Oe){if(Oe.keyCode===_.a.ESC){var Ze=me.props.onClose;Oe.stopPropagation(),Ze&&Ze(Oe)}},me.onWrapperTransitionEnd=function(Oe){var Ze=me.props,vt=Ze.open,Ct=Ze.afterVisibleChange;Oe.target===me.contentWrapper&&Oe.propertyName.match(/transform$/)&&(me.dom.style.transition="",!vt&&me.getCurrentDrawerSome()&&(document.body.style.overflowX="",me.maskDom&&(me.maskDom.style.left="",me.maskDom.style.width="")),Ct&&Ct(!!vt))},me.openLevelTransition=function(){var Oe=me.props,Ze=Oe.open,vt=Oe.width,Ct=Oe.height,Be=me.getHorizontalBoolAndPlacementName(),Rt=Be.isHorizontal,He=Be.placementName,wt=me.contentDom?me.contentDom.getBoundingClientRect()[Rt?"width":"height"]:0,Ye=(Rt?vt:Ct)||wt;me.setLevelAndScrolling(Ze,He,Ye)},me.setLevelTransform=function(Oe,Ze,vt,Ct){var Be=me.props,Rt=Be.placement,He=Be.levelMove,wt=Be.duration,Ye=Be.ease,et=Be.showMask;me.levelDom.forEach(function(rt){rt.style.transition="transform ".concat(wt," ").concat(Ye),j(rt,P,me.transitionEnd);var st=Oe?vt:0;if(He){var Ve=R(He,{target:rt,open:Oe});st=Oe?Ve[0]:Ve[1]||0}var ie=typeof st=="number"?"".concat(st,"px"):st,$=Rt==="left"||Rt==="top"?ie:"-".concat(ie);$=et&&Rt==="right"&&Ct?"calc(".concat($," + ").concat(Ct,"px)"):$,rt.style.transform=st?"".concat(Ze,"(").concat($,")"):""})},me.setLevelAndScrolling=function(Oe,Ze,vt){var Ct=me.props.onChange;if(!U){var Be=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(C.a)(!0):0;me.setLevelTransform(Oe,Ze,vt,Be),me.toggleScrollingToDrawerAndBody(Be)}Ct&&Ct(Oe)},me.toggleScrollingToDrawerAndBody=function(Oe){var Ze=me.props,vt=Ze.getOpenCount,Ct=Ze.getContainer,Be=Ze.showMask,Rt=Ze.open,He=Ct&&Ct(),wt=vt&&vt();if(He&&He.parentNode===document.body&&Be){var Ye=["touchstart"],et=[document.body,me.maskDom,me.handlerDom,me.contentDom];Rt&&document.body.style.overflow!=="hidden"?(Oe&&me.addScrollingEffect(Oe),wt===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",et.forEach(function(rt,st){if(!rt)return;j(rt,Ye[st]||"touchmove",st?me.removeMoveHandler:me.removeStartHandler,me.passive)})):me.getCurrentDrawerSome()&&(wt||(document.body.style.overflow=""),document.body.style.touchAction="",Oe&&me.remScrollingEffect(Oe),et.forEach(function(rt,st){if(!rt)return;K(rt,Ye[st]||"touchmove",st?me.removeMoveHandler:me.removeStartHandler,me.passive)}))}},me.addScrollingEffect=function(Oe){var Ze=me.props,vt=Ze.placement,Ct=Ze.duration,Be=Ze.ease,Rt=Ze.getOpenCount,He=Ze.switchScrollingEffect,wt=Rt&&Rt();wt===1&&He();var Ye="width ".concat(Ct," ").concat(Be),et="transform ".concat(Ct," ").concat(Be);me.dom.style.transition="none";switch(vt){case"right":me.dom.style.transform="translateX(-".concat(Oe,"px)");break;case"top":case"bottom":me.dom.style.width="calc(100% - ".concat(Oe,"px)"),me.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(me.timeout),me.timeout=setTimeout(function(){me.dom&&(me.dom.style.transition="".concat(et,",").concat(Ye),me.dom.style.width="",me.dom.style.transform="")})},me.remScrollingEffect=function(Oe){var Ze=me.props,vt=Ze.placement,Ct=Ze.duration,Be=Ze.ease,Rt=Ze.getOpenCount,He=Ze.switchScrollingEffect,wt=Rt&&Rt();wt||He(!0),k&&(document.body.style.overflowX="hidden"),me.dom.style.transition="none";var Ye,et="width ".concat(Ct," ").concat(Be),rt="transform ".concat(Ct," ").concat(Be);switch(vt){case"left":{me.dom.style.width="100%",et="width 0s ".concat(Be," ").concat(Ct);break}case"right":{me.dom.style.transform="translateX(".concat(Oe,"px)"),me.dom.style.width="100%",et="width 0s ".concat(Be," ").concat(Ct),me.maskDom&&(me.maskDom.style.left="-".concat(Oe,"px"),me.maskDom.style.width="calc(100% + ".concat(Oe,"px)"));break}case"top":case"bottom":{me.dom.style.width="calc(100% + ".concat(Oe,"px)"),me.dom.style.height="100%",me.dom.style.transform="translateZ(0)",Ye="height 0s ".concat(Be," ").concat(Ct);break}default:break}clearTimeout(me.timeout),me.timeout=setTimeout(function(){me.dom&&(me.dom.style.transition="".concat(rt,",").concat(Ye?"".concat(Ye,","):"").concat(et),me.dom.style.transform="",me.dom.style.width="",me.dom.style.height="")})},me.getCurrentDrawerSome=function(){return!Object.keys(z).some(function(Oe){return z[Oe]})},me.getLevelDom=function(Oe){var Ze=Oe.level,vt=Oe.getContainer;if(U)return;var Ct=vt&&vt(),Be=Ct?Ct.parentNode:null;if(me.levelDom=[],Ze==="all"){var Rt=Be?Array.prototype.slice.call(Be.children):[];Rt.forEach(function(He){He.nodeName!=="SCRIPT"&&He.nodeName!=="STYLE"&&He.nodeName!=="LINK"&&He!==Ct&&me.levelDom.push(He)})}else Ze&&N(Ze).forEach(function(He){document.querySelectorAll(He).forEach(function(wt){me.levelDom.push(wt)})})},me.getHorizontalBoolAndPlacementName=function(){var Oe=me.props.placement,Ze=Oe==="left"||Oe==="right",vt="translate".concat(Ze?"X":"Y");return{isHorizontal:Ze,placementName:vt}},me.state={_self:Object(T.a)(me)},me}return Object(m.a)(_e,[{key:"componentDidMount",value:function(){var me=this;if(!U){var Oe=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Oe=!0,null}}))}catch(Rt){}this.passive=Oe?{passive:!1}:!1}var Ze=this.props,vt=Ze.open,Ct=Ze.getContainer,Be=Ct&&Ct();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),vt&&(Be&&Be.parentNode===document.body&&(z[this.drawerId]=vt),this.openLevelTransition(),this.forceUpdate(function(){me.domFocus()}))}},{key:"componentDidUpdate",value:function(me){var Oe=this.props,Ze=Oe.open,vt=Oe.getContainer,Ct=vt&&vt();Ze!==me.open&&(Ze&&this.domFocus(),Ct&&Ct.parentNode===document.body&&(z[this.drawerId]=!!Ze),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var me=this.props,Oe=me.getOpenCount,Ze=me.open,vt=me.switchScrollingEffect,Ct=typeof Oe=="function"&&Oe();delete z[this.drawerId],Ze&&(this.setLevelTransform(!1),document.body.style.touchAction=""),Ct||(document.body.style.overflow="",vt(!0))}},{key:"render",value:function(){var me,Oe=this,Ze=this.props,vt=Ze.className,Ct=Ze.children,Be=Ze.style,Rt=Ze.width,He=Ze.height,wt=Ze.defaultOpen,Ye=Ze.open,et=Ze.prefixCls,rt=Ze.placement,st=Ze.level,Ve=Ze.levelMove,ie=Ze.ease,$=Ze.duration,it=Ze.getContainer,Qe=Ze.handler,ye=Ze.onChange,Zt=Ze.afterVisibleChange,dt=Ze.showMask,ct=Ze.maskClosable,yt=Ze.maskStyle,It=Ze.onClose,or=Ze.onHandleClick,Bt=Ze.keyboard,Ae=Ze.getOpenCount,pe=Ze.switchScrollingEffect,he=Object(s.a)(Ze,["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","getOpenCount","switchScrollingEffect"]),le=this.dom?Ye:!1,Ne=x()(et,(me={},Object(S.a)(me,"".concat(et,"-").concat(rt),!0),Object(S.a)(me,"".concat(et,"-open"),le),Object(S.a)(me,vt||"",!!vt),Object(S.a)(me,"no-mask",!dt),me)),je=this.getHorizontalBoolAndPlacementName(),Ke=je.placementName,Xe=rt==="left"||rt==="top"?"-100%":"100%",Fe=le?"":"".concat(Ke,"(").concat(Xe,")"),nt=Qe&&t.cloneElement(Qe,{onClick:function(_t){Qe.props.onClick&&Qe.props.onClick(),or&&or(_t)},ref:function(_t){Oe.handlerDom=_t}});return t.createElement("div",Object.assign({},he,{tabIndex:-1,className:Ne,style:Be,ref:function(_t){Oe.dom=_t},onKeyDown:le&&Bt?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),dt&&t.createElement("div",{className:"".concat(et,"-mask"),onClick:ct?It:void 0,style:yt,ref:function(_t){Oe.maskDom=_t}}),t.createElement("div",{className:"".concat(et,"-content-wrapper"),style:{transform:Fe,msTransform:Fe,width:B(Rt)?"".concat(Rt,"px"):Rt,height:B(He)?"".concat(He,"px"):He},ref:function(_t){Oe.contentWrapper=_t}},t.createElement("div",{className:"".concat(et,"-content"),ref:function(_t){Oe.contentDom=_t},onTouchStart:le&&dt?this.removeStartHandler:void 0,onTouchMove:le&&dt?this.removeMoveHandler:void 0},Ct),nt))}}],[{key:"getDerivedStateFromProps",value:function(me,Oe){var Ze=Oe.prevProps,vt=Oe._self,Ct={prevProps:me};if(Ze!==void 0){var Be=me.placement,Rt=me.level;Be!==Ze.placement&&(vt.contentDom=null),Rt!==Ze.level&&vt.getLevelDom(me)}return Ct}}]),_e}(t.Component);X.defaultProps={switchScrollingEffect:function(){}};var q=X;function fe(Ce){var ze=G();return function(){var ae=Object(E.a)(Ce),me;if(ze){var Oe=Object(E.a)(this).constructor;me=Reflect.construct(ae,arguments,Oe)}else me=ae.apply(this,arguments);return Object(b.a)(this,me)}}function G(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(Ce){return!1}}var ve=function(Ce){Object(w.a)(_e,Ce);var ze=fe(_e);function _e(ae){var me;Object(d.a)(this,_e),me=ze.call(this,ae),me.onHandleClick=function(Ze){var vt=me.props,Ct=vt.onHandleClick,Be=vt.open;if(Ct&&Ct(Ze),typeof Be=="undefined"){var Rt=me.state.open;me.setState({open:!Rt})}},me.onClose=function(Ze){var vt=me.props,Ct=vt.onClose,Be=vt.open;Ct&&Ct(Ze),typeof Be=="undefined"&&me.setState({open:!1})};var Oe=typeof ae.open!="undefined"?ae.open:!!ae.defaultOpen;return me.state={open:Oe},"onMaskClick"in ae&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),me}return Object(m.a)(_e,[{key:"render",value:function(){var me=this,Oe=this.props,Ze=Oe.defaultOpen,vt=Oe.getContainer,Ct=Oe.wrapperClassName,Be=Oe.forceRender,Rt=Oe.handler,He=Object(s.a)(Oe,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),wt=this.state.open;if(!vt)return t.createElement("div",{className:Ct,ref:function(rt){me.dom=rt}},t.createElement(q,Object.assign({},He,{open:wt,handler:Rt,getContainer:function(){return me.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var Ye=!!Rt||Be;return t.createElement(A.a,{visible:wt,forceRender:Ye,getContainer:vt,wrapperClassName:Ct},function(et){var rt=et.visible,st=et.afterClose,Ve=Object(s.a)(et,["visible","afterClose"]);return t.createElement(q,Object.assign({},He,Ve,{open:rt!==void 0?rt:wt,afterVisibleChange:st!==void 0?st:He.afterVisibleChange,handler:Rt,onClose:me.onClose,onHandleClick:me.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(me,Oe){var Ze=Oe.prevProps,vt={prevProps:me};return typeof Ze!="undefined"&&me.open!==Ze.open&&(vt.open=me.open),vt}}]),_e}(t.Component);ve.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:t.createElement("div",{className:"drawer-handle"},t.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var Se=ve,ge=Se,Pe=e("V/uB"),Ge=e.n(Pe),pt=e("BGR+"),Te=e("H84U"),xe=e("CWQg"),lt=function(Ce,ze){var _e={};for(var ae in Ce)Object.prototype.hasOwnProperty.call(Ce,ae)&&ze.indexOf(ae)<0&&(_e[ae]=Ce[ae]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,ae=Object.getOwnPropertySymbols(Ce);me=0&&f.each(E,function(A){t.setIconStatus(A,"normal")})}),t.setIconStatus(l,"emphasis"),u.eachComponent({mainType:"series",query:s==null?null:{seriesIndex:s}},m);var w;if(l==="stack"){var b=d.series&&d.series[0]&&d.series[0].stack===h;w=b?f.merge({stack:v.title.tiled},v.title):f.clone(v.title)}r.dispatchAction({type:"changeMagicType",currentType:l,newOption:d,newTitle:w,featureName:"magicType"})},g.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(u,r){r.mergeOption(u.newOption)}),p.register("magicType",c);var a=c;D.exports=a},"06Qe":function(D,I,e){var g=e("ItGF"),f="urn:schemas-microsoft-com:vml",y=typeof window=="undefined"?null:window,p=!1,v=y&&y.document;function h(i){return c(i)}var c;if(v&&!g.canvasSupported)try{!v.namespaces.zrvml&&v.namespaces.add("zrvml",f),c=function(n){return v.createElement("')}}catch(i){c=function(a){return v.createElement("<"+a+' xmlns="'+f+'" class="zrvml">')}}function o(){if(p||!v)return;p=!0;var i=v.styleSheets;i.length<31?v.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):i[0].addRule(".zrvml","behavior:url(#default#VML)")}I.doc=v,I.createNode=h,I.initVML=o},"09Wf":function(D,I,e){"use strict";e.d(I,"b",function(){return f}),e.d(I,"a",function(){return y});var g=e("CWQg"),f=Object(g.a)("success","processing","error","default","warning"),y=Object(g.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},"0Bwj":function(D,I,e){var g=e("T4UG"),f=e("I3/A"),y=e("7aKB"),p=y.encodeHTML,v=e("Qxkt"),h=e("Tghj"),c=h.__DEV__,o=g.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(n,a){for(var u=n.edges||n.links,r=n.data||n.nodes,l=n.levels,t=this.levelModels={},s=0;s=0&&(t[l[s].depth]=new v(l[s],this,a));if(r&&u){var d=f(r,u,this,!0,m);return d.data}function m(w,b){w.wrapMethod("getItemModel",function(E,A){return E.customizeGetParent(function(S){var T=this.parentModel,O=T.getData().getItemLayout(A).depth,x=T.levelModels[O];return x||this.parentModel}),E}),b.wrapMethod("getItemModel",function(E,A){return E.customizeGetParent(function(S){var T=this.parentModel,O=T.getGraph().getEdgeByIndex(A),x=O.node1.getLayout().depth,C=T.levelModels[x];return C||this.parentModel}),E})}},setNodePosition:function(n,a){var u=this.option.data[n];u.localX=a[0],u.localY=a[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(n,a,u){if(u==="edge"){var r=this.getDataParams(n,u),l=r.data,t=l.source+" -- "+l.target;return r.value&&(t+=" : "+r.value),p(t)}else if(u==="node"){var s=this.getGraph().getNodeByIndex(n),d=s.getLayout().value,m=this.getDataParams(n,u).data.name;if(d)var t=m+" : "+d;return p(t)}return o.superCall(this,"formatTooltip",n,a)},optionUpdated:function(){var n=this.option;n.focusNodeAdjacency===!0&&(n.focusNodeAdjacency="allEdges")},getDataParams:function(n,a){var u=o.superCall(this,"getDataParams",n,a);if(u.value==null&&a==="node"){var r=this.getGraph().getNodeByIndex(n),l=r.getLayout().value;u.value=l}return u},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}}),i=o;D.exports=i},"0Cz8":function(D,I,e){var g=e("Xi7e"),f=e("ebwN"),y=e("e4Nc"),p=200;function v(h,c){var o=this.__data__;if(o instanceof g){var i=o.__data__;if(!f||i.length=u.start.time&&a.timel.end.time&&i.reverse(),i},_getRangeInfo:function(i){i=[this.getDateInfo(i[0]),this.getDateInfo(i[1])];var n;i[0].time>i[1].time&&(n=!0,i.reverse());var a=Math.floor(i[1].time/v)-Math.floor(i[0].time/v)+1,u=new Date(i[0].time),r=u.getDate(),l=i[1].date.getDate();u.setDate(r+a-1);var t=u.getDate();if(t!==l)for(var s=u.getTime()-i[1].time>0?1:-1;(t=u.getDate())!==l&&(u.getTime()-i[1].time)*s>0;)a-=s,u.setDate(t-s);var d=Math.floor((a+i[0].day+6)/7),m=n?-d+1:d-1;return n&&i.reverse(),{range:[i[0].formatedDate,i[1].formatedDate],start:i[0],end:i[1],allDay:a,weeks:d,nthWeek:m,fweek:i[0].day,lweek:i[1].day}},_getDateByWeeksAndDay:function(i,n,a){var u=this._getRangeInfo(a);if(i>u.weeks||i===0&&nu.lweek)return!1;var r=(i-1)*7-u.fweek+n,l=new Date(u.start.time);return l.setDate(u.start.d+r),this.getDateInfo(l)}},h.dimensions=h.prototype.dimensions,h.getDimensionsInfo=h.prototype.getDimensionsInfo,h.create=function(i,n){var a=[];return i.eachComponent("calendar",function(u){var r=new h(u,i,n);a.push(r),u.coordinateSystem=r}),i.eachSeries(function(u){u.get("coordinateSystem")==="calendar"&&(u.coordinateSystem=a[u.get("calendarIndex")||0])}),a};function c(i,n,a,u){var r=a.calendarModel,l=a.seriesModel,t=r?r.coordinateSystem:l?l.coordinateSystem:null;return t===this?t[i](u):null}p.register("calendar",h);var o=h;D.exports=o},"0JQy":function(D,I){var e="\\ud800-\\udfff",g="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",y="\\u20d0-\\u20ff",p=g+f+y,v="\\ufe0e\\ufe0f",h="["+e+"]",c="["+p+"]",o="\\ud83c[\\udffb-\\udfff]",i="(?:"+c+"|"+o+")",n="[^"+e+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",r="\\u200d",l=i+"?",t="["+v+"]?",s="(?:"+r+"(?:"+[n,a,u].join("|")+")"+t+l+")*",d=t+l+s,m="(?:"+[n+c+"?",c,a,u,h].join("|")+")",w=RegExp(o+"(?="+o+")|"+m+d,"g");function b(E){return E.match(w)||[]}D.exports=b},"0NbB":function(D,I,e){"use strict";var g=e("q1tI"),f={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},y=f,p=e("6VBw"),v=function(o,i){return g.createElement(p.a,Object.assign({},o,{ref:i,icon:y}))};v.displayName="CaretDownOutlined";var h=I.a=g.forwardRef(v)},"0V0F":function(D,I,e){var g=e("bYtY"),f=g.createHashMap,y=g.each;function p(h){var c=f();h.eachSeries(function(o){var i=o.get("stack");if(i){var n=c.get(i)||c.set(i,[]),a=o.getData(),u={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:o};if(!u.stackedDimension||!(u.isStackedByIndex||u.stackedByDimension))return;n.length&&a.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(u)}}),c.each(v)}function v(h){y(h,function(c,o){var i=[],n=[NaN,NaN],a=[c.stackResultDimension,c.stackedOverDimension],u=c.data,r=c.isStackedByIndex,l=u.map(a,function(t,s,d){var m=u.get(c.stackedDimension,d);if(isNaN(m))return n;var w,b;r?b=u.getRawIndex(d):w=u.get(c.stackedByDimension,d);for(var E=NaN,A=o-1;A>=0;A--){var S=h[A];if(r||(b=S.data.rawIndexOf(S.stackedByDimension,w)),b>=0){var T=S.data.getByRawIndex(S.stackResultDimension,b);if(m>=0&&T>0||m<=0&&T<0){m+=T,E=T;break}}}return i[0]=m,i[1]=E,i});u.hostModel.setData(l),c.data=l})}D.exports=p},"0XgM":function(D,I,e){},"0fbx":function(D,I,e){},"0o9m":function(D,I,e){var g=e("ProS");e("hNWo"),e("RlCK"),e("XpcN");var f=e("kDyi"),y=e("bLfw");g.registerProcessor(g.PRIORITY.PROCESSOR.SERIES_FILTER,f),y.registerSubTypeDefaulter("legend",function(){return"plain"})},"0qV/":function(D,I,e){var g=e("ProS");g.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),g.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},"0r65":function(D,I){var e=arguments[3],g=arguments[4],f=arguments[5],y=JSON.stringify;D.exports=function(p,v){for(var h,c=Object.keys(f),o=0,i=c.length;o=0;A--){var S;if(b[A]!==w&&!b[A].ignore&&(S=r(b[A],d,m))&&(!E.topTarget&&(E.topTarget=b[A]),S!==c)){E.target=b[A];break}}return E},processGesture:function(d,m){this._gestureMgr||(this._gestureMgr=new h);var w=this._gestureMgr;m==="start"&&w.clear();var b=w.recognize(d,this.findHover(d.zrX,d.zrY,null).target,this.proxy.dom);if(m==="end"&&w.clear(),b){var E=b.type;d.gestureEvent=E,this.dispatchToElement({target:b.target},E,b.event)}}},g.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(s){u.prototype[s]=function(d){var m=d.zrX,w=d.zrY,b=l(this,m,w),E,A;if((s!=="mouseup"||!b)&&(E=this.findHover(m,w),A=E.target),s==="mousedown")this._downEl=A,this._downPoint=[d.zrX,d.zrY],this._upEl=A;else if(s==="mouseup")this._upEl=A;else if(s==="click"){if(this._downEl!==this._upEl||!this._downPoint||f.dist(this._downPoint,[d.zrX,d.zrY])>4)return;this._downPoint=null}this.dispatchToElement(E,s,d)}});function r(s,d,m){if(s[s.rectHover?"rectContain":"contain"](d,m)){for(var w=s,b;w;){if(w.clipPath&&!w.clipPath.contain(d,m))return!1;w.silent&&(b=!0),w=w.parent}return b?c:!0}return!1}function l(s,d,m){var w=s.painter;return d<0||d>w.getWidth()||m<0||m>w.getHeight()}g.mixin(u,p),g.mixin(u,y);var t=u;D.exports=t},"0ycA":function(D,I){function e(){return[]}D.exports=e},"10cm":function(D,I,e){var g=e("ProS"),f=e("2B6p"),y=f.updateCenterAndZoom;e("0qV/");var p={type:"graphRoam",event:"graphRoam",update:"none"};g.registerAction(p,function(v,h){h.eachComponent({mainType:"series",query:v},function(c){var o=c.coordinateSystem,i=y(o,v);c.setCenter&&c.setCenter(i.center),c.setZoom&&c.setZoom(i.zoom)})})},"14J3":function(D,I,e){"use strict";var g=e("cIOH"),f=e.n(g),y=e("1GLa")},"15/o":function(D,I,e){},"19Vz":function(D,I,e){(function(g){g(e("VrN/"))})(function(g){g.defineOption("placeholder","",function(o,i,n){var a=n&&n!=g.Init;if(i&&!a)o.on("blur",v),o.on("change",h),o.on("swapDoc",h),g.on(o.getInputField(),"compositionupdate",o.state.placeholderCompose=function(){p(o)}),h(o);else if(!i&&a){o.off("blur",v),o.off("change",h),o.off("swapDoc",h),g.off(o.getInputField(),"compositionupdate",o.state.placeholderCompose),f(o);var u=o.getWrapperElement();u.className=u.className.replace(" CodeMirror-empty","")}i&&!o.hasFocus()&&v(o)});function f(o){o.state.placeholder&&(o.state.placeholder.parentNode.removeChild(o.state.placeholder),o.state.placeholder=null)}function y(o){f(o);var i=o.state.placeholder=document.createElement("pre");i.style.cssText="height: 0; overflow: visible",i.style.direction=o.getOption("direction"),i.className="CodeMirror-placeholder CodeMirror-line-like";var n=o.getOption("placeholder");typeof n=="string"&&(n=document.createTextNode(n)),i.appendChild(n),o.display.lineSpace.insertBefore(i,o.display.lineSpace.firstChild)}function p(o){setTimeout(function(){var i=!1,n=o.getInputField();n.nodeName=="TEXTAREA"?i=!n.value:o.lineCount()==1&&(i=!/[^\u200b]/.test(n.querySelector(".CodeMirror-line").textContent)),i?y(o):f(o)},20)}function v(o){c(o)&&y(o)}function h(o){var i=o.getWrapperElement(),n=c(o);i.className=i.className.replace(" CodeMirror-empty","")+(n?" CodeMirror-empty":""),n?y(o):f(o)}function c(o){return o.lineCount()===1&&o.getLine(0)===""}})},"1GLa":function(D,I,e){"use strict";var g=e("cIOH"),f=e.n(g),y=e("FIfw"),p=e.n(y)},"1Jh7":function(D,I,e){var g=e("y+Vt"),f=e("T6xi"),y=g.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(v,h){f.buildPath(v,h,!1)}});D.exports=y},"1LEl":function(D,I,e){var g=e("ProS"),f=e("F9bG"),y=g.extendComponentView({type:"axisPointer",render:function(v,h,c){var o=h.getComponent("tooltip"),i=v.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";f.register("axisPointer",c,function(n,a,u){i!=="none"&&(n==="leave"||i.indexOf(n)>=0)&&u({type:"updateAxisPointer",currTrigger:n,x:a&&a.offsetX,y:a&&a.offsetY})})},remove:function(v,h){f.unregister(h.getZr(),"axisPointer"),y.superApply(this._model,"remove",arguments)},dispose:function(v,h){f.unregister("axisPointer",h),y.superApply(this._model,"dispose",arguments)}}),p=y;D.exports=p},"1MYJ":function(D,I,e){var g=e("y+Vt"),f=g.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var p=this.__dirtyPath,v=this.shape.paths,h=0;h=A||F<0)break;if(a(P)){if(_){F+=S;continue}break}if(F===b)m[S>0?"moveTo":"lineTo"](P[0],P[1]);else if(x>0){var j=w[N],K=C==="y"?1:0,R=(P[K]-j[K])*x;c(i,j),i[K]=j[K]+R,c(n,P),n[K]=P[K]-R,m.bezierCurveTo(i[0],i[1],n[0],n[1],P[0],P[1])}else m.lineTo(P[0],P[1]);N=F,F+=S}return k}function l(m,w,b,E,A,S,T,O,x,C,_){for(var N=0,F=b,k=0;k=A||F<0)break;if(a(P)){if(_){F+=S;continue}break}if(F===b)m[S>0?"moveTo":"lineTo"](P[0],P[1]),c(i,P);else if(x>0){var j=F+S,K=w[j];if(_)for(;K&&a(w[j]);)j+=S,K=w[j];var R=.5,B=w[N],K=w[j];if(!K||a(K))c(n,P);else{a(K)&&!_&&(K=P),f.sub(o,K,B);var U,H;if(C==="x"||C==="y"){var W=C==="x"?0:1;U=Math.abs(P[W]-B[W]),H=Math.abs(P[W]-K[W])}else U=f.dist(P,B),H=f.dist(P,K);R=H/(H+U),h(n,P,o,-x*(1-R))}p(i,i,O),v(i,i,T),p(n,n,O),v(n,n,T),m.bezierCurveTo(i[0],i[1],n[0],n[1],P[0],P[1]),h(i,P,o,x*R)}else m.lineTo(P[0],P[1]);N=F,F+=S}return k}function t(m,w){var b=[Infinity,Infinity],E=[-Infinity,-Infinity];if(w)for(var A=0;AE[0]&&(E[0]=S[0]),S[1]>E[1]&&(E[1]=S[1])}return{min:w?b:E,max:w?E:b}}var s=g.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:y(g.prototype.brush),buildPath:function(m,w){var b=w.points,E=0,A=b.length,S=t(b,w.smoothConstraint);if(w.connectNulls){for(;A>0&&a(b[A-1]);A--);for(;E0&&a(b[S-1]);S--);for(;A=this._maxSize&&a>0){var r=o.head;o.remove(r),delete i[r.key],n=r.value,this._lastRemovedEntry=r}u?u.value=c:u=new f(c),u.key=h,o.insertEntry(u),i[h]=u}return n},p.get=function(h){var c=this._map[h],o=this._list;if(c!=null)return c!==o.tail&&(o.remove(c),o.insertEntry(c)),c.value},p.clear=function(){this._list.clear(),this._map={}};var v=y;D.exports=v},"1bdT":function(D,I,e){var g=e("3gBT"),f=e("H6uX"),y=e("DN4a"),p=e("vWvF"),v=e("bYtY"),h=function(i){y.call(this,i),f.call(this,i),p.call(this,i),this.id=i.id||g()};h.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(i,n){switch(this.draggable){case"horizontal":n=0;break;case"vertical":i=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=i,a[5]+=n,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(i,n){},attrKV:function(i,n){if(i==="position"||i==="scale"||i==="origin"){if(n){var a=this[i];a||(a=this[i]=[]),a[0]=n[0],a[1]=n[1]}}else this[i]=n},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(i,n){if(typeof i=="string")this.attrKV(i,n);else if(v.isObject(i))for(var a in i)i.hasOwnProperty(a)&&this.attrKV(a,i[a]);return this.dirty(!1),this},setClipPath:function(i){var n=this.__zr;n&&i.addSelfToZr(n),this.clipPath&&this.clipPath!==i&&this.removeClipPath(),this.clipPath=i,i.__zr=n,i.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var i=this.clipPath;i&&(i.__zr&&i.removeSelfFromZr(i.__zr),i.__zr=null,i.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(i){this.__zr=i;var n=this.animators;if(n)for(var a=0;a> RFB.constructor"),Oe._screen=document.createElement("div"),Oe._screen.style.display="flex",Oe._screen.style.width="100%",Oe._screen.style.height="100%",Oe._screen.style.overflow="auto",Oe._screen.style.background=V,Oe._canvas=document.createElement("canvas"),Oe._canvas.style.margin="auto",Oe._canvas.style.outline="none",Oe._canvas.style.flexShrink="0",Oe._canvas.width=0,Oe._canvas.height=0,Oe._canvas.tabIndex=-1,Oe._screen.appendChild(Oe._canvas),Oe._cursor=new r.default,Oe._cursorImage=ze.cursors.none,Oe._decoders[m.encodings.encodingRaw]=new w.default,Oe._decoders[m.encodings.encodingCopyRect]=new b.default,Oe._decoders[m.encodings.encodingRRE]=new E.default,Oe._decoders[m.encodings.encodingHextile]=new A.default,Oe._decoders[m.encodings.encodingTight]=new S.default,Oe._decoders[m.encodings.encodingTightPNG]=new T.default;try{Oe._display=new o.default(Oe._canvas)}catch(Ze){throw f.Error("Display exception: "+Ze),Ze}return Oe._display.onflush=Oe._onFlush.bind(B(Oe)),Oe._keyboard=new a.default(Oe._canvas),Oe._keyboard.onkeyevent=Oe._handleKeyEvent.bind(B(Oe)),Oe._gestures=new u.default,Oe._sock=new l.default,Oe._sock.on("message",function(){Oe._handleMessage()}),Oe._sock.on("open",function(){Oe._rfbConnectionState==="connecting"&&Oe._rfbInitState===""?(Oe._rfbInitState="ProtocolVersion",f.Debug("Starting VNC handshake")):Oe._fail("Unexpected server connection while "+Oe._rfbConnectionState)}),Oe._sock.on("close",function(Ze){f.Debug("WebSocket on-close event");var vt="";Ze.code&&(vt="(code: "+Ze.code,Ze.reason&&(vt+=", reason: "+Ze.reason),vt+=")");switch(Oe._rfbConnectionState){case"connecting":Oe._fail("Connection closed "+vt);break;case"connected":Oe._updateConnectionState("disconnecting"),Oe._updateConnectionState("disconnected");break;case"disconnecting":Oe._updateConnectionState("disconnected");break;case"disconnected":Oe._fail("Unexpected server disconnect when already disconnected "+vt);break;default:Oe._fail("Unexpected server disconnect before connecting "+vt);break}Oe._sock.off("close")}),Oe._sock.on("error",function(Ze){return f.Warn("WebSocket on-error event")}),setTimeout(Oe._updateConnectionState.bind(B(Oe),"connecting")),f.Debug("<< RFB.constructor"),Oe.dragViewport=!1,Oe.focusOnClick=!0,Oe._viewOnly=!1,Oe._clipViewport=!1,Oe._scaleViewport=!1,Oe._resizeSession=!1,Oe._showDotCursor=!1,me.showDotCursor!==void 0&&(f.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),Oe._showDotCursor=me.showDotCursor),Oe._qualityLevel=6,Oe._compressionLevel=2,Oe}return k(ze,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(ae){this._rfbCredentials=ae,setTimeout(this._initMsg.bind(this),0)}},{key:"sendCtrlAltDel",value:function(){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;f.Info("Sending Ctrl-Alt-Del"),this.sendKey(s.default.XK_Control_L,"ControlLeft",!0),this.sendKey(s.default.XK_Alt_L,"AltLeft",!0),this.sendKey(s.default.XK_Delete,"Delete",!0),this.sendKey(s.default.XK_Delete,"Delete",!1),this.sendKey(s.default.XK_Alt_L,"AltLeft",!1),this.sendKey(s.default.XK_Control_L,"ControlLeft",!1)}},{key:"machineShutdown",value:function(){this._xvpOp(1,2)}},{key:"machineReboot",value:function(){this._xvpOp(1,3)}},{key:"machineReset",value:function(){this._xvpOp(1,4)}},{key:"sendKey",value:function(ae,me,Oe){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(Oe===void 0){this.sendKey(ae,me,!0),this.sendKey(ae,me,!1);return}var Ze=d.default[me];if(this._qemuExtKeyEventSupported&&Ze)ae=ae||0,f.Info("Sending key ("+(Oe?"down":"up")+"): keysym "+ae+", scancode "+Ze),ze.messages.QEMUExtendedKeyEvent(this._sock,ae,Oe,Ze);else{if(!ae)return;f.Info("Sending keysym ("+(Oe?"down":"up")+"): "+ae),ze.messages.keyEvent(this._sock,ae,Oe?1:0)}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(ae){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(this._clipboardServerCapabilitiesFormats[ge]&&this._clipboardServerCapabilitiesActions[de])this._clipboardText=ae,ze.messages.extendedClipboardNotify(this._sock,[ge]);else{for(var me=new Uint8Array(ae.length),Oe=0;Oe> RFB.connect"),f.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(ae){ae.name==="SyntaxError"?this._fail("Invalid host or port ("+ae+")"):this._fail("Error when opening socket ("+ae+")")}this._target.appendChild(this._screen),this._gestures.attach(this._canvas),this._cursor.attach(this._canvas),this._refreshCursor(),window.addEventListener("resize",this._eventHandlers.windowResize),this._canvas.addEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.addEventListener("touchstart",this._eventHandlers.focusCanvas),this._canvas.addEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.addEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.addEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.addEventListener("click",this._eventHandlers.handleMouse),this._canvas.addEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.addEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.addEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.addEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.addEventListener("gestureend",this._eventHandlers.handleGesture),f.Debug("<< RFB.connect")}},{key:"_disconnect",value:function(){f.Debug(">> RFB.disconnect"),this._cursor.detach(),this._canvas.removeEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gestureend",this._eventHandlers.handleGesture),this._canvas.removeEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.removeEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.removeEventListener("click",this._eventHandlers.handleMouse),this._canvas.removeEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.removeEventListener("touchstart",this._eventHandlers.focusCanvas),window.removeEventListener("resize",this._eventHandlers.windowResize),this._keyboard.ungrab(),this._gestures.detach(),this._sock.close();try{this._target.removeChild(this._screen)}catch(ae){if(!(ae.name==="NotFoundError"))throw ae}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),f.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(ae){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(ae){this._fbName=ae,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(ae){var me=this;window.requestAnimationFrame(function(){me._updateClip(),me._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var ae=this._display.clipViewport,me=this._clipViewport;if(this._scaleViewport&&(me=!1),ae!==me&&(this._display.clipViewport=me),me){var Oe=this._screenSize();this._display.viewportChangeSize(Oe.w,Oe.h),this._fixScrollbars()}}},{key:"_updateScale",value:function(){if(!this._scaleViewport)this._display.scale=1;else{var ae=this._screenSize();this._display.autoscale(ae.w,ae.h)}this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;var ae=this._screenSize();ze.messages.setDesktopSize(this._sock,Math.floor(ae.w),Math.floor(ae.h),this._screenID,this._screenFlags),f.Debug("Requested new desktop size: "+ae.w+"x"+ae.h)}},{key:"_screenSize",value:function(){var ae=this._screen.getBoundingClientRect();return{w:ae.width,h:ae.height}}},{key:"_fixScrollbars",value:function(){var ae=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=ae}},{key:"_updateConnectionState",value:function(ae){var me=this,Oe=this._rfbConnectionState;if(ae===Oe){f.Debug("Already in state '"+ae+"', ignoring");return}if(Oe==="disconnected"){f.Error("Tried changing state of a disconnected RFB object");return}switch(ae){case"connected":if(Oe!=="connecting"){f.Error("Bad transition to connected state, previous connection state: "+Oe);return}break;case"disconnected":if(Oe!=="disconnecting"){f.Error("Bad transition to disconnected state, previous connection state: "+Oe);return}break;case"connecting":if(Oe!==""){f.Error("Bad transition to connecting state, previous connection state: "+Oe);return}break;case"disconnecting":if(Oe!=="connected"&&Oe!=="connecting"){f.Error("Bad transition to disconnecting state, previous connection state: "+Oe);return}break;default:f.Error("Unknown connection state: "+ae);return}this._rfbConnectionState=ae,f.Debug("New state '"+ae+"', was '"+Oe+"'."),this._disconnTimer&&ae!=="disconnecting"&&(f.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(ae){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout(function(){f.Error("Disconnection timed out."),me._updateConnectionState("disconnected")},W*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(ae){switch(this._rfbConnectionState){case"disconnecting":f.Error("Failed when disconnecting: "+ae);break;case"connected":f.Error("Failed while connected: "+ae);break;case"connecting":f.Error("Failed when connecting: "+ae);break;default:f.Error("RFB failure: "+ae);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(ae,me){this._capabilities[ae]=me,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}},{key:"_handleMessage",value:function(){if(this._sock.rQlen===0){f.Warn("handleMessage called on an empty receive queue");return}switch(this._rfbConnectionState){case"disconnected":f.Error("Got data while disconnected");break;case"connected":for(;!this._flushing;){if(!this._normalMsg())break;if(this._sock.rQlen===0)break}break;default:this._initMsg();break}}},{key:"_handleKeyEvent",value:function(ae,me,Oe){this.sendKey(ae,me,Oe)}},{key:"_handleMouse",value:function(ae){if(ae.type==="click"&&ae.target!==this._canvas)return;if(ae.stopPropagation(),ae.preventDefault(),ae.type==="click"||ae.type==="contextmenu")return;var me=(0,v.clientToElement)(ae.clientX,ae.clientY,this._canvas);switch(ae.type){case"mousedown":(0,h.setCapture)(this._canvas),this._handleMouseButton(me.x,me.y,!0,1<p.dragThreshold||Math.abs(vt)>p.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:ae,y:me},this._display.viewportChangePos(Ze,vt));return}if(this._mousePos={x:ae,y:me},this._mouseMoveTimer==null){var Ct=Date.now()-this._mouseLastMoveTime;Ct>z?(this._sendMouse(ae,me,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){Oe._handleDelayedMouseMove()},z-Ct)}}},{key:"_handleDelayedMouseMove",value:function(){this._mouseMoveTimer=null,this._sendMouse(this._mousePos.x,this._mousePos.y,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()}},{key:"_sendMouse",value:function(ae,me,Oe){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;ze.messages.pointerEvent(this._sock,this._display.absX(ae),this._display.absY(me),Oe)}},{key:"_handleWheel",value:function(ae){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;ae.stopPropagation(),ae.preventDefault();var me=(0,v.clientToElement)(ae.clientX,ae.clientY,this._canvas),Oe=ae.deltaX,Ze=ae.deltaY;ae.deltaMode!==0&&(Oe*=q,Ze*=q),this._accumulatedWheelDeltaX+=Oe,this._accumulatedWheelDeltaY+=Ze,Math.abs(this._accumulatedWheelDeltaX)>=X&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(me.x,me.y,!0,1<<5),this._handleMouseButton(me.x,me.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(me.x,me.y,!0,1<<6),this._handleMouseButton(me.x,me.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=X&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(me.x,me.y,!0,1<<3),this._handleMouseButton(me.x,me.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(me.x,me.y,!0,1<<4),this._handleMouseButton(me.x,me.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(ae,me,Oe){this._handleMouseMove(me,Oe),this._cursor.move(ae.detail.clientX,ae.detail.clientY)}},{key:"_handleTapEvent",value:function(ae,me){var Oe=(0,v.clientToElement)(ae.detail.clientX,ae.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTimeG;)this._handleMouseButton(Oe.x,Oe.y,!0,8),this._handleMouseButton(Oe.x,Oe.y,!1,8),this._gestureLastMagnitudeY+=G;for(;ae.detail.magnitudeY-this._gestureLastMagnitudeY<-G;)this._handleMouseButton(Oe.x,Oe.y,!0,16),this._handleMouseButton(Oe.x,Oe.y,!1,16),this._gestureLastMagnitudeY-=G;for(;ae.detail.magnitudeX-this._gestureLastMagnitudeX>G;)this._handleMouseButton(Oe.x,Oe.y,!0,32),this._handleMouseButton(Oe.x,Oe.y,!1,32),this._gestureLastMagnitudeX+=G;for(;ae.detail.magnitudeX-this._gestureLastMagnitudeX<-G;)this._handleMouseButton(Oe.x,Oe.y,!0,64),this._handleMouseButton(Oe.x,Oe.y,!1,64),this._gestureLastMagnitudeX-=G;break;case"pinch":if(this._fakeMouseMove(ae,Oe.x,Oe.y),me=Math.hypot(ae.detail.magnitudeX,ae.detail.magnitudeY),Math.abs(me-this._gestureLastMagnitudeX)>fe){for(this._handleKeyEvent(s.default.XK_Control_L,"ControlLeft",!0);me-this._gestureLastMagnitudeX>fe;)this._handleMouseButton(Oe.x,Oe.y,!0,8),this._handleMouseButton(Oe.x,Oe.y,!1,8),this._gestureLastMagnitudeX+=fe;for(;me-this._gestureLastMagnitudeX<-fe;)this._handleMouseButton(Oe.x,Oe.y,!0,16),this._handleMouseButton(Oe.x,Oe.y,!1,16),this._gestureLastMagnitudeX-=fe}this._handleKeyEvent(s.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(ae.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(ae,Oe.x,Oe.y),this._handleMouseButton(Oe.x,Oe.y,!1,1);break;case"longpress":this._fakeMouseMove(ae,Oe.x,Oe.y),this._handleMouseButton(Oe.x,Oe.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var ae=this._sock.rQshiftStr(12).substr(4,7);f.Info("Server ProtocolVersion: "+ae);var me=0;switch(ae){case"000.000":me=1;break;case"003.003":case"003.006":case"003.889":this._rfbVersion=3.3;break;case"003.007":this._rfbVersion=3.7;break;case"003.008":case"004.000":case"004.001":case"005.000":this._rfbVersion=3.8;break;default:return this._fail("Invalid server version "+ae)}if(me){for(var Oe="ID:"+this._repeaterID;Oe.length<250;)Oe+="\0";return this._sock.sendString(Oe),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var Ze="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+Ze+` `),f.Debug("Sent ProtocolVersion: "+Ze),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function ae(Ze,vt){for(var Ct=0;Ct=3.7){var me=this._sock.rQshift8();if(this._sock.rQwait("security type",me,1))return!1;if(me===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var Oe=this._sock.rQshiftBytes(me);if(f.Debug("Server security types: "+Oe),ae(1,Oe))this._rfbAuthScheme=1;else if(ae(22,Oe))this._rfbAuthScheme=22;else if(ae(16,Oe))this._rfbAuthScheme=16;else if(ae(2,Oe))this._rfbAuthScheme=2;else if(ae(19,Oe))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+Oe+")");this._sock.send([this._rfbAuthScheme])}else{if(this._sock.rQwait("security scheme",4))return!1;if(this._rfbAuthScheme=this._sock.rQshift32(),this._rfbAuthScheme==0)return this._rfbInitState="SecurityReason",this._securityContext="authentication scheme",this._securityStatus=1,this._initMsg()}return this._rfbInitState="Authentication",f.Debug("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}},{key:"_handleSecurityReason",value:function(){if(this._sock.rQwait("reason length",4))return!1;var ae=this._sock.rQshift32(),me="";if(ae>0){if(this._sock.rQwait("reason",ae,4))return!1;me=this._sock.rQshiftStr(ae)}return me!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:me}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+me+")")):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus}})),this._fail("Security negotiation failed on "+this._securityContext))}},{key:"_negotiateXvpAuth",value:function(){if(this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0||this._rfbCredentials.target===void 0)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password","target"]}})),!1;var ae=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(ae),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var ae=this._sock.rQshift8(),me=this._sock.rQshift8();if(!(ae==0&&me==2))return this._fail("Unsupported VeNCrypt version "+ae+"."+me);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var Oe=this._sock.rQshift8();if(Oe!=0)return this._fail("VeNCrypt failure "+Oe);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var Ze=this._sock.rQshift8();if(Ze<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=Ze,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var vt=[],Ct=0;Ct0&&this._sock.rQwait("tunnel capabilities",16*ae,4))return!1;if(this._rfbTightVNC=!0,ae>0)return this._negotiateTightTunnels(ae),!1}if(this._sock.rQwait("sub auth count",4))return!1;var me=this._sock.rQshift32();if(me===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*me,4))return!1;for(var Oe={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},Ze=[],vt=0;vt=3.8?(this._rfbInitState="SecurityResult",!0):(this._rfbInitState="ClientInitialisation",this._initMsg());case 22:return this._negotiateXvpAuth();case 2:return this._negotiateStdVNCAuth();case 16:return this._negotiateTightAuth();case 19:return this._negotiateVeNCryptAuth();case 129:return this._negotiateTightUnixAuth();default:return this._fail("Unsupported auth scheme (scheme: "+this._rfbAuthScheme+")")}}},{key:"_handleSecurityResult",value:function(){if(this._sock.rQwait("VNC auth response ",4))return!1;var ae=this._sock.rQshift32();return ae===0?(this._rfbInitState="ClientInitialisation",f.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=ae,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:ae}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var ae=this._sock.rQshift16(),me=this._sock.rQshift16(),Oe=this._sock.rQshift8(),Ze=this._sock.rQshift8(),vt=this._sock.rQshift8(),Ct=this._sock.rQshift8(),Be=this._sock.rQshift16(),Rt=this._sock.rQshift16(),He=this._sock.rQshift16(),wt=this._sock.rQshift8(),Ye=this._sock.rQshift8(),et=this._sock.rQshift8();this._sock.rQskipBytes(3);var rt=this._sock.rQshift32();if(this._sock.rQwait("server init name",rt,24))return!1;var st=this._sock.rQshiftStr(rt);if(st=(0,y.decodeUTF8)(st,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+rt))return!1;var Ve=this._sock.rQshift16(),ie=this._sock.rQshift16(),$=this._sock.rQshift16();this._sock.rQskipBytes(2);var it=(Ve+ie+$)*16;if(this._sock.rQwait("TightVNC extended server init header",it,32+rt))return!1;this._sock.rQskipBytes(16*Ve),this._sock.rQskipBytes(16*ie),this._sock.rQskipBytes(16*$)}return f.Info("Screen: "+ae+"x"+me+", bpp: "+Oe+", depth: "+Ze+", bigEndian: "+vt+", trueColor: "+Ct+", redMax: "+Be+", greenMax: "+Rt+", blueMax: "+He+", redShift: "+wt+", greenShift: "+Ye+", blueShift: "+et),this._setDesktopName(st),this._resize(ae,me),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,this._fbName==="Intel(r) AMT KVM"&&(f.Warn("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),ze.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),ze.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}},{key:"_sendEncodings",value:function(){var ae=[];ae.push(m.encodings.encodingCopyRect),this._fbDepth==24&&(ae.push(m.encodings.encodingTight),ae.push(m.encodings.encodingTightPNG),ae.push(m.encodings.encodingHextile),ae.push(m.encodings.encodingRRE)),ae.push(m.encodings.encodingRaw),ae.push(m.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),ae.push(m.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),ae.push(m.encodings.pseudoEncodingDesktopSize),ae.push(m.encodings.pseudoEncodingLastRect),ae.push(m.encodings.pseudoEncodingQEMUExtendedKeyEvent),ae.push(m.encodings.pseudoEncodingExtendedDesktopSize),ae.push(m.encodings.pseudoEncodingXvp),ae.push(m.encodings.pseudoEncodingFence),ae.push(m.encodings.pseudoEncodingContinuousUpdates),ae.push(m.encodings.pseudoEncodingDesktopName),ae.push(m.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(ae.push(m.encodings.pseudoEncodingVMwareCursor),ae.push(m.encodings.pseudoEncodingCursor)),ze.messages.clientEncodings(this._sock,ae)}},{key:"_initMsg",value:function(){switch(this._rfbInitState){case"ProtocolVersion":return this._negotiateProtocolVersion();case"Security":return this._negotiateSecurity();case"Authentication":return this._negotiateAuthentication();case"SecurityResult":return this._handleSecurityResult();case"SecurityReason":return this._handleSecurityReason();case"ClientInitialisation":return this._sock.send([this._shared?1:0]),this._rfbInitState="ServerInitialisation",!0;case"ServerInitialisation":return this._negotiateServerInit();default:return this._fail("Unknown init state (state: "+this._rfbInitState+")")}}},{key:"_handleSetColourMapMsg",value:function(){return f.Debug("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}},{key:"_handleServerCutText",value:function(){if(f.Debug("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);var ae=this._sock.rQshift32();if(ae=(0,g.toSigned32bit)(ae),this._sock.rQwait("ServerCutText content",Math.abs(ae),8))return!1;if(ae>=0){var me=this._sock.rQshiftStr(ae);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:me}}))}else{ae=Math.abs(ae);var Oe=this._sock.rQshift32(),Ze=Oe&65535,vt=Oe&4278190080,Ct=!!(vt&xe);if(Ct){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var Be=0;Be<=15;Be++){var Rt=1<0&&st.charAt(st.length-1)==="\0"&&(st=st.slice(0,-1)),st=st.replace(`\r `,` `),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:st}}))}}else return this._fail("Unexpected action in extended clipboard message: "+vt)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var ae=this._sock.rQshift32(),me=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",me,9))return!1;me>64&&(f.Warn("Bad payload length ("+me+") in fence response"),me=64);var Oe=this._sock.rQshiftStr(me);return this._supportsFence=!0,ae&1<<31?(ae&=1<<0|1<<1,ze.messages.clientFence(this._sock,ae,Oe),!0):this._fail("Unexpected fence response")}},{key:"_handleXvpMsg",value:function(){if(this._sock.rQwait("XVP version and message",3,1))return!1;this._sock.rQskipBytes(1);var ae=this._sock.rQshift8(),me=this._sock.rQshift8();switch(me){case 0:f.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=ae,f.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+me+")");break}return!0}},{key:"_normalMsg",value:function(){var ae;this._FBU.rects>0?ae=0:ae=this._sock.rQshift8();var me,Oe;switch(ae){case 0:return Oe=this._framebufferUpdate(),Oe&&!this._enabledContinuousUpdates&&ze.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),Oe;case 1:return this._handleSetColourMapMsg();case 2:return f.Debug("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return me=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,me&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),f.Info("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+ae+")"),f.Debug("sock.rQslice(0, 30): "+this._sock.rQslice(0,30)),!0}}},{key:"_onFlush",value:function(){this._flushing=!1,this._sock.rQlen>0&&this._handleMessage()}},{key:"_framebufferUpdate",value:function(){if(this._FBU.rects===0){if(this._sock.rQwait("FBU header",3,1))return!1;if(this._sock.rQskipBytes(1),this._FBU.rects=this._sock.rQshift16(),this._display.pending())return this._flushing=!0,this._display.flush(),!1}for(;this._FBU.rects>0;){if(this._FBU.encoding===null){if(this._sock.rQwait("rect header",12))return!1;var ae=this._sock.rQshiftBytes(12);this._FBU.x=(ae[0]<<8)+ae[1],this._FBU.y=(ae[2]<<8)+ae[3],this._FBU.width=(ae[4]<<8)+ae[5],this._FBU.height=(ae[6]<<8)+ae[7],this._FBU.encoding=parseInt((ae[8]<<24)+(ae[9]<<16)+(ae[10]<<8)+ae[11],10)}if(!this._handleRect())return!1;this._FBU.rects--,this._FBU.encoding=null}return this._display.flip(),!0}},{key:"_handleRect",value:function(){switch(this._FBU.encoding){case m.encodings.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case m.encodings.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case m.encodings.pseudoEncodingCursor:return this._handleCursor();case m.encodings.pseudoEncodingQEMUExtendedKeyEvent:try{var ae=document.createEvent("keyboardEvent");ae.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(me){}return!0;case m.encodings.pseudoEncodingDesktopName:return this._handleDesktopName();case m.encodings.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case m.encodings.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}},{key:"_handleVMwareCursor",value:function(){var ae=this._FBU.x,me=this._FBU.y,Oe=this._FBU.width,Ze=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var vt=this._sock.rQshift8();this._sock.rQshift8();var Ct,Be=4;if(vt==0){var Rt=4294967040|0;if(Ct=new Array(Oe*Ze*Be),this._sock.rQwait("VMware cursor classic encoding",Oe*Ze*Be*2,2))return!1;for(var He=new Array(Oe*Ze),wt=0;wt>8&255,ie=st>>16&255,$=st>>24&255;Ct[rt*Be]=Ve,Ct[rt*Be+1]=ie,Ct[rt*Be+2]=$,Ct[rt*Be+3]=255}else(He[rt]&Rt)==Rt?Ye[rt]==0?(Ct[rt*Be]=0,Ct[rt*Be+1]=0,Ct[rt*Be+2]=0,Ct[rt*Be+3]=0):((Ye[rt]&Rt)==Rt,Ct[rt*Be]=0,Ct[rt*Be+1]=0,Ct[rt*Be+2]=0,Ct[rt*Be+3]=255):(Ct[rt*Be]=0,Ct[rt*Be+1]=0,Ct[rt*Be+2]=0,Ct[rt*Be+3]=255)}else if(vt==1){if(this._sock.rQwait("VMware cursor alpha encoding",Oe*Ze*4,2))return!1;Ct=new Array(Oe*Ze*Be);for(var it=0;it>24&255,Ct[it*4+1]=Qe>>16&255,Ct[it*4+2]=Qe>>8&255,Ct[it*4+3]=Qe&255}}else return f.Warn("The given cursor type is not supported: "+vt+" given."),!1;return this._updateCursor(Ct,ae,me,Oe,Ze),!0}},{key:"_handleCursor",value:function(){var ae=this._FBU.x,me=this._FBU.y,Oe=this._FBU.width,Ze=this._FBU.height,vt=Oe*Ze*4,Ct=Math.ceil(Oe/8)*Ze,Be=vt+Ct;if(this._sock.rQwait("cursor encoding",Be))return!1;for(var Rt=this._sock.rQshiftBytes(vt),He=this._sock.rQshiftBytes(Ct),wt=new Uint8Array(Oe*Ze*4),Ye=0,et=0;et9){f.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===ae)return;this._qualityLevel=ae,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(ae){if(!Number.isInteger(ae)||ae<0||ae>9){f.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===ae)return;this._compressionLevel=ae,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(ae,me){var Oe=ae.split("").map(function(Ze){return Ze.charCodeAt(0)});return new t.default(Oe).encrypt(me)}}]),ze}(c.default);I.default=se,se.messages={keyEvent:function(Ce,ze,_e){var ae=Ce._sQ,me=Ce._sQlen;ae[me]=4,ae[me+1]=_e,ae[me+2]=0,ae[me+3]=0,ae[me+4]=ze>>24,ae[me+5]=ze>>16,ae[me+6]=ze>>8,ae[me+7]=ze,Ce._sQlen+=8,Ce.flush()},QEMUExtendedKeyEvent:function(Ce,ze,_e,ae){function me(Ct){var Be=ae>>8,Rt=ae&255;return Be===224&&Rt<127?Rt|128:Ct}var Oe=Ce._sQ,Ze=Ce._sQlen;Oe[Ze]=255,Oe[Ze+1]=0,Oe[Ze+2]=_e>>8,Oe[Ze+3]=_e,Oe[Ze+4]=ze>>24,Oe[Ze+5]=ze>>16,Oe[Ze+6]=ze>>8,Oe[Ze+7]=ze;var vt=me(ae);Oe[Ze+8]=vt>>24,Oe[Ze+9]=vt>>16,Oe[Ze+10]=vt>>8,Oe[Ze+11]=vt,Ce._sQlen+=12,Ce.flush()},pointerEvent:function(Ce,ze,_e,ae){var me=Ce._sQ,Oe=Ce._sQlen;me[Oe]=5,me[Oe+1]=ae,me[Oe+2]=ze>>8,me[Oe+3]=ze,me[Oe+4]=_e>>8,me[Oe+5]=_e,Ce._sQlen+=6,Ce.flush()},_buildExtendedClipboardFlags:function(Ce,ze){for(var _e=new Uint8Array(4),ae=0,me=0,Oe=0;Oe>24,_e[1]=0,_e[2]=0,_e[3]=ae,_e},extendedClipboardProvide:function(Ce,ze,_e){for(var ae=new n.default,me=[],Oe=0;Oe>24&255,Ze.length>>16&255,Ze.length>>8&255,Ze.length&255);for(var vt=0;vt>24,me[Oe+1]=_e[ae[Ze]]>>16,me[Oe+2]=_e[ae[Ze]]>>8,me[Oe+3]=_e[ae[Ze]]>>0,Oe+=4,me[3]|=1<2&&arguments[2]!==void 0?arguments[2]:!1,ae=Ce._sQ,me=Ce._sQlen;ae[me]=6,ae[me+1]=0,ae[me+2]=0,ae[me+3]=0;var Oe;_e?Oe=(0,g.toUnsigned32bit)(-ze.length):Oe=ze.length,ae[me+4]=Oe>>24,ae[me+5]=Oe>>16,ae[me+6]=Oe>>8,ae[me+7]=Oe,Ce._sQlen+=8;for(var Ze=0,vt=ze.length;vt>0;){for(var Ct=Math.min(vt,Ce._sQbufferSize-Ce._sQlen),Be=0;Be>8,Oe[Ze+3]=ze,Oe[Ze+4]=_e>>8,Oe[Ze+5]=_e,Oe[Ze+6]=1,Oe[Ze+7]=0,Oe[Ze+8]=ae>>24,Oe[Ze+9]=ae>>16,Oe[Ze+10]=ae>>8,Oe[Ze+11]=ae,Oe[Ze+12]=0,Oe[Ze+13]=0,Oe[Ze+14]=0,Oe[Ze+15]=0,Oe[Ze+16]=ze>>8,Oe[Ze+17]=ze,Oe[Ze+18]=_e>>8,Oe[Ze+19]=_e,Oe[Ze+20]=me>>24,Oe[Ze+21]=me>>16,Oe[Ze+22]=me>>8,Oe[Ze+23]=me,Ce._sQlen+=24,Ce.flush()},clientFence:function(Ce,ze,_e){var ae=Ce._sQ,me=Ce._sQlen;ae[me]=248,ae[me+1]=0,ae[me+2]=0,ae[me+3]=0,ae[me+4]=ze>>24,ae[me+5]=ze>>16,ae[me+6]=ze>>8,ae[me+7]=ze;var Oe=_e.length;ae[me+8]=Oe;for(var Ze=0;Ze>8,Ze[vt+3]=_e,Ze[vt+4]=ae>>8,Ze[vt+5]=ae,Ze[vt+6]=me>>8,Ze[vt+7]=me,Ze[vt+8]=Oe>>8,Ze[vt+9]=Oe,Ce._sQlen+=10,Ce.flush()},pixelFormat:function(Ce,ze,_e){var ae=Ce._sQ,me=Ce._sQlen,Oe;ze>16?Oe=32:ze>8?Oe=16:Oe=8;var Ze=Math.floor(ze/3);ae[me]=0,ae[me+1]=0,ae[me+2]=0,ae[me+3]=0,ae[me+4]=Oe,ae[me+5]=ze,ae[me+6]=0,ae[me+7]=_e?1:0,ae[me+8]=0,ae[me+9]=(1<>8,_e[ae+3]=ze.length;for(var me=ae+4,Oe=0;Oe>24,_e[me+1]=Ze>>16,_e[me+2]=Ze>>8,_e[me+3]=Ze,me+=4}Ce._sQlen+=me-ae,Ce.flush()},fbUpdateRequest:function(Ce,ze,_e,ae,me,Oe){var Ze=Ce._sQ,vt=Ce._sQlen;typeof _e=="undefined"&&(_e=0),typeof ae=="undefined"&&(ae=0),Ze[vt]=3,Ze[vt+1]=ze?1:0,Ze[vt+2]=_e>>8&255,Ze[vt+3]=_e&255,Ze[vt+4]=ae>>8&255,Ze[vt+5]=ae&255,Ze[vt+6]=me>>8&255,Ze[vt+7]=me&255,Ze[vt+8]=Oe>>8&255,Ze[vt+9]=Oe&255,Ce._sQlen+=10,Ce.flush()},xvpOp:function(Ce,ze,_e){var ae=Ce._sQ,me=Ce._sQlen;ae[me]=250,ae[me+1]=0,ae[me+2]=ze,ae[me+3]=_e,Ce._sQlen+=4,Ce.flush()}},se.cursors={none:{rgbaPixels:new Uint8Array,w:0,h:0,hotx:0,hoty:0},dot:{rgbaPixels:new Uint8Array([255,255,255,255,0,0,0,255,255,255,255,255,0,0,0,255,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,255,255,255,255,255]),w:3,h:3,hotx:1,hoty:1}}},"1eCo":function(D,I,e){(function(g){g(e("VrN/"))})(function(g){"use strict";var f={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},y={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};g.defineMode("xml",function(p,v){var h=p.indentUnit,c={},o=v.htmlMode?f:y;for(var i in o)c[i]=o[i];for(var i in v)c[i]=v[i];var n,a;function u(N,F){function k(K){return F.tokenize=K,K(N,F)}var P=N.next();if(P=="<")return N.eat("!")?N.eat("[")?N.match("CDATA[")?k(t("atom","]]>")):null:N.match("--")?k(t("comment","-->")):N.match("DOCTYPE",!0,!0)?(N.eatWhile(/[\w\._\-]/),k(s(1))):null:N.eat("?")?(N.eatWhile(/[\w\._\-]/),F.tokenize=t("meta","?>"),"meta"):(n=N.eat("/")?"closeTag":"openTag",F.tokenize=r,"tag bracket");if(P=="&"){var j;return N.eat("#")?N.eat("x")?j=N.eatWhile(/[a-fA-F\d]/)&&N.eat(";"):j=N.eatWhile(/[\d]/)&&N.eat(";"):j=N.eatWhile(/[\w\.\-:]/)&&N.eat(";"),j?"atom":"error"}else return N.eatWhile(/[^&<]/),null}u.isInText=!0;function r(N,F){var k=N.next();if(k==">"||k=="/"&&N.eat(">"))return F.tokenize=u,n=k==">"?"endTag":"selfcloseTag","tag bracket";if(k=="=")return n="equals",null;if(k=="<"){F.tokenize=u,F.state=b,F.tagName=F.tagStart=null;var P=F.tokenize(N,F);return P?P+" tag error":"tag error"}else return/[\'\"]/.test(k)?(F.tokenize=l(k),F.stringStartCol=N.column(),F.tokenize(N,F)):(N.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(N){var F=function(P,j){for(;!P.eol();)if(P.next()==N){j.tokenize=r;break}return"string"};return F.isInAttribute=!0,F}function t(N,F){return function(k,P){for(;!k.eol();){if(k.match(F)){P.tokenize=u;break}k.next()}return N}}function s(N){return function(F,k){for(var P;(P=F.next())!=null;){if(P=="<")return k.tokenize=s(N+1),k.tokenize(F,k);if(P==">")if(N==1){k.tokenize=u;break}else return k.tokenize=s(N-1),k.tokenize(F,k)}return"meta"}}function d(N,F,k){this.prev=N.context,this.tagName=F,this.indent=N.indented,this.startOfLine=k,(c.doNotIndent.hasOwnProperty(F)||N.context&&N.context.noIndent)&&(this.noIndent=!0)}function m(N){N.context&&(N.context=N.context.prev)}function w(N,F){for(var k;;){if(!N.context)return;if(k=N.context.tagName,!c.contextGrabbers.hasOwnProperty(k)||!c.contextGrabbers[k].hasOwnProperty(F))return;m(N)}}function b(N,F,k){return N=="openTag"?(k.tagStart=F.column(),E):N=="closeTag"?A:b}function E(N,F,k){return N=="word"?(k.tagName=F.current(),a="tag",O):c.allowMissingTagName&&N=="endTag"?(a="tag bracket",O(N,F,k)):(a="error",E)}function A(N,F,k){if(N=="word"){var P=F.current();return k.context&&k.context.tagName!=P&&c.implicitlyClosed.hasOwnProperty(k.context.tagName)&&m(k),k.context&&k.context.tagName==P||c.matchClosing===!1?(a="tag",S):(a="tag error",T)}else return c.allowMissingTagName&&N=="endTag"?(a="tag bracket",S(N,F,k)):(a="error",T)}function S(N,F,k){return N!="endTag"?(a="error",S):(m(k),b)}function T(N,F,k){return a="error",S(N,F,k)}function O(N,F,k){if(N=="word")return a="attribute",x;if(N=="endTag"||N=="selfcloseTag"){var P=k.tagName,j=k.tagStart;return k.tagName=k.tagStart=null,N=="selfcloseTag"||c.autoSelfClosers.hasOwnProperty(P)?w(k,P):(w(k,P),k.context=new d(k,P,j==k.indented)),b}return a="error",O}function x(N,F,k){return N=="equals"?C:(c.allowMissing||(a="error"),O(N,F,k))}function C(N,F,k){return N=="string"?_:N=="word"&&c.allowUnquoted?(a="string",O):(a="error",O(N,F,k))}function _(N,F,k){return N=="string"?_:O(N,F,k)}return{startState:function(F){var k={tokenize:u,state:b,indented:F||0,tagName:null,tagStart:null,context:null};return F!=null&&(k.baseIndent=F),k},token:function(F,k){if(!k.tagName&&F.sol()&&(k.indented=F.indentation()),F.eatSpace())return null;n=null;var P=k.tokenize(F,k);return(P||n)&&P!="comment"&&(a=null,k.state=k.state(n||P,F,k),a&&(P=a=="error"?P+" error":a)),P},indent:function(F,k,P){var j=F.context;if(F.tokenize.isInAttribute)return F.tagStart==F.indented?F.stringStartCol+1:F.indented+h;if(j&&j.noIndent)return g.Pass;if(F.tokenize!=r&&F.tokenize!=u)return P?P.match(/^(\s*)/)[0].length:0;if(F.tagName)return c.multilineTagIndentPastTag!==!1?F.tagStart+F.tagName.length+2:F.tagStart+h*(c.multilineTagIndentFactor||1);if(c.alignCDATA&&/$/,blockCommentStart:"",configuration:c.htmlMode?"html":"xml",helperType:c.htmlMode?"html":"xml",skipAttribute:function(F){F.state==C&&(F.state=O)},xmlCurrentTag:function(F){return F.tagName?{name:F.tagName,close:F.type=="closeTag"}:null},xmlCurrentContext:function(F){for(var k=[],P=F.context;P;P=P.prev)P.tagName&&k.push(P.tagName);return k.reverse()}}}),g.defineMIME("text/xml","xml"),g.defineMIME("application/xml","xml"),g.mimeModes.hasOwnProperty("text/html")||g.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1hJj":function(D,I,e){var g=e("e4Nc"),f=e("ftKO"),y=e("3A9y");function p(v){var h=-1,c=v==null?0:v.length;for(this.__data__=new g;++h1&&arguments[1]!==void 0?arguments[1]:!1,_t=nt&&typeof nt.getBoundingClientRect=="function"&&nt.getBoundingClientRect().width;if(_t){if(At){var ne=getComputedStyle(nt),ue=ne.marginLeft,Y=ne.marginRight;_t+=+ue.replace("px","")+ +Y.replace("px","")}_t=+_t.toFixed(6)}return _t||0},de=function(nt,At,_t){nt&&Object(N.a)(nt.style)==="object"&&(nt.style[At]=_t)},ee=function(){return ge.any},se=e("KQm4"),ke=e("Ff2n"),Ce=e("i8i4"),ze=e("bdgK"),_e=e("uciX"),ae=e("8XRh"),me={adjustX:1,adjustY:1},Oe={topLeft:{points:["bl","tl"],overflow:me,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:me,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:me,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:me,offset:[4,0]}},Ze={topLeft:{points:["bl","tl"],overflow:me,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:me,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:me,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:me,offset:[4,0]}},vt=Oe,Ct=0,Be={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Rt=function(nt,At,_t){var ne=pt(At),ue=nt.getState();nt.setState({defaultActiveFirst:Object(g.a)(Object(g.a)({},ue.defaultActiveFirst),{},Object(T.a)({},ne,_t))})},He=function(Fe){Object(v.a)(At,Fe);var nt=Object(h.a)(At);function At(_t){var ne;Object(f.a)(this,At),ne=nt.call(this,_t),ne.onDestroy=function(Re){ne.props.onDestroy(Re)},ne.onKeyDown=function(Re){var $e=Re.keyCode,gt=ne.menuInstance,Wt=ne.props,$t=Wt.isOpen,Dt=Wt.store;if($e===O.a.ENTER)return ne.onTitleClick(Re),Rt(Dt,ne.props.eventKey,!0),!0;if($e===O.a.RIGHT)return $t?gt.onKeyDown(Re):(ne.triggerOpenChange(!0),Rt(Dt,ne.props.eventKey,!0)),!0;if($e===O.a.LEFT){var Kt;if($t)Kt=gt.onKeyDown(Re);else return;return Kt||(ne.triggerOpenChange(!1),Kt=!0),Kt}return $t&&($e===O.a.UP||$e===O.a.DOWN)?gt.onKeyDown(Re):void 0},ne.onOpenChange=function(Re){ne.props.onOpenChange(Re)},ne.onPopupVisibleChange=function(Re){ne.triggerOpenChange(Re,Re?"mouseenter":"mouseleave")},ne.onMouseEnter=function(Re){var $e=ne.props,gt=$e.eventKey,Wt=$e.onMouseEnter,$t=$e.store;Rt($t,ne.props.eventKey,!1),Wt({key:gt,domEvent:Re})},ne.onMouseLeave=function(Re){var $e=ne.props,gt=$e.parentMenu,Wt=$e.eventKey,$t=$e.onMouseLeave;gt.subMenuInstance=Object(p.a)(ne),$t({key:Wt,domEvent:Re})},ne.onTitleMouseEnter=function(Re){var $e=ne.props,gt=$e.eventKey,Wt=$e.onItemHover,$t=$e.onTitleMouseEnter;Wt({key:gt,hover:!0}),$t({key:gt,domEvent:Re})},ne.onTitleMouseLeave=function(Re){var $e=ne.props,gt=$e.parentMenu,Wt=$e.eventKey,$t=$e.onItemHover,Dt=$e.onTitleMouseLeave;gt.subMenuInstance=Object(p.a)(ne),$t({key:Wt,hover:!1}),Dt({key:Wt,domEvent:Re})},ne.onTitleClick=function(Re){var $e=Object(p.a)(ne),gt=$e.props;if(gt.onTitleClick({key:gt.eventKey,domEvent:Re}),gt.triggerSubMenuAction==="hover")return;ne.triggerOpenChange(!gt.isOpen,"click"),Rt(gt.store,ne.props.eventKey,!1)},ne.onSubMenuClick=function(Re){typeof ne.props.onClick=="function"&&ne.props.onClick(ne.addKeyPath(Re))},ne.onSelect=function(Re){ne.props.onSelect(Re)},ne.onDeselect=function(Re){ne.props.onDeselect(Re)},ne.getPrefixCls=function(){return"".concat(ne.props.rootPrefixCls,"-submenu")},ne.getActiveClassName=function(){return"".concat(ne.getPrefixCls(),"-active")},ne.getDisabledClassName=function(){return"".concat(ne.getPrefixCls(),"-disabled")},ne.getSelectedClassName=function(){return"".concat(ne.getPrefixCls(),"-selected")},ne.getOpenClassName=function(){return"".concat(ne.props.rootPrefixCls,"-submenu-open")},ne.saveMenuInstance=function(Re){ne.menuInstance=Re},ne.addKeyPath=function(Re){return Object(g.a)(Object(g.a)({},Re),{},{keyPath:(Re.keyPath||[]).concat(ne.props.eventKey)})},ne.triggerOpenChange=function(Re,$e){var gt=ne.props.eventKey,Wt=function(){ne.onOpenChange({key:gt,item:Object(p.a)(ne),trigger:$e,open:Re})};$e==="mouseenter"?ne.mouseenterTimeout=setTimeout(function(){Wt()},0):Wt()},ne.isChildrenSelected=function(){var Re={find:!1};return xe(ne.props.children,ne.props.selectedKeys,Re),Re.find},ne.isOpen=function(){return ne.props.openKeys.indexOf(ne.props.eventKey)!==-1},ne.adjustWidth=function(){if(!ne.subMenuTitle||!ne.menuInstance)return;var Re=Ce.findDOMNode(ne.menuInstance);if(Re.offsetWidth>=ne.subMenuTitle.offsetWidth)return;Re.style.minWidth="".concat(ne.subMenuTitle.offsetWidth,"px")},ne.saveSubMenuTitle=function(Re){ne.subMenuTitle=Re},ne.getBaseProps=function(){var Re=Object(p.a)(ne),$e=Re.props;return{mode:$e.mode==="horizontal"?"vertical":$e.mode,visible:ne.props.isOpen,level:$e.level+1,inlineIndent:$e.inlineIndent,focusable:!1,onClick:ne.onSubMenuClick,onSelect:ne.onSelect,onDeselect:ne.onDeselect,onDestroy:ne.onDestroy,selectedKeys:$e.selectedKeys,eventKey:"".concat($e.eventKey,"-menu-"),openKeys:$e.openKeys,motion:$e.motion,onOpenChange:ne.onOpenChange,subMenuOpenDelay:$e.subMenuOpenDelay,parentMenu:Object(p.a)(ne),subMenuCloseDelay:$e.subMenuCloseDelay,forceSubMenuRender:$e.forceSubMenuRender,triggerSubMenuAction:$e.triggerSubMenuAction,builtinPlacements:$e.builtinPlacements,defaultActiveFirst:$e.store.getState().defaultActiveFirst[pt($e.eventKey)],multiple:$e.multiple,prefixCls:$e.rootPrefixCls,id:ne.internalMenuId,manualRef:ne.saveMenuInstance,itemIcon:$e.itemIcon,expandIcon:$e.expandIcon,direction:$e.direction}},ne.getMotion=function(Re,$e){var gt=Object(p.a)(ne),Wt=gt.haveRendered,$t=ne.props,Dt=$t.motion,Kt=$t.rootPrefixCls,Yt=Object(g.a)(Object(g.a)({},Dt),{},{leavedClassName:"".concat(Kt,"-hidden"),removeOnLeave:!1,motionAppear:Wt||!$e||Re!=="inline"});return Yt};var ue=_t.store,Y=_t.eventKey,te=ue.getState(),be=te.defaultActiveFirst;ne.isRootMenu=!1;var Le=!1;return be&&(Le=be[Y]),Rt(ue,Y,Le),ne}return Object(y.a)(At,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ne=this,ue=this.props,Y=ue.mode,te=ue.parentMenu,be=ue.manualRef;if(be&&be(this),Y!=="horizontal"||!te.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return ne.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ne=this.props,ue=ne.onDestroy,Y=ne.eventKey;ue&&ue(Y),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(ne){var ue=this,Y=this.getBaseProps(),te=this.getMotion(Y.mode,Y.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Y.visible||Y.forceSubMenuRender,!this.haveOpened)return c.createElement("div",null);var be=Y.direction;return c.createElement(ae.default,Object.assign({visible:Y.visible},te),function(Le){var Re=Le.className,$e=Le.style,gt=_()("".concat(Y.prefixCls,"-sub"),Re,Object(T.a)({},"".concat(Y.prefixCls,"-rtl"),be==="rtl"));return c.createElement(ct,Object.assign({},Y,{id:ue.internalMenuId,className:gt,style:$e}),ne)})}},{key:"render",value:function(){var ne,ue=Object(g.a)({},this.props),Y=ue.isOpen,te=this.getPrefixCls(),be=ue.mode==="inline",Le=_()(te,"".concat(te,"-").concat(ue.mode),(ne={},Object(T.a)(ne,ue.className,!!ue.className),Object(T.a)(ne,this.getOpenClassName(),Y),Object(T.a)(ne,this.getActiveClassName(),ue.active||Y&&!be),Object(T.a)(ne,this.getDisabledClassName(),ue.disabled),Object(T.a)(ne,this.getSelectedClassName(),this.isChildrenSelected()),ne));this.internalMenuId||(ue.eventKey?this.internalMenuId="".concat(ue.eventKey,"$Menu"):(Ct+=1,this.internalMenuId="$__$".concat(Ct,"$Menu")));var Re={},$e={},gt={};ue.disabled||(Re={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},$e={onClick:this.onTitleClick},gt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Wt={},$t=ue.direction;be&&($t==="rtl"?Wt.paddingRight=ue.inlineIndent*ue.level:Wt.paddingLeft=ue.inlineIndent*ue.level);var Dt={};this.props.isOpen&&(Dt={"aria-owns":this.internalMenuId});var Kt=null;ue.mode!=="horizontal"&&(Kt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Kt=c.createElement(this.props.expandIcon,Object(g.a)({},this.props))));var Yt=c.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Wt,className:"".concat(te,"-title"),role:"button"},gt,$e,{"aria-expanded":Y},Dt,{"aria-haspopup":"true",title:typeof ue.title=="string"?ue.title:void 0}),ue.title,Kt||c.createElement("i",{className:"".concat(te,"-arrow")})),Qt=this.renderChildren(ue.children),Mt=ue.parentMenu.isRootMenu?ue.parentMenu.props.getPopupContainer:function(Ft){return Ft.parentNode},dr=Be[ue.mode],er=ue.popupOffset?{offset:ue.popupOffset}:{},ot=ue.mode==="inline"?"":ue.popupClassName;ot+=$t==="rtl"?" ".concat(te,"-rtl"):"";var xt=ue.disabled,ut=ue.triggerSubMenuAction,ft=ue.subMenuOpenDelay,Lt=ue.forceSubMenuRender,Tt=ue.subMenuCloseDelay,ht=ue.builtinPlacements;lt.forEach(function(Ft){return delete ue[Ft]}),delete ue.onClick;var Ht=$t==="rtl"?Object.assign({},Ze,ht):Object.assign({},Oe,ht);return delete ue.direction,c.createElement("li",Object.assign({},ue,Re,{className:Le,role:"menuitem"}),be&&Yt,be&&Qt,!be&&c.createElement(_e.a,{prefixCls:te,popupClassName:_()("".concat(te,"-popup"),ot),getPopupContainer:Mt,builtinPlacements:Ht,popupPlacement:dr,popupVisible:Y,popupAlign:er,popup:Qt,action:xt?[]:[ut],mouseEnterDelay:ft,mouseLeaveDelay:Tt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Lt},Yt))}}]),At}(c.Component);He.defaultProps={onMouseEnter:Pe,onMouseLeave:Pe,onTitleMouseEnter:Pe,onTitleMouseLeave:Pe,onTitleClick:Pe,manualRef:Pe,mode:"vertical",title:""};var wt=w(function(Fe,nt){var At=Fe.openKeys,_t=Fe.activeKey,ne=Fe.selectedKeys,ue=nt.eventKey,Y=nt.subMenuKey;return{isOpen:At.indexOf(ue)>-1,active:_t[Y]===ue,selectedKeys:ne}})(He);wt.isSubMenu=!0;var Ye=wt,et="menuitem-overflowed",rt=.5,st=function(Fe){Object(v.a)(At,Fe);var nt=Object(h.a)(At);function At(){var _t;return Object(f.a)(this,At),_t=nt.apply(this,arguments),_t.resizeObserver=null,_t.mutationObserver=null,_t.originalTotalWidth=0,_t.overflowedItems=[],_t.menuItemSizes=[],_t.cancelFrameId=null,_t.state={lastVisibleIndex:void 0},_t.getMenuItemNodes=function(){var ne=_t.props.prefixCls,ue=Ce.findDOMNode(Object(p.a)(_t));return ue?[].slice.call(ue.children).filter(function(Y){return Y.className.split(" ").indexOf("".concat(ne,"-overflowed-submenu"))<0}):[]},_t.getOverflowedSubMenuItem=function(ne,ue,Y){var te=_t.props,be=te.overflowedIndicator,Le=te.level,Re=te.mode,$e=te.prefixCls,gt=te.theme;if(Le!==1||Re!=="horizontal")return null;var Wt=_t.props.children[0],$t=Wt.props,Dt=$t.children,Kt=$t.title,Yt=$t.style,Qt=Object(ke.a)($t,["children","title","style"]),Mt=Object(g.a)({},Yt),dr="".concat(ne,"-overflowed-indicator"),er="".concat(ne,"-overflowed-indicator");ue.length===0&&Y!==!0?Mt=Object(g.a)(Object(g.a)({},Mt),{},{display:"none"}):Y&&(Mt=Object(g.a)(Object(g.a)({},Mt),{},{visibility:"hidden",position:"absolute"}),dr="".concat(dr,"-placeholder"),er="".concat(er,"-placeholder"));var ot=gt?"".concat($e,"-").concat(gt):"",xt={};return lt.forEach(function(ut){Qt[ut]!==void 0&&(xt[ut]=Qt[ut])}),c.createElement(Ye,Object.assign({title:be,className:"".concat($e,"-overflowed-submenu"),popupClassName:ot},xt,{key:dr,eventKey:er,disabled:!1,style:Mt}),ue)},_t.setChildrenWidthAndResize=function(){if(_t.props.mode!=="horizontal")return;var ne=Ce.findDOMNode(Object(p.a)(_t));if(!ne)return;var ue=ne.children;if(!ue||ue.length===0)return;var Y=ne.children[ue.length-1];de(Y,"display","inline-block");var te=_t.getMenuItemNodes(),be=te.filter(function(Le){return Le.className.split(" ").indexOf(et)>=0});be.forEach(function(Le){de(Le,"display","inline-block")}),_t.menuItemSizes=te.map(function(Le){return Ie(Le,!0)}),be.forEach(function(Le){de(Le,"display","none")}),_t.overflowedIndicatorWidth=Ie(ne.children[ne.children.length-1],!0),_t.originalTotalWidth=_t.menuItemSizes.reduce(function(Le,Re){return Le+Re},0),_t.handleResize(),de(Y,"display","none")},_t.handleResize=function(){if(_t.props.mode!=="horizontal")return;var ne=Ce.findDOMNode(Object(p.a)(_t));if(!ne)return;var ue=Ie(ne);_t.overflowedItems=[];var Y=0,te;_t.originalTotalWidth>ue+rt&&(te=-1,_t.menuItemSizes.forEach(function(be){Y+=be,Y+_t.overflowedIndicatorWidth<=ue&&(te+=1)})),_t.setState({lastVisibleIndex:te})},_t}return Object(y.a)(At,[{key:"componentDidMount",value:function(){var ne=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var ue=Ce.findDOMNode(this);if(!ue)return;this.resizeObserver=new ze.default(function(Y){Y.forEach(function(){var te=ne.cancelFrameId;cancelAnimationFrame(te),ne.cancelFrameId=requestAnimationFrame(ne.setChildrenWidthAndResize)})}),[].slice.call(ue.children).concat(ue).forEach(function(Y){ne.resizeObserver.observe(Y)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ne.resizeObserver.disconnect(),[].slice.call(ue.children).concat(ue).forEach(function(Y){ne.resizeObserver.observe(Y)}),ne.setChildrenWidthAndResize()}),this.mutationObserver.observe(ue,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(ne){var ue=this,Y=this.state.lastVisibleIndex;return(ne||[]).reduce(function(te,be,Le){var Re=be;if(ue.props.mode==="horizontal"){var $e=ue.getOverflowedSubMenuItem(be.props.eventKey,[]);Y!==void 0&&ue.props.className.indexOf("".concat(ue.props.prefixCls,"-root"))!==-1&&(Le>Y&&(Re=c.cloneElement(be,{style:{display:"none"},eventKey:"".concat(be.props.eventKey,"-hidden"),className:"".concat(et)})),Le===Y+1&&(ue.overflowedItems=ne.slice(Y+1).map(function(Wt){return c.cloneElement(Wt,{key:Wt.props.eventKey,mode:"vertical-left"})}),$e=ue.getOverflowedSubMenuItem(be.props.eventKey,ue.overflowedItems)));var gt=[].concat(Object(se.a)(te),[$e,Re]);return Le===ne.length-1&>.push(ue.getOverflowedSubMenuItem(be.props.eventKey,[],!0)),gt}return[].concat(Object(se.a)(te),[Re])},[])}},{key:"render",value:function(){var ne=this.props,ue=ne.visible,Y=ne.prefixCls,te=ne.overflowedIndicator,be=ne.mode,Le=ne.level,Re=ne.tag,$e=ne.children,gt=ne.theme,Wt=Object(ke.a)(ne,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),$t=Re;return c.createElement($t,Object.assign({},Wt),this.renderChildren($e))}}]),At}(c.Component);st.defaultProps={tag:"div",className:""};var Ve=st;function ie(Fe){return Fe.length?Fe.every(function(nt){return!!nt.props.disabled}):!0}function $(Fe,nt,At){var _t=Fe.getState();Fe.setState({activeKey:Object(g.a)(Object(g.a)({},_t.activeKey),{},Object(T.a)({},nt,At))})}function it(Fe){return Fe.eventKey||"0-menu-"}function Qe(Fe,nt){var At=nt,_t=Fe.children,ne=Fe.eventKey;if(At){var ue;if(Te(_t,function(Y,te){Y&&Y.props&&!Y.props.disabled&&At===Ge(Y,ne,te)&&(ue=!0)}),ue)return At}return At=null,Fe.defaultActiveFirst&&Te(_t,function(Y,te){!At&&Y&&!Y.props.disabled&&(At=Ge(Y,ne,te))}),At}function ye(Fe){if(Fe){var nt=this.instanceArray.indexOf(Fe);nt!==-1?this.instanceArray[nt]=Fe:this.instanceArray.push(Fe)}}var Zt=function(Fe){Object(v.a)(At,Fe);var nt=Object(h.a)(At);function At(_t){var ne;return Object(f.a)(this,At),ne=nt.call(this,_t),ne.onKeyDown=function(ue,Y){var te=ue.keyCode,be;if(ne.getFlatInstanceArray().forEach(function(Re){Re&&Re.props.active&&Re.onKeyDown&&(be=Re.onKeyDown(ue))}),be)return 1;var Le=null;return(te===O.a.UP||te===O.a.DOWN)&&(Le=ne.step(te===O.a.UP?-1:1)),Le?(ue.preventDefault(),$(ne.props.store,it(ne.props),Le.props.eventKey),typeof Y=="function"&&Y(Le),1):void 0},ne.onItemHover=function(ue){var Y=ue.key,te=ue.hover;$(ne.props.store,it(ne.props),te?Y:null)},ne.onDeselect=function(ue){ne.props.onDeselect(ue)},ne.onSelect=function(ue){ne.props.onSelect(ue)},ne.onClick=function(ue){ne.props.onClick(ue)},ne.onOpenChange=function(ue){ne.props.onOpenChange(ue)},ne.onDestroy=function(ue){ne.props.onDestroy(ue)},ne.getFlatInstanceArray=function(){return ne.instanceArray},ne.step=function(ue){var Y=ne.getFlatInstanceArray(),te=ne.props.store.getState().activeKey[it(ne.props)],be=Y.length;if(!be)return null;ue<0&&(Y=Y.concat().reverse());var Le=-1;if(Y.every(function(Wt,$t){return Wt&&Wt.props.eventKey===te?(Le=$t,!1):!0}),!ne.props.defaultActiveFirst&&Le!==-1&&ie(Y.slice(Le,be-1)))return;var Re=(Le+1)%be,$e=Re;do{var gt=Y[$e];if(!gt||gt.props.disabled)$e=($e+1)%be;else return gt}while($e!==Re);return null},ne.renderCommonMenuItem=function(ue,Y,te){var be=ne.props.store.getState(),Le=Object(p.a)(ne),Re=Le.props,$e=Ge(ue,Re.eventKey,Y),gt=ue.props;if(!gt||typeof ue.type=="string")return ue;var Wt=$e===be.activeKey,$t=Object(g.a)(Object(g.a)({mode:gt.mode||Re.mode,level:Re.level,inlineIndent:Re.inlineIndent,renderMenuItem:ne.renderMenuItem,rootPrefixCls:Re.prefixCls,index:Y,parentMenu:Re.parentMenu,manualRef:gt.disabled?void 0:Object(x.a)(ue.ref,ye.bind(Object(p.a)(ne))),eventKey:$e,active:!gt.disabled&&Wt,multiple:Re.multiple,onClick:function(Kt){(gt.onClick||Pe)(Kt),ne.onClick(Kt)},onItemHover:ne.onItemHover,motion:Re.motion,subMenuOpenDelay:Re.subMenuOpenDelay,subMenuCloseDelay:Re.subMenuCloseDelay,forceSubMenuRender:Re.forceSubMenuRender,onOpenChange:ne.onOpenChange,onDeselect:ne.onDeselect,onSelect:ne.onSelect,builtinPlacements:Re.builtinPlacements,itemIcon:gt.itemIcon||ne.props.itemIcon,expandIcon:gt.expandIcon||ne.props.expandIcon},te),{},{direction:Re.direction});return(Re.mode==="inline"||ee())&&($t.triggerSubMenuAction="click"),c.cloneElement(ue,$t)},ne.renderMenuItem=function(ue,Y,te){if(!ue)return null;var be=ne.props.store.getState(),Le={openKeys:be.openKeys,selectedKeys:be.selectedKeys,triggerSubMenuAction:ne.props.triggerSubMenuAction,subMenuKey:te};return ne.renderCommonMenuItem(ue,Y,Le)},_t.store.setState({activeKey:Object(g.a)(Object(g.a)({},_t.store.getState().activeKey),{},Object(T.a)({},_t.eventKey,Qe(_t,_t.activeKey)))}),ne.instanceArray=[],ne}return Object(y.a)(At,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(ne){return this.props.visible||ne.visible||this.props.className!==ne.className||!u()(this.props.style,ne.style)}},{key:"componentDidUpdate",value:function(ne){var ue=this.props,Y="activeKey"in ue?ue.activeKey:ue.store.getState().activeKey[it(ue)],te=Qe(ue,Y);if(te!==Y)$(ue.store,it(ue),te);else if("activeKey"in ne){var be=Qe(ne,ne.activeKey);te!==be&&$(ue.store,it(ue),te)}}},{key:"render",value:function(){var ne=this,ue=Object(S.a)({},this.props);this.instanceArray=[];var Y=_()(ue.prefixCls,ue.className,"".concat(ue.prefixCls,"-").concat(ue.mode)),te={className:Y,role:ue.role||"menu"};ue.id&&(te.id=ue.id),ue.focusable&&(te.tabIndex=0,te.onKeyDown=this.onKeyDown);var be=ue.prefixCls,Le=ue.eventKey,Re=ue.visible,$e=ue.level,gt=ue.mode,Wt=ue.overflowedIndicator,$t=ue.theme;return lt.forEach(function(Dt){return delete ue[Dt]}),delete ue.onClick,c.createElement(Ve,Object.assign({},ue,{prefixCls:be,mode:gt,tag:"ul",level:$e,theme:$t,visible:Re,overflowedIndicator:Wt},te),c.Children.map(ue.children,function(Dt,Kt){return ne.renderMenuItem(Dt,Kt,Le||"0-menu-")}))}}]),At}(c.Component);Zt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Pe};var dt=w()(Zt),ct=dt,yt=e("Kwbf");function It(Fe,nt,At){var _t=Fe.prefixCls,ne=Fe.motion,ue=Fe.defaultMotions,Y=ue===void 0?{}:ue,te=Fe.openAnimation,be=Fe.openTransitionName,Le=nt.switchingModeFromInline;if(ne)return ne;if(Object(N.a)(te)==="object"&&te)Object(yt.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof te=="string")return{motionName:"".concat(_t,"-open-").concat(te)};if(be)return{motionName:be};var Re=Y[At];return Re||(Le?null:Y.other)}var or=function(Fe){Object(v.a)(At,Fe);var nt=Object(h.a)(At);function At(_t){var ne;Object(f.a)(this,At),ne=nt.call(this,_t),ne.inlineOpenKeys=[],ne.onSelect=function(te){var be=Object(p.a)(ne),Le=be.props;if(Le.selectable){var Re=ne.store.getState(),$e=Re.selectedKeys,gt=te.key;Le.multiple?$e=$e.concat([gt]):$e=[gt],"selectedKeys"in Le||ne.store.setState({selectedKeys:$e}),Le.onSelect(Object(g.a)(Object(g.a)({},te),{},{selectedKeys:$e}))}},ne.onClick=function(te){var be=ne.getRealMenuMode(),Le=Object(p.a)(ne),Re=Le.store,$e=Le.props.onOpenChange;be!=="inline"&&!("openKeys"in ne.props)&&(Re.setState({openKeys:[]}),$e([])),ne.props.onClick(te)},ne.onKeyDown=function(te,be){ne.innerMenu.getWrappedInstance().onKeyDown(te,be)},ne.onOpenChange=function(te){var be=Object(p.a)(ne),Le=be.props,Re=ne.store.getState().openKeys.concat(),$e=!1,gt=function($t){var Dt=!1;if($t.open)Dt=Re.indexOf($t.key)===-1,Dt&&Re.push($t.key);else{var Kt=Re.indexOf($t.key);Dt=Kt!==-1,Dt&&Re.splice(Kt,1)}$e=$e||Dt};Array.isArray(te)?te.forEach(gt):gt(te),$e&&("openKeys"in ne.props||ne.store.setState({openKeys:Re}),Le.onOpenChange(Re))},ne.onDeselect=function(te){var be=Object(p.a)(ne),Le=be.props;if(Le.selectable){var Re=ne.store.getState().selectedKeys.concat(),$e=te.key,gt=Re.indexOf($e);gt!==-1&&Re.splice(gt,1),"selectedKeys"in Le||ne.store.setState({selectedKeys:Re}),Le.onDeselect(Object(g.a)(Object(g.a)({},te),{},{selectedKeys:Re}))}},ne.onMouseEnter=function(te){ne.restoreModeVerticalFromInline();var be=ne.props.onMouseEnter;be&&be(te)},ne.onTransitionEnd=function(te){var be=te.propertyName==="width"&&te.target===te.currentTarget,Le=te.target.className,Re=Object.prototype.toString.call(Le)==="[object SVGAnimatedString]"?Le.animVal:Le,$e=te.propertyName==="font-size"&&Re.indexOf("anticon")>=0;(be||$e)&&ne.restoreModeVerticalFromInline()},ne.setInnerMenu=function(te){ne.innerMenu=te},ne.isRootMenu=!0;var ue=_t.defaultSelectedKeys,Y=_t.defaultOpenKeys;return"selectedKeys"in _t&&(ue=_t.selectedKeys||[]),"openKeys"in _t&&(Y=_t.openKeys||[]),ne.store=E({selectedKeys:ue,openKeys:Y,activeKey:{"0-menu-":Qe(_t,_t.activeKey)}}),ne.state={switchingModeFromInline:!1},ne}return Object(y.a)(At,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ne){this.updateOpentKeysWhenSwitchMode(ne),this.updateMiniStore();var ue=this.props,Y=ue.siderCollapsed,te=ue.inlineCollapsed,be=ue.onOpenChange;(!ne.inlineCollapsed&&te||!ne.siderCollapsed&&Y)&&be([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(ne){var ue=this.props,Y=this.store,te=this.inlineOpenKeys,be=Y.getState(),Le={};ne.mode==="inline"&&ue.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in ue||((ue.inlineCollapsed&&!ne.inlineCollapsed||ue.siderCollapsed&&!ne.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=be.openKeys.concat(),Le.openKeys=[]),(!ue.inlineCollapsed&&ne.inlineCollapsed||!ue.siderCollapsed&&ne.siderCollapsed)&&(Le.openKeys=te,this.inlineOpenKeys=[])),Object.keys(Le).length&&Y.setState(Le)}},{key:"updateMenuDisplay",value:function(){var ne=this.props.collapsedWidth,ue=this.store,Y=this.prevOpenKeys,te=this.getInlineCollapsed()&&(ne===0||ne==="0"||ne==="0px");te?(this.prevOpenKeys=ue.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Y&&(this.store.setState({openKeys:Y}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ne=this.props.mode,ue=this.state.switchingModeFromInline,Y=this.getInlineCollapsed();return ue&&Y?"inline":Y?"vertical":ne}},{key:"getInlineCollapsed",value:function(){var ne=this.props,ue=ne.inlineCollapsed,Y=ne.siderCollapsed;return Y!==void 0?Y:ue}},{key:"restoreModeVerticalFromInline",value:function(){var ne=this.state.switchingModeFromInline;ne&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var ne=Object(g.a)({},Object(A.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),ue=this.getRealMenuMode();return ne.className+=" ".concat(ne.prefixCls,"-root"),ne.direction==="rtl"&&(ne.className+=" ".concat(ne.prefixCls,"-rtl")),ne=Object(g.a)(Object(g.a)({},ne),{},{mode:ue,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:It(this.props,this.state,ue)}),delete ne.openAnimation,delete ne.openTransitionName,c.createElement(n,{store:this.store},c.createElement(ct,Object.assign({},ne,{ref:this.setInnerMenu}),this.props.children))}}]),At}(c.Component);or.defaultProps={selectable:!0,onClick:Pe,onSelect:Pe,onOpenChange:Pe,onDeselect:Pe,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:c.createElement("span",null,"\xB7\xB7\xB7")};var Bt=or,Ae=function(Fe){Object(v.a)(At,Fe);var nt=Object(h.a)(At);function At(){var _t;return Object(f.a)(this,At),_t=nt.apply(this,arguments),_t.onKeyDown=function(ne){var ue=ne.keyCode;return ue===O.a.ENTER?(_t.onClick(ne),!0):void 0},_t.onMouseLeave=function(ne){var ue=_t.props,Y=ue.eventKey,te=ue.onItemHover,be=ue.onMouseLeave;te({key:Y,hover:!1}),be({key:Y,domEvent:ne})},_t.onMouseEnter=function(ne){var ue=_t.props,Y=ue.eventKey,te=ue.onItemHover,be=ue.onMouseEnter;te({key:Y,hover:!0}),be({key:Y,domEvent:ne})},_t.onClick=function(ne){var ue=_t.props,Y=ue.eventKey,te=ue.multiple,be=ue.onClick,Le=ue.onSelect,Re=ue.onDeselect,$e=ue.isSelected,gt={key:Y,keyPath:[Y],item:Object(p.a)(_t),domEvent:ne};be(gt),te?$e?Re(gt):Le(gt):$e||Le(gt)},_t.saveNode=function(ne){_t.node=ne},_t}return Object(y.a)(At,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var ne=this.props;ne.onDestroy&&ne.onDestroy(ne.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var ne,ue=Object(g.a)({},this.props),Y=_()(this.getPrefixCls(),ue.className,(ne={},Object(T.a)(ne,this.getActiveClassName(),!ue.disabled&&ue.active),Object(T.a)(ne,this.getSelectedClassName(),ue.isSelected),Object(T.a)(ne,this.getDisabledClassName(),ue.disabled),ne)),te=Object(g.a)(Object(g.a)({},ue.attribute),{},{title:typeof ue.title=="string"?ue.title:void 0,className:Y,role:ue.role||"menuitem","aria-disabled":ue.disabled});ue.role==="option"?te=Object(g.a)(Object(g.a)({},te),{},{role:"option","aria-selected":ue.isSelected}):(ue.role===null||ue.role==="none")&&(te.role="none");var be={onClick:ue.disabled?null:this.onClick,onMouseLeave:ue.disabled?null:this.onMouseLeave,onMouseEnter:ue.disabled?null:this.onMouseEnter},Le=Object(g.a)({},ue.style);ue.mode==="inline"&&(ue.direction==="rtl"?Le.paddingRight=ue.inlineIndent*ue.level:Le.paddingLeft=ue.inlineIndent*ue.level),lt.forEach(function($e){return delete ue[$e]}),delete ue.direction;var Re=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Re=c.createElement(this.props.itemIcon,this.props)),c.createElement("li",Object.assign({},Object(A.default)(ue,["onClick","onMouseEnter","onMouseLeave","onSelect"]),te,be,{style:Le,ref:this.saveNode}),ue.children,Re)}}]),At}(c.Component);Ae.isMenuItem=!0,Ae.defaultProps={onSelect:Pe,onMouseEnter:Pe,onMouseLeave:Pe,manualRef:Pe};var pe=w(function(Fe,nt){var At=Fe.activeKey,_t=Fe.selectedKeys,ne=nt.eventKey,ue=nt.subMenuKey;return{active:At[ue]===ne,isSelected:_t.indexOf(ne)!==-1}})(Ae),he=pe,le=function(Fe){Object(v.a)(At,Fe);var nt=Object(h.a)(At);function At(){var _t;return Object(f.a)(this,At),_t=nt.apply(this,arguments),_t.renderInnerMenuItem=function(ne){var ue=_t.props,Y=ue.renderMenuItem,te=ue.index;return Y(ne,te,_t.props.subMenuKey)},_t}return Object(y.a)(At,[{key:"render",value:function(){var ne=Object(S.a)({},this.props),ue=ne.className,Y=ue===void 0?"":ue,te=ne.rootPrefixCls,be="".concat(te,"-item-group-title"),Le="".concat(te,"-item-group-list"),Re=ne.title,$e=ne.children;return lt.forEach(function(gt){return delete ne[gt]}),delete ne.onClick,delete ne.direction,c.createElement("li",Object.assign({},ne,{className:"".concat(Y," ").concat(te,"-item-group")}),c.createElement("div",{className:be,title:typeof Re=="string"?Re:void 0},Re),c.createElement("ul",{className:Le},c.Children.map($e,this.renderInnerMenuItem)))}}]),At}(c.Component);le.isMenuItemGroup=!0,le.defaultProps={disabled:!0};var Ne=le,je=function(nt){var At=nt.className,_t=nt.rootPrefixCls,ne=nt.style;return c.createElement("li",{className:"".concat(At," ").concat(_t,"-item-divider"),style:ne})};je.defaultProps={disabled:!0,className:"",style:{}};var Ke=je,Xe=I.f=Bt},"1n7x":function(D,I,e){(function(g,f){(function(y,p){D.exports=p(e("5RHE"),e("wOnQ"))})(this,function(y,p){"use strict";y=y&&y.hasOwnProperty("default")?y.default:y,p=p&&p.hasOwnProperty("default")?p.default:p;var v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},h=Object.assign||function(A){for(var S=1;S0;null)x[C].parentNode.removeChild(x[C])}for(var _ in T.style)O.style[_]=T.style[_];return O},i=function A(S,T){for(var O=S.nodeType===3?document.createTextNode(S.nodeValue):S.cloneNode(!1),x=S.firstChild;x;x=x.nextSibling)(T===!0||x.nodeType!==1||x.nodeName!=="SCRIPT")&&O.appendChild(A(x,T));return S.nodeType===1&&(S.nodeName==="CANVAS"?(O.width=S.width,O.height=S.height,O.getContext("2d").drawImage(S,0,0)):(S.nodeName==="TEXTAREA"||S.nodeName==="SELECT")&&(O.value=S.value),O.addEventListener("load",function(){O.scrollTop=S.scrollTop,O.scrollLeft=S.scrollLeft},!0)),O},n=function(S,T){if(c(S)==="number")return S*72/96/T;var O={};for(var x in S)O[x]=S[x]*72/96/T;return O},a=function(S,T){return Math.floor(S*T/72*96)},u=typeof window!="undefined"?window:typeof g!="undefined"?g:typeof self!="undefined"?self:{};function r(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function l(A,S){return S={exports:{}},A(S,S.exports),S.exports}var t=l(function(A,S){/*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version v4.2.5+7f2b526d */(function(T,O){A.exports=O()})(u,function(){function T(dt){var ct=typeof dt;return dt!==null&&(ct==="object"||ct==="function")}function O(dt){return typeof dt=="function"}var x=void 0;Array.isArray?x=Array.isArray:x=function(ct){return Object.prototype.toString.call(ct)==="[object Array]"};var C=x,_=0,N=void 0,F=void 0,k=function(ct,yt){fe[_]=ct,fe[_+1]=yt,_+=2,_===2&&(F?F(G):Se())};function P(dt){F=dt}function j(dt){k=dt}var K=typeof window!="undefined"?window:void 0,R=K||{},B=R.MutationObserver||R.WebKitMutationObserver,U=typeof self=="undefined"&&typeof f!="undefined"&&{}.toString.call(f)==="[object process]",H=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function W(){return function(){return f.nextTick(G)}}function V(){return typeof N!="undefined"?function(){N(G)}:q()}function z(){var dt=0,ct=new B(G),yt=document.createTextNode("");return ct.observe(yt,{characterData:!0}),function(){yt.data=dt=++dt%2}}function X(){var dt=new MessageChannel;return dt.port1.onmessage=G,function(){return dt.port2.postMessage(0)}}function q(){var dt=setTimeout;return function(){return dt(G,1)}}var fe=new Array(1e3);function G(){for(var dt=0;dt<_;dt+=2){var ct=fe[dt],yt=fe[dt+1];ct(yt),fe[dt]=void 0,fe[dt+1]=void 0}_=0}function ve(){try{var dt=Function("return this")().require("vertx");return N=dt.runOnLoop||dt.runOnContext,V()}catch(ct){return q()}}var Se=void 0;U?Se=W():B?Se=z():H?Se=X():K===void 0&&typeof r=="function"?Se=ve():Se=q();function ge(dt,ct){var yt=this,It=new this.constructor(pt);It[Ge]===void 0&&et(It);var or=yt._state;if(or){var Bt=arguments[or-1];k(function(){return Rt(or,It,Bt,yt._result)})}else vt(yt,It,dt,ct);return It}function Pe(dt){var ct=this;if(dt&&typeof dt=="object"&&dt.constructor===ct)return dt;var yt=new ct(pt);return ae(yt,dt),yt}var Ge=Math.random().toString(36).substring(2);function pt(){}var Te=void 0,xe=1,lt=2,Ie={error:null};function de(){return new TypeError("You cannot resolve a promise with itself")}function ee(){return new TypeError("A promises callback cannot return that same promise.")}function se(dt){try{return dt.then}catch(ct){return Ie.error=ct,Ie}}function ke(dt,ct,yt,It){try{dt.call(ct,yt,It)}catch(or){return or}}function Ce(dt,ct,yt){k(function(It){var or=!1,Bt=ke(yt,ct,function(Ae){if(or)return;or=!0,ct!==Ae?ae(It,Ae):Oe(It,Ae)},function(Ae){if(or)return;or=!0,Ze(It,Ae)},"Settle: "+(It._label||" unknown promise"));!or&&Bt&&(or=!0,Ze(It,Bt))},dt)}function ze(dt,ct){ct._state===xe?Oe(dt,ct._result):ct._state===lt?Ze(dt,ct._result):vt(ct,void 0,function(yt){return ae(dt,yt)},function(yt){return Ze(dt,yt)})}function _e(dt,ct,yt){ct.constructor===dt.constructor&&yt===ge&&ct.constructor.resolve===Pe?ze(dt,ct):yt===Ie?(Ze(dt,Ie.error),Ie.error=null):yt===void 0?Oe(dt,ct):O(yt)?Ce(dt,ct,yt):Oe(dt,ct)}function ae(dt,ct){dt===ct?Ze(dt,de()):T(ct)?_e(dt,ct,se(ct)):Oe(dt,ct)}function me(dt){dt._onerror&&dt._onerror(dt._result),Ct(dt)}function Oe(dt,ct){if(dt._state!==Te)return;dt._result=ct,dt._state=xe,dt._subscribers.length!==0&&k(Ct,dt)}function Ze(dt,ct){if(dt._state!==Te)return;dt._state=lt,dt._result=ct,k(me,dt)}function vt(dt,ct,yt,It){var or=dt._subscribers,Bt=or.length;dt._onerror=null,or[Bt]=ct,or[Bt+xe]=yt,or[Bt+lt]=It,Bt===0&&dt._state&&k(Ct,dt)}function Ct(dt){var ct=dt._subscribers,yt=dt._state;if(ct.length===0)return;for(var It=void 0,or=void 0,Bt=dt._result,Ae=0;AeN){var k=F;F=N,N=k}}else if(A==="l"||A==="landscape"){if(A="l",N>F){var k=F;F=N,N=k}}else throw"Invalid orientation: "+A;var P={width:F,height:N,unit:S,k:_};return P};var m={toContainer:d.prototype.toContainer};d.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},d.prototype.toContainer=function(){return m.toContainer.call(this).then(function(){var T=this.prop.container,O=this.prop.pageSize.inner.px.height,x=[].concat(this.opt.pagebreak.mode),C={avoidAll:x.indexOf("avoid-all")!==-1,css:x.indexOf("css")!==-1,legacy:x.indexOf("legacy")!==-1},_={},N=this;["before","after","avoid"].forEach(function(P){var j=C.avoidAll&&P==="avoid";_[P]=j?[]:[].concat(N.opt.pagebreak[P]||[]),_[P].length>0&&(_[P]=Array.prototype.slice.call(T.querySelectorAll(_[P].join(", "))))});var F=T.querySelectorAll(".html2pdf__page-break");F=Array.prototype.slice.call(F);var k=T.querySelectorAll("*");Array.prototype.forEach.call(k,function(j){var K={before:!1,after:C.legacy&&F.indexOf(j)!==-1,avoid:C.avoidAll};if(C.css){var R=window.getComputedStyle(j),B=["always","page","left","right"],U=["avoid","avoid-page"];K={before:K.before||B.indexOf(R.breakBefore||R.pageBreakBefore)!==-1,after:K.after||B.indexOf(R.breakAfter||R.pageBreakAfter)!==-1,avoid:K.avoid||U.indexOf(R.breakInside||R.pageBreakInside)!==-1}}Object.keys(K).forEach(function(q){K[q]=K[q]||_[q].indexOf(j)!==-1});var H=j.getBoundingClientRect();if(K.avoid&&!K.before){var W=Math.floor(H.top/O),V=Math.floor(H.bottom/O),z=Math.abs(H.bottom-H.top)/O;V!==W&&z<=1&&(K.before=!0)}if(K.before){var X=o("div",{style:{display:"block",height:O-H.top%O+"px"}});j.parentNode.insertBefore(X,j)}if(K.after){var X=o("div",{style:{display:"block",height:O-H.bottom%O+"px"}});j.parentNode.insertBefore(X,j.nextSibling)}})})};var w=[],b={toContainer:d.prototype.toContainer,toPdf:d.prototype.toPdf};d.prototype.toContainer=function(){return b.toContainer.call(this).then(function(){if(this.opt.enableLinks){var T=this.prop.container,O=T.querySelectorAll("a"),x=n(T.getBoundingClientRect(),this.prop.pageSize.k);w=[],Array.prototype.forEach.call(O,function(C){for(var _=C.getClientRects(),N=0;N<_.length;N++){var F=n(_[N],this.prop.pageSize.k);F.left-=x.left,F.top-=x.top;var k=Math.floor(F.top/this.prop.pageSize.inner.height)+1,P=this.opt.margin[0]+F.top%this.prop.pageSize.inner.height,j=this.opt.margin[1]+F.left;w.push({page:k,top:P,left:j,clientRect:F,link:C})}},this)}})},d.prototype.toPdf=function(){return b.toPdf.call(this).then(function(){if(this.opt.enableLinks){w.forEach(function(O){this.prop.pdf.setPage(O.page),this.prop.pdf.link(O.left,O.top,O.clientRect.width,O.clientRect.height,{url:O.link.href})},this);var T=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(T)}})};var E=function A(S,T){var O=new A.Worker(T);return S?O.from(S).save():O};return E.Worker=d,E})}).call(this,e("yLpj"),e("Q2Ig"))},"1q3G":function(D,I,e){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=g;function g(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},"1tlw":function(D,I,e){var g=e("MBQ8"),f=g.extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(p){return p.stack=null,f.superApply(this,"getInitialData",arguments)}}),y=f;D.exports=y},"1u/T":function(D,I,e){var g=e("ProS"),f={type:"selectDataRange",event:"dataRangeSelected",update:"update"};g.registerAction(f,function(y,p){p.eachComponent({mainType:"visualMap",query:y},function(v){v.setSelected(y.selected)})})},"1vzs":function(D,I,e){"use strict";e.d(I,"a",function(){return t});var g=e("q1tI"),f=e.n(g),y=e("HQEm"),p=e.n(y),v=e("gZBC"),h=e.n(v),c=e("NAnI"),o=e.n(c),i=e("V/uB"),n=e.n(i),a=e("kbBi"),u=e.n(a),r=e("w6Tc"),l=e.n(r);function t(s){var d=s.suffixIcon,m=s.clearIcon,w=s.menuItemSelectedIcon,b=s.removeIcon,E=s.loading,A=s.multiple,S=s.prefixCls,T=m;m||(T=g.createElement(u.a,null));var O=null;if(d!==void 0)O=d;else if(E)O=g.createElement(h.a,{spin:!0});else{var x="".concat(S,"-suffix");O=function(F){var k=F.open,P=F.showSearch;return k&&P?g.createElement(l.a,{className:x}):g.createElement(p.a,{className:x})}}var C=null;w!==void 0?C=w:A?C=g.createElement(o.a,null):C=null;var _=null;return b!==void 0?_=b:_=g.createElement(n.a,null),{clearIcon:T,suffixIcon:O,itemIcon:C,removeIcon:_}}},"1xaR":function(D,I,e){var g=e("ProS"),f=e("bYtY");e("qgGe"),e("NA0q"),e("RPvy");var y=e("mOdp"),p=e("y3NT"),v=e("0/Rx");g.registerVisual(f.curry(y,"sunburst")),g.registerLayout(f.curry(p,"sunburst")),g.registerProcessor(f.curry(v,"sunburst"))},"24YM":function(D,I,e){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.SensorTabIndex=I.SensorClassName=I.SizeSensorId=void 0;var g="size-sensor-id";I.SizeSensorId=g;var f="size-sensor-object";I.SensorClassName=f;var y="-1";I.SensorTabIndex=y},"2548":function(D,I,e){var g=e("ProS"),f=e("bYtY"),y=e("6GrX"),p=e("IUWy"),v=e("IwbS"),h=e("Qxkt"),c=e("gPAo"),o=e("eRkO"),i=g.extendComponentView({type:"toolbox",render:function(a,u,r,l){var t=this.group;if(t.removeAll(),!a.get("show"))return;var s=+a.get("itemSize"),d=a.get("feature")||{},m=this._features||(this._features={}),w=[];f.each(d,function(A,S){w.push(S)}),new c(this._featureNames||[],w).add(b).update(b).remove(f.curry(b,null)).execute(),this._featureNames=w;function b(A,S){var T=w[A],O=w[S],x=d[T],C=new h(x,a,a.ecModel),_;if(l&&l.newTitle!=null&&l.featureName===T&&(x.title=l.newTitle),T&&!O){if(n(T))_={model:C,onclick:C.option.onclick,featureName:T};else{var N=p.get(T);if(!N)return;_=new N(C,u,r)}m[T]=_}else{if(_=m[O],!_)return;_.model=C,_.ecModel=u,_.api=r}if(!T&&O){_.dispose&&_.dispose(u,r);return}if(!C.get("show")||_.unusable){_.remove&&_.remove(u,r);return}E(C,_,T),C.setIconStatus=function(F,k){var P=this.option,j=this.iconPaths;P.iconStatus=P.iconStatus||{},P.iconStatus[F]=k,j[F]&&j[F].trigger(k)},_.render&&_.render(C,u,r,l)}function E(A,S,T){var O=A.getModel("iconStyle"),x=A.getModel("emphasis.iconStyle"),C=S.getIcons?S.getIcons():A.get("icon"),_=A.get("title")||{};if(typeof C=="string"){var N=C,F=_;C={},_={},C[T]=N,_[T]=F}var k=A.iconPaths={};f.each(C,function(P,j){var K=v.createIcon(P,{},{x:-s/2,y:-s/2,width:s,height:s});K.setStyle(O.getItemStyle()),K.hoverStyle=x.getItemStyle(),K.setStyle({text:_[j],textAlign:x.get("textAlign"),textBorderRadius:x.get("textBorderRadius"),textPadding:x.get("textPadding"),textFill:null});var R=a.getModel("tooltip");R&&R.get("show")&&K.attr("tooltip",f.extend({content:_[j],formatter:R.get("formatter",!0)||function(){return _[j]},formatterParams:{componentType:"toolbox",name:j,title:_[j],$vars:["name","title"]},position:R.get("position",!0)||"bottom"},R.option)),v.setHoverStyle(K),a.get("showTitle")&&(K.__title=_[j],K.on("mouseover",function(){var B=x.getItemStyle(),U=a.get("orient")==="vertical"?a.get("right")==null?"right":"left":a.get("bottom")==null?"bottom":"top";K.setStyle({textFill:x.get("textFill")||B.fill||B.stroke||"#000",textBackgroundColor:x.get("textBackgroundColor"),textPosition:x.get("textPosition")||U})}).on("mouseout",function(){K.setStyle({textFill:null,textBackgroundColor:null})})),K.trigger(A.get("iconStatus."+j)||"normal"),t.add(K),K.on("click",f.bind(S.onclick,S,u,r,j)),k[j]=K})}o.layout(t,a,r),t.add(o.makeBackground(t.getBoundingRect(),a)),t.eachChild(function(A){var S=A.__title,T=A.hoverStyle;if(T&&S){var O=y.getBoundingRect(S,y.makeFont(T)),x=A.position[0]+t.position[0],C=A.position[1]+t.position[1]+s,_=!1;C+O.height>r.getHeight()&&(T.textPosition="top",_=!0);var N=_?-5-O.height:s+8;x+O.width/2>r.getWidth()?(T.textPosition=["100%",N],T.textAlign="right"):x-O.width/2<0&&(T.textPosition=[0,N],T.textAlign="left")}})},updateView:function(a,u,r,l){f.each(this._features,function(t){t.updateView&&t.updateView(t.model,u,r,l)})},remove:function(a,u){f.each(this._features,function(r){r.remove&&r.remove(a,u)}),this.group.removeAll()},dispose:function(a,u){f.each(this._features,function(r){r.dispose&&r.dispose(a,u)})}});function n(a){return a.indexOf("my")===0}D.exports=i},"2B6p":function(D,I){function e(g,f,y){var p=g.getZoom(),v=g.getCenter(),h=f.zoom,c=g.dataToPoint(v);if(f.dx!=null&&f.dy!=null){c[0]-=f.dx,c[1]-=f.dy;var v=g.pointToData(c);g.setCenter(v)}if(h!=null){if(y){var o=y.min||0,i=y.max||Infinity;h=Math.max(Math.min(p*h,i),o)/p}g.scale[0]*=h,g.scale[1]*=h;var n=g.position,a=(f.originX-n[0])*(h-1),u=(f.originY-n[1])*(h-1);n[0]-=a,n[1]-=u,g.updateTransform();var v=g.pointToData(c);g.setCenter(v),g.setZoom(h*p)}return{center:g.getCenter(),zoom:g.getZoom()}}I.updateCenterAndZoom=e},"2BaD":function(D,I,e){"use strict";var g=e("q1tI"),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"},y=f,p=e("6VBw"),v=function(o,i){return g.createElement(p.a,Object.assign({},o,{ref:i,icon:y}))};v.displayName="CloseCircleOutlined";var h=I.a=g.forwardRef(v)},"2DNl":function(D,I,e){var g=e("IMiH"),f=e("loD1"),y=e("59Ip"),p=e("aKvl"),v=e("n1HI"),h=e("hX1E"),c=h.normalizeRadian,o=e("Sj9i"),i=e("hyiK"),n=g.CMD,a=Math.PI*2,u=1e-4;function r(S,T){return Math.abs(S-T)T&&P>x&&P>_&&P>F||P1&&s(),B=o.cubicAt(T,x,_,F,t[0]),R>1&&(U=o.cubicAt(T,x,_,F,t[1]))),R===2?WT&&F>x&&F>_||F=0&&P<=1){for(var j=0,K=o.quadraticAt(T,x,_,P),R=0;RO||F<-O)return 0;var k=Math.sqrt(O*O-F*F);l[0]=-k,l[1]=k;var P=Math.abs(x-C);if(P<1e-4)return 0;if(P%a<1e-4){x=0,C=a;var j=_?1:-1;return N>=l[0]+S&&N<=l[1]+S?j:0}if(_){var k=x;x=c(C),C=c(k)}else x=c(x),C=c(C);x>C&&(C+=a);for(var K=0,R=0;R<2;R++){var B=l[R];if(B+S>N){var U=Math.atan2(F,B),j=_?1:-1;U<0&&(U=a+U),(U>=x&&U<=C||U+a>=x&&U+a<=C)&&(U>Math.PI/2&&U1&&(O||(_+=i(N,F,k,P,x,C))),j===1&&(N=S[j],F=S[j+1],k=N,P=F);switch(K){case n.M:k=S[j++],P=S[j++],N=k,F=P;break;case n.L:if(O){if(f.containStroke(N,F,S[j],S[j+1],T,x,C))return!0}else _+=i(N,F,S[j],S[j+1],x,C)||0;N=S[j++],F=S[j++];break;case n.C:if(O){if(y.containStroke(N,F,S[j++],S[j++],S[j++],S[j++],S[j],S[j+1],T,x,C))return!0}else _+=d(N,F,S[j++],S[j++],S[j++],S[j++],S[j],S[j+1],x,C)||0;N=S[j++],F=S[j++];break;case n.Q:if(O){if(p.containStroke(N,F,S[j++],S[j++],S[j],S[j+1],T,x,C))return!0}else _+=m(N,F,S[j++],S[j++],S[j],S[j+1],x,C)||0;N=S[j++],F=S[j++];break;case n.A:var R=S[j++],B=S[j++],U=S[j++],H=S[j++],W=S[j++],V=S[j++];j+=1;var z=1-S[j++],X=Math.cos(W)*U+R,q=Math.sin(W)*H+B;j>1?_+=i(N,F,X,q,x,C):(k=X,P=q);var fe=(x-R)*H/U+R;if(O){if(v.containStroke(R,B,H,W,W+V,z,T,fe,C))return!0}else _+=w(R,B,H,W,W+V,z,fe,C);N=Math.cos(W+V)*U+R,F=Math.sin(W+V)*H+B;break;case n.R:k=N=S[j++],P=F=S[j++];var G=S[j++],ve=S[j++],X=k+G,q=P+ve;if(O){if(f.containStroke(k,P,X,P,T,x,C)||f.containStroke(X,P,X,q,T,x,C)||f.containStroke(X,q,k,q,T,x,C)||f.containStroke(k,q,k,P,T,x,C))return!0}else _+=i(X,P,X,q,x,C),_+=i(k,q,k,P,x,C);break;case n.Z:if(O){if(f.containStroke(N,F,k,P,T,x,C))return!0}else _+=i(N,F,k,P,x,C);N=k,F=P;break}}return!O&&!r(F,P)&&(_+=i(N,F,k,P,x,C)||0),_!==0}function E(S,T,O){return b(S,0,!1,T,O)}function A(S,T,O,x){return b(S,T,!0,O,x)}I.contain=E,I.containStroke=A},"2Qr1":function(D,I,e){"use strict";e.d(I,"d",function(){return r}),e.d(I,"c",function(){return t}),e.d(I,"e",function(){return s}),e.d(I,"b",function(){return w}),e.d(I,"f",function(){return b}),e.d(I,"g",function(){return E}),e.d(I,"a",function(){return A});var g=e("rePB"),f=e("KQm4"),y=e("DSFK"),p=e("25BE"),v=e("BsWD"),h=e("PYwp");function c(S){return Object(y.a)(S)||Object(p.a)(S)||Object(v.a)(S)||Object(h.a)()}var o=e("U8pU"),i=e("VTBJ"),n=e("Kwbf"),a=e("WKfj");function u(S,T){var O=S.key,x;return"value"in S&&(x=S.value),O!=null?O:x!==void 0?x:"rc-index-key-".concat(T)}function r(S){var T=[];function O(x,C){x.forEach(function(_){C||!("options"in _)?T.push({key:u(_,T.length),groupOption:C,data:_}):(T.push({key:u(_,T.length),group:!0,data:_}),O(_.options,!0))})}return O(S,!1),T}function l(S){var T=Object(i.a)({},S);return"props"in T||Object.defineProperty(T,"props",{get:function(){return Object(n.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),T}}),T}function t(S,T){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x=O.prevValueOptions,C=x===void 0?[]:x,_=new Map;return T.forEach(function(N){if(!N.group){var F=N.data;_.set(F.value,F)}}),S.map(function(N){var F=_.get(N);return F||(F=Object(i.a)({},C.find(function(k){return k._INTERNAL_OPTION_VALUE_===N}))),l(F)})}var s=function(T,O){var x=O.options,C=O.prevValue,_=O.labelInValue,N=O.optionLabelProp,F=t([T],x)[0],k={value:T},P,j=Object(a.d)(C);return _&&(P=j.find(function(K){return Object(o.a)(K)==="object"&&"value"in K?K.value===T:K.key===T})),P&&Object(o.a)(P)==="object"&&"label"in P?(k.label=P.label,F&&typeof P.label=="string"&&typeof F[N]=="string"&&P.label.trim()!==F[N].trim()&&Object(n.a)(!1,"`label` of `value` is not same as `label` in Select options.")):F&&N in F?k.label=F[N]:k.label=T,k.key=k.value,k};function d(S){return Object(a.d)(S).join("")}function m(S){return function(T,O){var x=T.toLowerCase();if("options"in O)return d(O.label).toLowerCase().includes(x);var C=O[S],_=d(C).toLowerCase();return _.includes(x)&&!O.disabled}}function w(S,T,O){var x=O.optionFilterProp,C=O.filterOption,_=[],N;return C===!1?T:(typeof C=="function"?N=C:N=m(x),T.forEach(function(F){if("options"in F){var k=N(S,F);if(k)_.push(F);else{var P=F.options.filter(function(j){return N(S,j)});P.length&&_.push(Object(i.a)(Object(i.a)({},F),{},{options:P}))}return}N(S,l(F))&&_.push(F)}),_)}function b(S,T){if(!T||!T.length)return null;var O=!1;function x(_,N){var F=c(N),k=F[0],P=F.slice(1);if(!k)return[_];var j=_.split(k);return O=O||j.length>1,j.reduce(function(K,R){return[].concat(Object(f.a)(K),Object(f.a)(x(R,P)))},[]).filter(function(K){return K})}var C=x(S,T);return O?C:null}function E(S,T){var O=t([S],T)[0];return O.disabled}function A(S,T,O,x){var C=Object(a.d)(T).slice().sort(),_=Object(f.a)(S),N=new Set;return S.forEach(function(F){F.options?F.options.forEach(function(k){N.add(k.value)}):N.add(F.value)}),C.forEach(function(F){var k=x?F.value:F;if(!N.has(k)){var P;_.push(x?(P={},Object(g.a)(P,O,F.label),Object(g.a)(P,"value",k),P):{value:k})}}),_}},"2dDv":function(D,I,e){var g=e("bYtY"),f=e("Fofx"),y=e("+TT/"),p=e("aX7z"),v=e("D1WM"),h=e("IwbS"),c=e("OELB"),o=e("72pK"),i=g.each,n=Math.min,a=Math.max,u=Math.floor,r=Math.ceil,l=c.round,t=Math.PI;function s(E,A,S){this._axesMap=g.createHashMap(),this._axesLayout={},this.dimensions=E.dimensions,this._rect,this._model=E,this._init(E,A,S)}s.prototype={type:"parallel",constructor:s,_init:function(E,A,S){var T=E.dimensions,O=E.parallelAxisIndex;i(T,function(x,C){var _=O[C],N=A.getComponent("parallelAxis",_),F=this._axesMap.set(x,new v(x,p.createScaleByModel(N),[0,0],N.get("type"),_)),k=F.type==="category";F.onBand=k&&N.get("boundaryGap"),F.inverse=N.get("inverse"),N.axis=F,F.model=N,F.coordinateSystem=N.coordinateSystem=this},this)},update:function(E,A){this._updateAxesFromSeries(this._model,E)},containPoint:function(E){var A=this._makeLayoutInfo(),S=A.axisBase,T=A.layoutBase,O=A.pixelDimIndex,x=E[1-O],C=E[O];return x>=S&&x<=S+A.axisLength&&C>=T&&C<=T+A.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(E,A){A.eachSeries(function(S){if(!E.contains(S,A))return;var T=S.getData();i(this.dimensions,function(O){var x=this._axesMap.get(O);x.scale.unionExtentFromData(T,T.mapDimension(O)),p.niceScaleExtent(x.scale,x.model)},this)},this)},resize:function(E,A){this._rect=y.getLayoutRect(E.getBoxLayoutParams(),{width:A.getWidth(),height:A.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var E=this._model,A=this._rect,S=["x","y"],T=["width","height"],O=E.get("layout"),x=O==="horizontal"?0:1,C=A[T[x]],_=[0,C],N=this.dimensions.length,F=d(E.get("axisExpandWidth"),_),k=d(E.get("axisExpandCount")||0,[0,N]),P=E.get("axisExpandable")&&N>3&&N>k&&k>1&&F>0&&C>0,j=E.get("axisExpandWindow"),K;if(j)K=d(j[1]-j[0],_),j[1]=j[0]+K;else{K=d(F*(k-1),_);var R=E.get("axisExpandCenter")||u(N/2);j=[F*R-K/2],j[1]=j[0]+K}var B=(C-K)/(N-k);B<3&&(B=0);var U=[u(l(j[0]/F,1))+1,r(l(j[1]/F,1))-1],H=B/F*j[0];return{layout:O,pixelDimIndex:x,layoutBase:A[S[x]],layoutLength:C,axisBase:A[S[1-x]],axisLength:A[T[1-x]],axisExpandable:P,axisExpandWidth:F,axisCollapseWidth:B,axisExpandWindow:j,axisCount:N,winInnerIndices:U,axisExpandWindow0Pos:H}},_layoutAxes:function(){var E=this._rect,A=this._axesMap,S=this.dimensions,T=this._makeLayoutInfo(),O=T.layout;A.each(function(x){var C=[0,T.axisLength],_=x.inverse?1:0;x.setExtent(C[_],C[1-_])}),i(S,function(x,C){var _=(T.axisExpandable?w:m)(C,T),N={horizontal:{x:_.position,y:T.axisLength},vertical:{x:0,y:_.position}},F={horizontal:t/2,vertical:0},k=[N[O].x+E.x,N[O].y+E.y],P=F[O],j=f.create();f.rotate(j,j,P),f.translate(j,j,k),this._axesLayout[x]={position:k,rotation:P,transform:j,axisNameAvailableWidth:_.axisNameAvailableWidth,axisLabelShow:_.axisLabelShow,nameTruncateMaxWidth:_.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(E){return this._axesMap.get(E)},dataToPoint:function(E,A){return this.axisCoordToPoint(this._axesMap.get(A).dataToCoord(E),A)},eachActiveState:function(E,A,S,T){S==null&&(S=0),T==null&&(T=E.count());var O=this._axesMap,x=this.dimensions,C=[],_=[];g.each(x,function(B){C.push(E.mapDimension(B)),_.push(O.get(B).model)});for(var N=this.hasAxisBrushed(),F=S;FO*(1-k[0])?(N="jump",_=C-O*(1-k[2])):(_=C-O*k[1])>=0&&(_=C-O*(1-k[1]))<=0&&(_=0),_*=A.axisExpandWidth/F,_?o(_,T,x,"all"):N="none";else{var O=T[1]-T[0],j=x[1]*C/O;T=[a(0,j-O/2)],T[1]=n(x[1],T[0]+O),T[0]=T[1]-O}return{axisExpandWindow:T,behavior:N}}};function d(E,A){return n(a(E,A[0]),A[1])}function m(E,A){var S=A.layoutLength/(A.axisCount-1);return{position:S*E,axisNameAvailableWidth:S,axisLabelShow:!0}}function w(E,A){var S=A.layoutLength,T=A.axisExpandWidth,O=A.axisCount,x=A.axisCollapseWidth,C=A.winInnerIndices,_,N=x,F=!1,k;return E1&&arguments[1]!==void 0?arguments[1]:1,Ne=$.length,je=0;je1&&arguments[1]!==void 0?arguments[1]:!1;return Object(U.a)(de).map(function(se,ke){if(!r.isValidElement(se)||!se.type)return null;var Ce=se.type.isSelectOptGroup,ze=se.key,_e=se.props,ae=_e.children,me=Object(A.a)(_e,["children"]);return ee||!Ce?H(se):Object(B.a)(Object(B.a)({key:"__RC_SELECT_GRP__".concat(ze===null?ke:ze,"__"),label:ze},me),{},{options:W(ae)})}).filter(function(se){return se})}var V=e("2Qr1"),z=e("qNPg"),X=e("U8pU"),q=e("Kwbf"),fe=e("WKfj");function G(de){var ee=de.mode,se=de.options,ke=de.children,Ce=de.backfill,ze=de.allowClear,_e=de.placeholder,ae=de.getInputElement,me=de.showSearch,Oe=de.onSearch,Ze=de.defaultOpen,vt=de.autoFocus,Ct=de.labelInValue,Be=de.value,Rt=de.inputValue,He=de.optionLabelProp,wt=ee==="multiple"||ee==="tags",Ye=me!==void 0?me:wt||ee==="combobox",et=se||W(ke);if(Object(q.a)(ee!=="tags"||et.every(function(ie){return!ie.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ee==="tags"||ee==="combobox"){var rt=et.some(function(ie){return ie.options?ie.options.some(function($){return typeof("value"in $?$.value:$.key)=="number"}):typeof("value"in ie?ie.value:ie.key)=="number"});Object(q.a)(!rt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(q.a)(ee!=="combobox"||!He,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(q.a)(ee==="combobox"||!Ce,"`backfill` only works with `combobox` mode."),Object(q.a)(ee==="combobox"||!ae,"`getInputElement` only work with `combobox` mode."),Object(q.b)(ee!=="combobox"||!ae||!ze||!_e,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Oe&&!Ye&&ee!=="combobox"&&ee!=="tags"&&Object(q.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(q.b)(!Ze||vt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Be!=null){var st=Object(fe.d)(Be);Object(q.a)(!Ct||st.every(function(ie){return Object(X.a)(ie)==="object"&&("key"in ie||"value"in ie)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(q.a)(!wt||Array.isArray(Be),"`value` should be array when `mode` is `multiple` or `tags`")}if(ke){var Ve=null;Object(U.a)(ke).some(function(ie){if(!r.isValidElement(ie)||!ie.type)return!1;var $=ie.type;if($.isSelectOption)return!1;if($.isSelectOptGroup){var it=Object(U.a)(ie.props.children).every(function(Qe){return!r.isValidElement(Qe)||!ie.type||Qe.type.isSelectOption?!0:(Ve=Qe.type,!1)});return!it}return Ve=$,!0}),Ve&&Object(q.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ve.displayName||Ve.name||Ve,"`.")),Object(q.a)(Rt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var ve=G,Se=Object(z.a)({prefixCls:"rc-select",components:{optionList:k},convertChildrenToData:W,flattenOptions:V.d,getLabeledValue:V.e,filterOptions:V.b,isValueDisabled:V.g,findValueOption:V.c,warningProps:ve,fillOptionsWithMissingValue:V.a}),ge=function(de){Object(w.a)(se,de);var ee=Object(b.a)(se);function se(){var ke;return Object(d.a)(this,se),ke=ee.apply(this,arguments),ke.selectRef=r.createRef(),ke.focus=function(){ke.selectRef.current.focus()},ke.blur=function(){ke.selectRef.current.blur()},ke}return Object(m.a)(se,[{key:"render",value:function(){return r.createElement(Se,Object.assign({ref:this.selectRef},this.props))}}]),se}(r.Component);ge.Option=j,ge.OptGroup=R;var Pe=ge,Ge=Pe,pt=e("H84U"),Te=e("1vzs"),xe=e("3Nzz"),lt=function(de){n()(se,de);var ee=u()(se);function se(){var ke;return h()(this,se),ke=ee.apply(this,arguments),ke.selectRef=r.createRef(),ke.focus=function(){ke.selectRef.current&&ke.selectRef.current.focus()},ke.blur=function(){ke.selectRef.current&&ke.selectRef.current.blur()},ke.getMode=function(){var Ce=ke.props.mode;return Ce==="combobox"?void 0:Ce===se.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":Ce},ke.renderSelect=function(Ce){var ze=Ce.getPopupContainer,_e=Ce.getPrefixCls,ae=Ce.renderEmpty,me=Ce.direction,Oe=Ce.virtual,Ze=Ce.dropdownMatchSelectWidth,vt=ke.props,Ct=vt.prefixCls,Be=vt.notFoundContent,Rt=vt.className,He=vt.size,wt=vt.listHeight,Ye=wt===void 0?256:wt,et=vt.listItemHeight,rt=et===void 0?24:et,st=vt.getPopupContainer,Ve=vt.dropdownClassName,ie=vt.bordered,$=_e("select",Ct),it=ke.getMode(),Qe=it==="multiple"||it==="tags",ye;Be!==void 0?ye=Be:it==="combobox"?ye=null:ye=ae("Select");var Zt=Object(Te.a)(p()(p()({},ke.props),{multiple:Qe,prefixCls:$})),dt=Zt.suffixIcon,ct=Zt.itemIcon,yt=Zt.removeIcon,It=Zt.clearIcon,or=Object(l.default)(ke.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),Bt=s()(Ve,f()({},"".concat($,"-dropdown-").concat(me),me==="rtl"));return r.createElement(xe.b.Consumer,null,function(Ae){var pe,he=He||Ae,le=s()(Rt,(pe={},f()(pe,"".concat($,"-lg"),he==="large"),f()(pe,"".concat($,"-sm"),he==="small"),f()(pe,"".concat($,"-rtl"),me==="rtl"),f()(pe,"".concat($,"-borderless"),!ie),pe));return r.createElement(Ge,p()({ref:ke.selectRef,virtual:Oe,dropdownMatchSelectWidth:Ze},or,{listHeight:Ye,listItemHeight:rt,mode:it,prefixCls:$,direction:me,inputIcon:dt,menuItemSelectedIcon:ct,removeIcon:yt,clearIcon:It,notFoundContent:ye,className:le,getPopupContainer:st||ze,dropdownClassName:Bt}))})},ke}return o()(se,[{key:"render",value:function(){return r.createElement(pt.a,null,this.renderSelect)}}]),se}(r.Component);lt.Option=j,lt.OptGroup=R,lt.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",lt.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var Ie=I.a=lt},"2fw6":function(D,I,e){var g=e("y+Vt"),f=g.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(p,v,h){h&&p.moveTo(v.cx+v.r,v.cy),p.arc(v.cx,v.cy,v.r,0,Math.PI*2,!0)}});D.exports=f},"2gN3":function(D,I,e){var g=e("Kz5y"),f=g["__core-js_shared__"];D.exports=f},"2jpz":function(D,I,e){"use strict";e.d(I,"a",function(){return m});var g=e("cDf5"),f=e.n(g),y=e("q1tI"),p=e.n(y),v=e("TSYQ"),h=e.n(v),c=e("gZBC"),o=e.n(c),i=e("vk+C"),n=e.n(i),a=e("pG52"),u=e.n(a),r=e("Csr3"),l=e.n(r),t=e("e5VY"),s=e.n(t),d=e("0n0R");function m(w,b,E,A){var S=A.isLeaf,T=A.expanded,O=A.loading;if(O)return y.createElement(o.a,{className:"".concat(w,"-switcher-loading-icon")});var x;if(E&&f()(E)==="object"&&(x=E.showLeafIcon),S)return E?f()(E)==="object"&&!x?y.createElement("span",{className:"".concat(w,"-switcher-leaf-line")}):y.createElement(n.a,{className:"".concat(w,"-switcher-line-icon")}):null;var C="".concat(w,"-switcher-icon");return Object(d.b)(b)?Object(d.a)(b,{className:h()(b.props.className||"",C)}):b||(E?T?y.createElement(u.a,{className:"".concat(w,"-switcher-line-icon")}):y.createElement(l.a,{className:"".concat(w,"-switcher-line-icon")}):y.createElement(s.a,{className:C}))}},"2oIt":function(D,I,e){"use strict";Object.defineProperty(I,"__esModule",{value:!0});var g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};I.default=g},"2uGb":function(D,I,e){var g=e("ProS");e("ko1b"),e("s2lz"),e("RBEP");var f=e("kMLO"),y=e("nKiI");g.registerVisual(f),g.registerLayout(y)},"2w7y":function(D,I,e){var g=e("ProS");e("qMZE"),e("g0SD"),g.registerPreprocessor(function(f){f.markPoint=f.markPoint||{}})},"33Ds":function(D,I,e){var g=e("ProS"),f=e("b9oc"),y=e("Kagy"),p=e("IUWy"),v=y.toolbox.restore;function h(i){this.model=i}h.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:v.title};var c=h.prototype;c.onclick=function(i,n,a){f.clear(i),n.dispatchAction({type:"restore",from:this.uid})},p.register("restore",h),g.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(i,n){n.resetOption("recreate")});var o=h;D.exports=o},"34/K":function(D,I,e){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;function g(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function f(v,h){for(var c=0;c>0&3)*255/3,E[A*4+1]=(m[w+A]>>2&3)*255/3,E[A*4+2]=(m[w+A]>>4&3)*255/3,E[A*4+4]=0;m=E,w=0}return u.blitImage(c,s,i,d,m,w),a.rQskipBytes(d*t),this._lines-=d,!(this._lines>0)}}]),v}();I.default=p},"3690":function(D,I,e){"use strict";function g(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g=function(a){return typeof a}:g=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},g(i)}Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var f=p(e("Lo0S"));function y(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return y=function(){return i},i}function p(i){if(i&&i.__esModule)return i;if(i===null||g(i)!=="object"&&typeof i!="function")return{default:i};var n=y();if(n&&n.has(i))return n.get(i);var a={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r)){var l=u?Object.getOwnPropertyDescriptor(i,r):null;l&&(l.get||l.set)?Object.defineProperty(a,r,l):a[r]=i[r]}return a.default=i,n&&n.set(i,a),a}function v(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function h(i,n){for(var a=0;a0;){var m=1;if(t.rQwait("HEXTILE",m))return!1;var w=t.rQ,b=t.rQi,E=w[b];if(E>30)throw new Error("Illegal hextile subencoding (subencoding: "+E+")");var A=this._totalTiles-this._tiles,S=A%this._tilesX,T=Math.floor(A/this._tilesX),O=a+S*16,x=u+T*16,C=Math.min(16,a+r-O),_=Math.min(16,u+l-x);if(E&1)m+=C*_*4;else if(E&2&&(m+=4),E&4&&(m+=4),E&8){if(m++,t.rQwait("HEXTILE",m))return!1;var N=w[b+m-1];E&16?m+=N*(4+2):m+=N*2}if(t.rQwait("HEXTILE",m))return!1;if(b++,E===0)this._lastsubencoding&1?f.Debug(" Ignoring blank after RAW"):s.fillRect(O,x,C,_,this._background);else if(E&1)s.blitImage(O,x,C,_,w,b),b+=m-1;else{if(E&2&&(this._background=[w[b],w[b+1],w[b+2],w[b+3]],b+=4),E&4&&(this._foreground=[w[b],w[b+1],w[b+2],w[b+3]],b+=4),s.startTile(O,x,C,_,this._background),E&8){var F=w[b];b++;for(var k=0;k>4,R=j&15,B=w[b];b++;var U=(B>>4)+1,H=(B&15)+1;s.subTile(K,R,U,H,P)}}s.finishTile()}t.rQi=b,this._lastsubencoding=E,this._tiles--}return!0}}]),i}();I.default=o},"3A9y":function(D,I){function e(g){return this.__data__.has(g)}D.exports=e},"3C/r":function(D,I){var e=function(y,p){this.image=y,this.repeat=p,this.type="pattern"};e.prototype.getCanvasPattern=function(f){return f.createPattern(this.image,this.repeat||"repeat")};var g=e;D.exports=g},"3CBa":function(D,I,e){var g=e("hydK"),f=g.createElement,y=e("bYtY"),p=e("SUKs"),v=e("y+Vt"),h=e("Dagg"),c=e("dqUG"),o=e("DBLp"),i=e("sW+o"),n=e("n6Mw"),a=e("vKoX"),u=e("P47w"),r=u.path,l=u.image,t=u.text;function s(C){return parseInt(C,10)}function d(C){return C instanceof v?r:C instanceof h?l:C instanceof c?t:r}function m(C,_){return _&&C&&_.parentNode!==C}function w(C,_,N){if(m(C,_)&&N){var F=N.nextSibling;F?C.insertBefore(_,F):C.appendChild(_)}}function b(C,_){if(m(C,_)){var N=C.firstChild;N?C.insertBefore(_,N):C.appendChild(_)}}function E(C,_){_&&C&&_.parentNode===C&&C.removeChild(_)}function A(C){return C.__textSvgEl}function S(C){return C.__svgEl}var T=function(_,N,F,k){this.root=_,this.storage=N,this._opts=F=y.extend({},F||{});var P=f("svg");P.setAttribute("xmlns","http://www.w3.org/2000/svg"),P.setAttribute("version","1.1"),P.setAttribute("baseProfile","full"),P.style.cssText="user-select:none;position:absolute;left:0;top:0;";var j=f("g");P.appendChild(j);var K=f("g");P.appendChild(K),this.gradientManager=new i(k,K),this.clipPathManager=new n(k,K),this.shadowManager=new a(k,K);var R=document.createElement("div");R.style.cssText="overflow:hidden;position:relative",this._svgDom=P,this._svgRoot=K,this._backgroundRoot=j,this._viewport=R,_.appendChild(R),R.appendChild(P),this.resize(F.width,F.height),this._visibleList=[]};T.prototype={constructor:T,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var _=this.getViewportRoot();if(_)return{offsetLeft:_.offsetLeft||0,offsetTop:_.offsetTop||0}},refresh:function(){var _=this.storage.getDisplayList(!0);this._paintList(_)},setBackgroundColor:function(_){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var N=f("rect");N.setAttribute("width",this.getWidth()),N.setAttribute("height",this.getHeight()),N.setAttribute("x",0),N.setAttribute("y",0),N.setAttribute("id",0),N.style.fill=_,this._backgroundRoot.appendChild(N),this._backgroundNode=N},_paintList:function(_){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var N=this._svgRoot,F=this._visibleList,k=_.length,P=[],j;for(j=0;j=0;--K)if(j[K]===P)return!0;return!1}),F}else return null;else return F[0]},resize:function(_,N){var F=this._viewport;F.style.display="none";var k=this._opts;if(_!=null&&(k.width=_),N!=null&&(k.height=N),_=this._getSize(0),N=this._getSize(1),F.style.display="",this._width!==_||this._height!==N){this._width=_,this._height=N;var P=F.style;P.width=_+"px",P.height=N+"px";var j=this._svgDom;j.setAttribute("width",_),j.setAttribute("height",N)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",_),this._backgroundNode.setAttribute("height",N))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(_){var N=this._opts,F=["width","height"][_],k=["clientWidth","clientHeight"][_],P=["paddingLeft","paddingTop"][_],j=["paddingRight","paddingBottom"][_];if(N[F]!=null&&N[F]!=="auto")return parseFloat(N[F]);var K=this.root,R=document.defaultView.getComputedStyle(K);return(K[k]||s(R[F])||s(K.style[F]))-(s(R[P])||0)-(s(R[j])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var _=encodeURIComponent(this._svgDom.outerHTML.replace(/> \r<`));return"data:image/svg+xml;charset=UTF-8,"+_}};function O(C){return function(){p('In SVG mode painter not support method "'+C+'"')}}y.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(C){T.prototype[C]=O(C)});var x=T;D.exports=x},"3Fdi":function(D,I){var e=Function.prototype,g=e.toString;function f(y){if(y!=null){try{return g.call(y)}catch(p){}try{return y+""}catch(p){}}return""}D.exports=f},"3LNs":function(D,I,e){var g=e("bYtY"),f=e("Yl7c"),y=e("IwbS"),p=e("zTMp"),v=e("YH21"),h=e("iLNv"),c=e("4NO4"),o=c.makeInner,i=o(),n=g.clone,a=g.bind;function u(){}u.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(w,b,E,A){var S=b.get("value"),T=b.get("status");if(this._axisModel=w,this._axisPointerModel=b,this._api=E,!A&&this._lastValue===S&&this._lastStatus===T)return;this._lastValue=S,this._lastStatus=T;var O=this._group,x=this._handle;if(!T||T==="hide"){O&&O.hide(),x&&x.hide();return}O&&O.show(),x&&x.show();var C={};this.makeElOption(C,S,w,b,E);var _=C.graphicKey;_!==this._lastGraphicKey&&this.clear(E),this._lastGraphicKey=_;var N=this._moveAnimation=this.determineAnimation(w,b);if(!O)O=this._group=new y.Group,this.createPointerEl(O,C,w,b),this.createLabelEl(O,C,w,b),E.getZr().add(O);else{var F=g.curry(r,b,N);this.updatePointerEl(O,C,F,b),this.updateLabelEl(O,C,F,b)}d(O,b,!0),this._renderHandle(S)},remove:function(w){this.clear(w)},dispose:function(w){this.clear(w)},determineAnimation:function(w,b){var E=b.get("animation"),A=w.axis,S=A.type==="category",T=b.get("snap");if(!T&&!S)return!1;if(E==="auto"||E==null){var O=this.animationThreshold;if(S&&A.getBandWidth()>O)return!0;if(T){var x=p.getAxisInfo(w).seriesDataCount,C=A.getExtent();return Math.abs(C[0]-C[1])/x>O}return!1}return E===!0},makeElOption:function(w,b,E,A,S){},createPointerEl:function(w,b,E,A){var S=b.pointer;if(S){var T=i(w).pointerEl=new y[S.type](n(b.pointer));w.add(T)}},createLabelEl:function(w,b,E,A){if(b.label){var S=i(w).labelEl=new y.Rect(n(b.label));w.add(S),t(S,A)}},updatePointerEl:function(w,b,E){var A=i(w).pointerEl;A&&b.pointer&&(A.setStyle(b.pointer.style),E(A,{shape:b.pointer.shape}))},updateLabelEl:function(w,b,E,A){var S=i(w).labelEl;S&&(S.setStyle(b.label.style),E(S,{shape:b.label.shape,position:b.label.position}),t(S,A))},_renderHandle:function(w){if(this._dragging||!this.updateHandleTransform)return;var b=this._axisPointerModel,E=this._api.getZr(),A=this._handle,S=b.getModel("handle"),T=b.get("status");if(!S.get("show")||!T||T==="hide"){A&&E.remove(A),this._handle=null;return}var O;this._handle||(O=!0,A=this._handle=y.createIcon(S.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(_){v.stop(_.event)},onmousedown:a(this._onHandleDragMove,this,0,0),drift:a(this._onHandleDragMove,this),ondragend:a(this._onHandleDragEnd,this)}),E.add(A)),d(A,b,!1);var x=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];A.setStyle(S.getItemStyle(null,x));var C=S.get("size");g.isArray(C)||(C=[C,C]),A.attr("scale",[C[0]/2,C[1]/2]),h.createOrUpdate(this,"_doDispatchAxisPointer",S.get("throttle")||0,"fixRate"),this._moveHandleToValue(w,O)},_moveHandleToValue:function(w,b){r(this._axisPointerModel,!b&&this._moveAnimation,this._handle,s(this.getHandleTransform(w,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(w,b){var E=this._handle;if(!E)return;this._dragging=!0;var A=this.updateHandleTransform(s(E),[w,b],this._axisModel,this._axisPointerModel);this._payloadInfo=A,E.stopAnimation(),E.attr(s(A)),i(E).lastProp=null,this._doDispatchAxisPointer()},_doDispatchAxisPointer:function(){var w=this._handle;if(!w)return;var b=this._payloadInfo,E=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:b.cursorPoint[0],y:b.cursorPoint[1],tooltipOption:b.tooltipOption,axesInfo:[{axisDim:E.axis.dim,axisIndex:E.componentIndex}]})},_onHandleDragEnd:function(w){this._dragging=!1;var b=this._handle;if(!b)return;var E=this._axisPointerModel.get("value");this._moveHandleToValue(E),this._api.dispatchAction({type:"hideTip"})},getHandleTransform:null,updateHandleTransform:null,clear:function(w){this._lastValue=null,this._lastStatus=null;var b=w.getZr(),E=this._group,A=this._handle;b&&E&&(this._lastGraphicKey=null,E&&b.remove(E),A&&b.remove(A),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(w,b,E){return E=E||0,{x:w[E],y:w[1-E],width:b[E],height:b[1-E]}}},u.prototype.constructor=u;function r(w,b,E,A){l(i(E).lastProp,A)||(i(E).lastProp=A,b?y.updateProps(E,A,w):(E.stopAnimation(),E.attr(A)))}function l(w,b){if(g.isObject(w)&&g.isObject(b)){var E=!0;return g.each(b,function(A,S){E=E&&l(w[S],A)}),!!E}else return w===b}function t(w,b){w[b.get("label.show")?"show":"hide"]()}function s(w){return{position:w.position.slice(),rotation:w.rotation||0}}function d(w,b,E){var A=b.get("z"),S=b.get("zlevel");w&&w.traverse(function(T){T.type!=="group"&&(A!=null&&(T.z=A),S!=null&&(T.zlevel=S),T.silent=E)})}f.enableClassExtend(u);var m=u;D.exports=m},"3OrL":function(D,I,e){var g=e("bYtY"),f=e("6Ic6"),y=e("IwbS"),p=e("y+Vt"),v=["itemStyle"],h=["emphasis","itemStyle"],c=f.extend({type:"boxplot",render:function(r,l,t){var s=r.getData(),d=this.group,m=this._data;this._data||d.removeAll();var w=r.get("layout")==="horizontal"?1:0;s.diff(m).add(function(b){if(s.hasValue(b)){var E=s.getItemLayout(b),A=i(E,s,b,w,!0);s.setItemGraphicEl(b,A),d.add(A)}}).update(function(b,E){var A=m.getItemGraphicEl(E);if(!s.hasValue(b)){d.remove(A);return}var S=s.getItemLayout(b);A?n(S,A,s,b):A=i(S,s,b,w),d.add(A),s.setItemGraphicEl(b,A)}).remove(function(b){var E=m.getItemGraphicEl(b);E&&d.remove(E)}).execute(),this._data=s},remove:function(r){var l=this.group,t=this._data;this._data=null,t&&t.eachItemGraphicEl(function(s){s&&l.remove(s)})},dispose:g.noop}),o=p.extend({type:"boxplotBoxPath",shape:{},buildPath:function(r,l){var t=l.points,s=0;for(r.moveTo(t[s][0],t[s][1]),s++;s<4;s++)r.lineTo(t[s][0],t[s][1]);for(r.closePath();s=0)continue;if(!Object.prototype.propertyIsEnumerable.call(V,q))continue;X[q]=V[q]}}return X}function E(V,z){if(V==null)return{};var X={},q=Object.keys(V),fe,G;for(G=0;G=0)continue;X[fe]=V[fe]}return X}var A=function(z,X){var q=z.overlayClassName,fe=z.trigger,G=fe===void 0?["hover"]:fe,ve=z.mouseEnterDelay,Se=ve===void 0?0:ve,ge=z.mouseLeaveDelay,Pe=ge===void 0?.1:ge,Ge=z.overlayStyle,pt=z.prefixCls,Te=pt===void 0?"rc-tooltip":pt,xe=z.children,lt=z.onVisibleChange,Ie=z.afterVisibleChange,de=z.transitionName,ee=z.animation,se=z.placement,ke=se===void 0?"right":se,Ce=z.align,ze=Ce===void 0?{}:Ce,_e=z.destroyTooltipOnHide,ae=_e===void 0?!1:_e,me=z.defaultVisible,Oe=z.getTooltipContainer,Ze=z.overlayInnerStyle,vt=b(z,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),Ct=Object(c.useRef)(null);Object(c.useImperativeHandle)(X,function(){return Ct.current});var Be=m({},vt);"visible"in z&&(Be.popupVisible=z.visible);var Rt=function(){var rt=z.arrowContent,st=rt===void 0?null:rt,Ve=z.overlay,ie=z.id;return[o.a.createElement("div",{className:"".concat(Te,"-arrow"),key:"arrow"},st),o.a.createElement(t,{key:"content",prefixCls:Te,id:ie,overlay:Ve,overlayInnerStyle:Ze})]},He=!1,wt=!1;if(typeof ae=="boolean")He=ae;else if(ae&&s(ae)==="object"){var Ye=ae.keepParent;He=Ye===!0,wt=Ye===!1}return o.a.createElement(i.a,Object.assign({popupClassName:q,prefixCls:Te,popup:Rt,action:G,builtinPlacements:u,popupPlacement:ke,ref:Ct,popupAlign:ze,getPopupContainer:Oe,onPopupVisibleChange:lt,afterPopupVisibleChange:Ie,popupTransitionName:de,popupAnimation:ee,defaultPopupVisible:me,destroyPopupOnHide:He,autoDestroy:wt,mouseLeaveDelay:Pe,popupStyle:Ge,mouseEnterDelay:Se},Be),xe)},S=Object(c.forwardRef)(A),T=S,O=e("TSYQ"),x=e.n(O),C={adjustX:1,adjustY:1},_={adjustX:0,adjustY:0},N=[0,0];function F(V){return typeof V=="boolean"?V?C:_:h()(h()({},_),V)}function k(V){var z=V.arrowWidth,X=z===void 0?5:z,q=V.horizontalArrowShift,fe=q===void 0?16:q,G=V.verticalArrowShift,ve=G===void 0?8:G,Se=V.autoAdjustOverflow,ge={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(fe+X),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(ve+X)]},topRight:{points:["br","tc"],offset:[fe+X,-4]},rightTop:{points:["tl","cr"],offset:[4,-(ve+X)]},bottomRight:{points:["tr","bc"],offset:[fe+X,4]},rightBottom:{points:["bl","cr"],offset:[4,ve+X]},bottomLeft:{points:["tl","bc"],offset:[-(fe+X),4]},leftBottom:{points:["br","cl"],offset:[-4,ve+X]}};return Object.keys(ge).forEach(function(Pe){ge[Pe]=V.arrowPointAtCenter?h()(h()({},ge[Pe]),{overflow:F(Se),targetOffset:N}):h()(h()({},u[Pe]),{overflow:F(Se)}),ge[Pe].ignoreShake=!0}),ge}var P=e("0n0R"),j=e("H84U"),K=e("09Wf"),R=function(z,X){var q={},fe=h()({},z);return X.forEach(function(G){z&&G in z&&(q[G]=z[G],delete fe[G])}),{picked:q,omitted:fe}},B=new RegExp("^(".concat(K.a.join("|"),")(-inverse)?$"));function U(V,z){var X=V.type;if((X.__ANT_BUTTON===!0||X.__ANT_SWITCH===!0||X.__ANT_CHECKBOX===!0||V.type==="button")&&V.props.disabled){var q=R(V.props.style,["position","left","right","top","bottom","float","display","zIndex"]),fe=q.picked,G=q.omitted,ve=h()(h()({display:"inline-block"},fe),{cursor:"not-allowed",width:V.props.block?"100%":null}),Se=h()(h()({},G),{pointerEvents:"none"}),ge=Object(P.a)(V,{style:Se,className:null});return c.createElement("span",{style:ve,className:x()(V.props.className,"".concat(z,"-disabled-compatible-wrapper"))},ge)}return V}var H=c.forwardRef(function(V,z){var X,q=c.useContext(j.b),fe=q.getPopupContainer,G=q.getPrefixCls,ve=q.direction,Se=c.useState(!!V.visible||!!V.defaultVisible),ge=p()(Se,2),Pe=ge[0],Ge=ge[1];c.useEffect(function(){"visible"in V&&Ge(V.visible)},[V.visible]);var pt=function(){var Ye=V.title,et=V.overlay;return!Ye&&!et&&Ye!==0},Te=function(Ye){"visible"in V||Ge(pt()?!1:Ye),V.onVisibleChange&&!pt()&&V.onVisibleChange(Ye)},xe=function(){var Ye=V.builtinPlacements,et=V.arrowPointAtCenter,rt=V.autoAdjustOverflow;return Ye||k({arrowPointAtCenter:et,autoAdjustOverflow:rt})},lt=function(Ye,et){var rt=xe(),st=Object.keys(rt).filter(function($){return rt[$].points[0]===et.points[0]&&rt[$].points[1]===et.points[1]})[0];if(!st)return;var Ve=Ye.getBoundingClientRect(),ie={top:"50%",left:"50%"};st.indexOf("top")>=0||st.indexOf("Bottom")>=0?ie.top="".concat(Ve.height-et.offset[1],"px"):(st.indexOf("Top")>=0||st.indexOf("bottom")>=0)&&(ie.top="".concat(-et.offset[1],"px")),st.indexOf("left")>=0||st.indexOf("Right")>=0?ie.left="".concat(Ve.width-et.offset[0],"px"):(st.indexOf("right")>=0||st.indexOf("Left")>=0)&&(ie.left="".concat(-et.offset[0],"px")),Ye.style.transformOrigin="".concat(ie.left," ").concat(ie.top)},Ie=function(){var Ye=V.title,et=V.overlay;return Ye===0?Ye:et||Ye||""},de=V.prefixCls,ee=V.openClassName,se=V.getPopupContainer,ke=V.getTooltipContainer,Ce=V.overlayClassName,ze=V.color,_e=V.overlayInnerStyle,ae=V.children,me=G("tooltip",de),Oe=Pe;!("visible"in V)&&pt()&&(Oe=!1);var Ze=U(Object(P.b)(ae)?ae:c.createElement("span",null,ae),me),vt=Ze.props,Ct=x()(vt.className,f()({},ee||"".concat(me,"-open"),!0)),Be=x()(Ce,(X={},f()(X,"".concat(me,"-rtl"),ve==="rtl"),f()(X,"".concat(me,"-").concat(ze),ze&&B.test(ze)),X)),Rt,He;return ze&&!B.test(ze)&&(Rt=h()(h()({},_e),{background:ze}),He={background:ze}),c.createElement(T,h()({},V,{prefixCls:me,overlayClassName:Be,getTooltipContainer:se||ke||fe,ref:z,builtinPlacements:xe(),overlay:Ie(),visible:Oe,onVisibleChange:Te,onPopupAlign:lt,overlayInnerStyle:Rt,arrowContent:c.createElement("span",{className:"".concat(me,"-arrow-content"),style:He})}),Oe?Object(P.a)(Ze,{className:Ct}):Ze)});H.displayName="Tooltip",H.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var W=I.a=H},"3TkU":function(D,I,e){e("aTJb"),e("OlYY"),e("fc+c"),e("QUw5"),e("Swgg"),e("LBfv"),e("noeP")},"3X6L":function(D,I,e){var g=e("bYtY"),f=e("7a+S"),y=e("OKJ2"),p=f.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});g.mixin(p,y);var v=p;D.exports=v},"3e3G":function(D,I,e){var g=e("bYtY"),f=e("QuXc"),y=function(h,c,o,i,n){this.x=h==null?.5:h,this.y=c==null?.5:c,this.r=o==null?.5:o,this.type="radial",this.global=n||!1,f.call(this,i)};y.prototype={constructor:y},g.inherits(y,f);var p=y;D.exports=p},"3gBT":function(D,I){var e=2311;function g(){return e++}D.exports=g},"3hzK":function(D,I){var e={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}};D.exports=e},"3m61":function(D,I){function e(f){return f instanceof Array||(f=[f,f]),f}function g(f){f.eachSeriesByType("graph",function(y){var p=y.getGraph(),v=y.getEdgeData(),h=e(y.get("edgeSymbol")),c=e(y.get("edgeSymbolSize")),o="lineStyle.color".split("."),i="lineStyle.opacity".split(".");v.setVisual("fromSymbol",h&&h[0]),v.setVisual("toSymbol",h&&h[1]),v.setVisual("fromSymbolSize",c&&c[0]),v.setVisual("toSymbolSize",c&&c[1]),v.setVisual("color",y.get(o)),v.setVisual("opacity",y.get(i)),v.each(function(n){var a=v.getItemModel(n),u=p.getEdgeByIndex(n),r=e(a.getShallow("symbol",!0)),l=e(a.getShallow("symbolSize",!0)),t=a.get(o),s=a.get(i);switch(t){case"source":t=u.node1.getVisual("color");break;case"target":t=u.node2.getVisual("color");break}r[0]&&u.setVisual("fromSymbol",r[0]),r[1]&&u.setVisual("toSymbol",r[1]),l[0]&&u.setVisual("fromSymbolSize",l[0]),l[1]&&u.setVisual("toSymbolSize",l[1]),u.setVisual("color",t),u.setVisual("opacity",s)})})}D.exports=g},"3ouR":function(D,I,e){"use strict";var g=e("q1tI"),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M354 671h58.9c4.7 0 9.2-2.1 12.3-5.7L512 561.8l86.8 103.5c3 3.6 7.5 5.7 12.3 5.7H670c6.8 0 10.5-7.9 6.1-13.1L553.8 512l122.4-145.9c4.4-5.2.7-13.1-6.1-13.1h-58.9c-4.7 0-9.2 2.1-12.3 5.7L512 462.2l-86.8-103.5c-3-3.6-7.5-5.7-12.3-5.7H354c-6.8 0-10.5 7.9-6.1 13.1L470.2 512 347.9 657.9A7.95 7.95 0 00354 671z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"close-square",theme:"outlined"},y=f,p=e("6VBw"),v=function(o,i){return g.createElement(p.a,Object.assign({},o,{ref:i,icon:y}))};v.displayName="CloseSquareOutlined";var h=I.a=g.forwardRef(v)},"3zoK":function(D,I,e){var g=e("bYtY"),f=e("bLfw"),y=e("KCsZ"),p=e("nkfE"),v=e("OELB"),h=e("ICMv"),c=f.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return y([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(a){var u=this.activeIntervals=g.clone(a);if(u)for(var r=u.length-1;r>=0;r--)v.asc(u[r])},getActiveState:function(a){var u=this.activeIntervals;if(!u.length)return"normal";if(a==null||isNaN(a))return"inactive";if(u.length===1){var r=u[0];if(r[0]<=a&&a<=r[1])return"active"}else for(var l=0,t=u.length;l40&&(k=Math.max(1,Math.floor(F/40)));for(var P=N[0],j=T.dataToCoord(P+1)-T.dataToCoord(P),K=Math.abs(j*Math.cos(C)),R=Math.abs(j*Math.sin(C)),B=0,U=0;P<=N[1];P+=k){var H=0,W=0,V=f.getBoundingRect(x(P),O.font,"center","top");H=V.width*1.3,W=V.height*1.3,B=Math.max(B,H,7),U=Math.max(U,W,7)}var z=B/K,X=U/R;isNaN(z)&&(z=Infinity),isNaN(X)&&(X=Infinity);var q=Math.max(0,Math.floor(Math.min(z,X))),fe=i(T.model),G=T.getExtent(),ve=fe.lastAutoInterval,Se=fe.lastTickCount;return ve!=null&&Se!=null&&Math.abs(ve-q)<=1&&Math.abs(Se-F)<=1&&ve>q&&fe.axisExtend0===G[0]&&fe.axisExtend1===G[1]?q=ve:(fe.lastTickCount=F,fe.lastAutoInterval=q,fe.axisExtend0=G[0],fe.axisExtend1=G[1]),q}function E(T){var O=T.getLabelModel();return{axisRotate:T.getRotate?T.getRotate():T.isHorizontal&&!T.isHorizontal()?90:0,labelRotate:O.get("rotate")||0,font:O.getFont()}}function A(T,O,x){var C=h(T),_=T.scale,N=_.getExtent(),F=T.getLabelModel(),k=[],P=Math.max((O||0)+1,1),j=N[0],K=_.count();j!==0&&P>1&&K/P>2&&(j=Math.round(Math.ceil(j/P)*P));var R=o(T),B=F.get("showMinLabel")||R,U=F.get("showMaxLabel")||R;B&&j!==N[0]&&W(N[0]);for(var H=j;H<=N[1];H+=P)W(H);U&&H-P!==N[1]&&W(N[1]);function W(V){k.push(x?V:{formattedLabel:C(V),rawLabel:_.getLabel(V),tickValue:V})}return k}function S(T,O,x){var C=T.scale,_=h(T),N=[];return g.each(C.getTicks(),function(F){var k=C.getLabel(F);O(F,k)&&N.push(x?F:{formattedLabel:_(F),rawLabel:k,tickValue:F})}),N}I.createAxisLabels=n,I.createAxisTicks=a,I.calculateCategoryInterval=b},"4NO4":function(D,I,e){var g=e("bYtY"),f=e("ItGF"),y=g.each,p=g.isObject,v=g.isArray,h="series\0";function c(x){return x instanceof Array?x:x==null?[]:[x]}function o(x,C,_){if(x){x[C]=x[C]||{},x.emphasis=x.emphasis||{},x.emphasis[C]=x.emphasis[C]||{};for(var N=0,F=_.length;N=_.length&&_.push({option:N})}),_}function r(x){var C=g.createHashMap();y(x,function(_,N){var F=_.exist;F&&C.set(F.id,_)}),y(x,function(_,N){var F=_.option;g.assert(!F||F.id==null||!C.get(F.id)||C.get(F.id)===_,"id duplicates: "+(F&&F.id)),F&&F.id!=null&&C.set(F.id,_),!_.keyInfo&&(_.keyInfo={})}),y(x,function(_,N){var F=_.exist,k=_.option,P=_.keyInfo;if(!p(k))return;if(P.name=k.name!=null?k.name+"":F?F.name:h+N,F)P.id=F.id;else if(k.id!=null)P.id=k.id+"";else{var j=0;do P.id="\0"+P.name+"\0"+j++;while(C.get(P.id))}C.set(P.id,_)})}function l(x){var C=x.name;return!!(C&&C.indexOf(h))}function t(x){return p(x)&&x.id&&(x.id+"").indexOf("\0_ec_\0")===0}function s(x,C){var _={},N={};return F(x||[],_),F(C||[],N,_),[k(_),k(N)];function F(P,j,K){for(var R=0,B=P.length;R=v[0]&&p<=v[1]},f.prototype.normalize=function(p){var v=this._extent;return v[1]===v[0]?.5:(p-v[0])/(v[1]-v[0])},f.prototype.scale=function(p){var v=this._extent;return p*(v[1]-v[0])+v[0]},f.prototype.unionExtent=function(p){var v=this._extent;p[0]v[1]&&(v[1]=p[1])},f.prototype.unionExtentFromData=function(p,v){this.unionExtent(p.getApproximateExtent(v))},f.prototype.getExtent=function(){return this._extent.slice()},f.prototype.setExtent=function(p,v){var h=this._extent;isNaN(p)||(h[0]=p),isNaN(v)||(h[1]=v)},f.prototype.isBlank=function(){return this._isBlank},f.prototype.setBlank=function(p){this._isBlank=p},f.prototype.getLabel=null,g.enableClassExtend(f),g.enableClassManagement(f,{registerWhenExtend:!0});var y=f;D.exports=y},"4fz+":function(D,I,e){var g=e("bYtY"),f=e("1bdT"),y=e("mFDi"),p=function(c){c=c||{},f.call(this,c);for(var o in c)c.hasOwnProperty(o)&&(this[o]=c[o]);this._children=[],this.__storage=null,this.__dirty=!0};p.prototype={constructor:p,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(c){return this._children[c]},childOfName:function(c){for(var o=this._children,i=0;i=0&&(i.splice(n,0,c),this._doAdd(c))}return this},_doAdd:function(c){c.parent&&c.parent.remove(c),c.parent=this;var o=this.__storage,i=this.__zr;o&&o!==c.__storage&&(o.addToStorage(c),c instanceof p&&c.addChildrenToStorage(o)),i&&i.refresh()},remove:function(c){var o=this.__zr,i=this.__storage,n=this._children,a=g.indexOf(n,c);return a<0?this:(n.splice(a,1),c.parent=null,i&&(i.delFromStorage(c),c instanceof p&&c.delChildrenFromStorage(i)),o&&o.refresh(),this)},removeAll:function(){var c=this._children,o=this.__storage,i,n;for(n=0;n1e-4){O[0]=m-b,O[1]=w-E,x[0]=m+b,x[1]=w+E;return}if(o[0]=h(A)*b+m,o[1]=v(A)*E+w,i[0]=h(S)*b+m,i[1]=v(S)*E+w,C(O,o,i),_(x,o,i),A=A%c,A<0&&(A=A+c),S=S%c,S<0&&(S=S+c),A>S&&!T?S+=c:AA&&(n[0]=h(k)*b+m,n[1]=v(k)*E+w,C(O,n,O),_(x,n,x))}I.fromPoints=a,I.fromLine=u,I.fromCubic=t,I.fromQuadratic=s,I.fromArc=d},"4vCz":function(D,I,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var y=f(e("q1tI")),p=g(e("X2/X")),v=g(e("KQxl")),h=function(i,n){return y.createElement(v.default,Object.assign({},i,{ref:n,icon:p.default}))};h.displayName="PlusSquareOutlined";var c=y.forwardRef(h);I.default=c},"4xFK":function(D,I,e){"use strict";Object.defineProperty(I,"__esModule",{value:!0});var g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};I.default=g},"56rv":function(D,I,e){var g=e("IwbS"),f=e("x3X8"),y=f.getDefaultLabel;function p(h,c,o,i,n,a,u){var r=o.getModel("label"),l=o.getModel("emphasis.label");g.setLabelStyle(h,c,r,l,{labelFetcher:n,labelDataIndex:a,defaultText:y(n.getData(),a),isRectText:!0,autoColor:i}),v(h),v(c)}function v(h,c){h.textPosition==="outside"&&(h.textPosition=c)}I.setLabel=p},"59Ip":function(D,I,e){var g=e("Sj9i");function f(y,p,v,h,c,o,i,n,a,u,r){if(a===0)return!1;var l=a;if(r>p+l&&r>h+l&&r>o+l&&r>n+l||ry+l&&u>v+l&&u>c+l&&u>i+l||uo)return c[n];return c[i-1]}var h={clearColorPalette:function(){p(this).colorIdx=0,p(this).colorNameMap={}},getColorFromPalette:function(c,o,i){o=o||this;var n=p(o),a=n.colorIdx||0,u=n.colorNameMap=n.colorNameMap||{};if(u.hasOwnProperty(c))return u[c];var r=y(this.get("color",!0)),l=this.get("colorLayer",!0),t=i==null||!l?r:v(l,i);if(t=t||r,!t||!t.length)return;var s=t[a];return c&&(u[c]=s),n.colorIdx=(a+1)%t.length,s}};D.exports=h},"5NDa":function(D,I,e){"use strict";var g=e("cIOH"),f=e.n(g),y=e("OnYD"),p=e.n(y),v=e("+L6B")},"5NHt":function(D,I,e){e("aTJb"),e("OlYY"),e("fc+c"),e("N5BQ"),e("IyUQ"),e("LBfv"),e("noeP")},"5OYt":function(D,I,e){"use strict";var g=e("J4zp"),f=e.n(g),y=e("q1tI"),p=e.n(y),v=e("ACnJ");function h(){var c=Object(y.useState)({}),o=f()(c,2),i=o[0],n=o[1];return Object(y.useEffect)(function(){var a=v.a.subscribe(function(u){n(u)});return function(){return v.a.unsubscribe(a)}},[]),i}I.a=h},"5RHE":function(D,I,e){(function(g){var f,y,y;!function(p){!(f=p,y=typeof f=="function"?f.call(I,e,I,D):f,y!==void 0&&(D.exports=y))}(function(){"use strict";/** @license * jsPDF - PDF Document creation from JavaScript * Version 1.5.3 Built on 2018-12-27T14:11:42.696Z * CommitID d93d28db14 * * Copyright (c) 2010-2016 James Hall , https://github.com/MrRio/jsPDF * 2010 Aaron Spike, https://github.com/acspike * 2012 Willow Systems Corporation, willow-systems.com * 2012 Pablo Hess, https://github.com/pablohess * 2012 Florian Jenett, https://github.com/fjenett * 2013 Warren Weckesser, https://github.com/warrenweckesser * 2013 Youssef Beddad, https://github.com/lifof * 2013 Lee Driscoll, https://github.com/lsdriscoll * 2013 Stefan Slonevskiy, https://github.com/stefslon * 2013 Jeremy Morel, https://github.com/jmorel * 2013 Christoph Hartmann, https://github.com/chris-rock * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria * 2014 James Makes, https://github.com/dollaruw * 2014 Diego Casorran, https://github.com/diegocr * 2014 Steven Spungin, https://github.com/Flamenco * 2014 Kenneth Glassey, https://github.com/Gavvers * * Licensed under the MIT License * * Contributor(s): * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango, * kim3er, mfo, alnorth, Flamenco */function p(Ae){return(p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(pe){return typeof pe}:function(pe){return pe&&typeof Symbol=="function"&&pe.constructor===Symbol&&pe!==Symbol.prototype?"symbol":typeof pe})(Ae)}!function(Ae){if(p(Ae.console)!=="object"){Ae.console={};for(var pe,he,le=Ae.console,Ne=function(){},je=["memory"],Ke="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");pe=je.pop();)le[pe]||(le[pe]={});for(;he=Ke.pop();)le[he]||(le[he]=Ne)}var Xe,Fe,nt,At,_t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";Ae.btoa===void 0&&(Ae.btoa=function(ne){var ue,Y,te,be,Le,Re=0,$e=0,gt="",Wt=[];if(!ne)return ne;for(;ue=(Le=ne.charCodeAt(Re++)<<16|ne.charCodeAt(Re++)<<8|ne.charCodeAt(Re++))>>18&63,Y=Le>>12&63,te=Le>>6&63,be=63&Le,Wt[$e++]=_t.charAt(ue)+_t.charAt(Y)+_t.charAt(te)+_t.charAt(be),Re>16&255,Y=Re>>8&255,te=255&Re,Wt[gt++]=be==64?String.fromCharCode(ue):Le==64?String.fromCharCode(ue,Y):String.fromCharCode(ue,Y,te),$e>>0,te=new Array(Y),be=1>>0,be=0;be>>0;if(typeof ue!="function")throw new TypeError("predicate must be a function");for(var be=arguments[1],Le=0;Le>16&255,br=wn>>8&255,Mr=255&wn}if(br===void 0||Dr===void 0&&sr===br&&br===Mr)if(typeof sr=="string")Vt=sr+" "+rn[0];else switch(St.precision){case 2:Vt=Re(sr/255)+" "+rn[0];break;case 3:default:Vt=$e(sr/255)+" "+rn[0]}else if(Dr===void 0||p(Dr)==="object"){if(Dr&&!isNaN(Dr.a)&&Dr.a===0)return Vt=["1.000","1.000","1.000",rn[1]].join(" ");if(typeof sr=="string")Vt=[sr,br,Mr,rn[1]].join(" ");else switch(St.precision){case 2:Vt=[Re(sr/255),Re(br/255),Re(Mr/255),rn[1]].join(" ");break;default:case 3:Vt=[$e(sr/255),$e(br/255),$e(Mr/255),rn[1]].join(" ")}}else if(typeof sr=="string")Vt=[sr,br,Mr,Dr,rn[2]].join(" ");else switch(St.precision){case 2:Vt=[Re(sr/255),Re(br/255),Re(Mr/255),Re(Dr/255),rn[2]].join(" ");break;case 3:default:Vt=[$e(sr/255),$e(br/255),$e(Mr/255),$e(Dr/255),rn[2]].join(" ")}return Vt},ia=ne.__private__.getFilters=function(){return Fe},xa=ne.__private__.putStream=function(St){var Vt=(St=St||{}).data||"",sr=St.filters||ia(),br=St.alreadyAppliedFilters||[],Mr=St.addLength1||!1,Dr=Vt.length,rn={};sr===!0&&(sr=["FlateEncode"]);var fn=St.additionalKeyValues||[],wn=(rn=he.API.processDataByFilters!==void 0?he.API.processDataByFilters(Vt,sr):{data:Vt,reverseChain:[]}).reverseChain+(Array.isArray(br)?br.join(" "):br.toString());rn.data.length!==0&&(fn.push({key:"Length",value:rn.data.length}),Mr===!0&&fn.push({key:"Length1",value:Dr})),wn.length!=0&&(wn.split("/").length-1==1?fn.push({key:"Filter",value:wn}):fn.push({key:"Filter",value:"["+wn+"]"})),Xt("<<");for(var Hn=0;Hn>"),rn.data.length!==0&&(Xt("stream"),Xt(rn.data),Xt("endstream"))},ta=ne.__private__.putPage=function(St){St.mediaBox;var Vt=St.number,sr=St.data,br=St.objId,Mr=St.contentsObjId;zn(br,!0),un[Mt].mediaBox.topRightX,un[Mt].mediaBox.bottomLeftX,un[Mt].mediaBox.topRightY,un[Mt].mediaBox.bottomLeftY,Xt("<>"),Xt("endobj");var Dr=sr.join(` `);return zn(Mr,!0),xa({data:Dr,filters:ia()}),Xt("endobj"),br},Ii=ne.__private__.putPages=function(){var St,Vt,sr=[];for(St=1;St<=Gr;St++)un[St].objId=Pn(),un[St].contentsObjId=Pn();for(St=1;St<=Gr;St++)sr.push(ta({number:St,data:Ht[St],objId:un[St].objId,contentsObjId:un[St].contentsObjId,mediaBox:un[St].mediaBox,cropBox:un[St].cropBox,bleedBox:un[St].bleedBox,trimBox:un[St].trimBox,artBox:un[St].artBox,userUnit:un[St].userUnit,rootDictionaryObjId:Gn,resourceDictionaryObjId:Vn}));zn(Gn,!0),Xt("<>"),Xt("endobj"),jr.publish("postPutPages")},Ci=function(){!function(){for(var Vt in fr)fr.hasOwnProperty(Vt)&&(At===!1||At===!0&&_t.hasOwnProperty(Vt))&&(sr=fr[Vt],jr.publish("putFont",{font:sr,out:Xt,newObject:gn,putStream:xa}),sr.isAlreadyPutted!==!0&&(sr.objectNumber=gn(),Xt("<<"),Xt("/Type /Font"),Xt("/BaseFont /"+sr.postScriptName),Xt("/Subtype /Type1"),typeof sr.encoding=="string"&&Xt("/Encoding /"+sr.encoding),Xt("/FirstChar 32"),Xt("/LastChar 255"),Xt(">>"),Xt("endobj")));var sr}(),jr.publish("putResources"),zn(Vn,!0),Xt("<<"),function(){for(var Vt in Xt("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Xt("/Font <<"),fr)fr.hasOwnProperty(Vt)&&(At===!1||At===!0&&_t.hasOwnProperty(Vt))&&Xt("/"+Vt+" "+fr[Vt].objectNumber+" 0 R");Xt(">>"),Xt("/XObject <<"),jr.publish("putXobjectDict"),Xt(">>")}(),Xt(">>"),Xt("endobj"),jr.publish("postPutResources")},Yn=function(Vt,sr,br){xr.hasOwnProperty(sr)||(xr[sr]={}),xr[sr][br]=Vt},_a=function(Vt,sr,br,Mr,Dr){Dr=Dr||!1;var rn="F"+(Object.keys(fr).length+1).toString(10),fn={id:rn,postScriptName:Vt,fontName:sr,fontStyle:br,encoding:Mr,isStandardFont:Dr,metadata:{}};return jr.publish("addFont",{font:fn,instance:this}),rn!==void 0&&(fr[rn]=fn,Yn(rn,sr,br)),rn},mn=ne.__private__.pdfEscape=ne.pdfEscape=function(St,Vt){return function(sr,br){var Mr,Dr,rn,fn,wn,Hn,Sn,bn,Mn;if(rn=(br=br||{}).sourceEncoding||"Unicode",wn=br.outputEncoding,(br.autoencode||wn)&&fr[ut].metadata&&fr[ut].metadata[rn]&&fr[ut].metadata[rn].encoding&&(fn=fr[ut].metadata[rn].encoding,!wn&&fr[ut].encoding&&(wn=fr[ut].encoding),!wn&&fn.codePages&&(wn=fn.codePages[0]),typeof wn=="string"&&(wn=fn[wn]),wn)){for(Sn=!1,Hn=[],Mr=0,Dr=sr.length;Mr>8&&(Sn=!0);sr=Hn.join("")}for(Mr=sr.length;Sn===void 0&&Mr!==0;)sr.charCodeAt(Mr-1)>>8&&(Sn=!0),Mr--;if(!Sn)return sr;for(Hn=br.noBOM?[]:[254,255],Mr=0,Dr=sr.length;Mr>8)>>8)throw new Error("Character at position "+Mr+" of string '"+sr+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Hn.push(Mn),Hn.push(bn-(Mn<<8))}return String.fromCharCode.apply(void 0,Hn)}(St,Vt).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},_n=ne.__private__.beginPage=function(St,Vt){var sr,br=typeof Vt=="string"&&Vt.toLowerCase();if(typeof St=="string"&&(sr=be(St.toLowerCase()))&&(St=sr[0],Vt=sr[1]),Array.isArray(St)&&(Vt=St[1],St=St[0]),(isNaN(St)||isNaN(Vt))&&(St=je[0],Vt=je[1]),br){switch(br.substr(0,1)){case"l":St>"),Xt("endobj")},Na=ne.__private__.putCatalog=function(St){var Vt=(St=St||{}).rootDictionaryObjId||Gn;switch(gn(),Xt("<<"),Xt("/Type /Catalog"),Xt("/Pages "+Vt+" 0 R"),er||(er="fullwidth"),er){case"fullwidth":Xt("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Xt("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Xt("/OpenAction [3 0 R /Fit]");break;case"original":Xt("/OpenAction [3 0 R /XYZ null null 1]");break;default:var sr=""+er;sr.substr(sr.length-1)==="%"&&(er=parseInt(er)/100),typeof er=="number"&&Xt("/OpenAction [3 0 R /XYZ null null "+Re(er)+"]")}switch(xt||(xt="continuous"),xt){case"continuous":Xt("/PageLayout /OneColumn");break;case"single":Xt("/PageLayout /SinglePage");break;case"two":case"twoleft":Xt("/PageLayout /TwoColumnLeft");break;case"tworight":Xt("/PageLayout /TwoColumnRight")}ot&&Xt("/PageMode /"+ot),jr.publish("putCatalog"),Xt(">>"),Xt("endobj")},Qi=ne.__private__.putTrailer=function(){Xt("trailer"),Xt("<<"),Xt("/Size "+(pr+1)),Xt("/Root "+pr+" 0 R"),Xt("/Info "+(pr-1)+" 0 R"),Xt("/ID [ <"+gt+"> <"+gt+"> ]"),Xt(">>")},ma=ne.__private__.putHeader=function(){Xt("%PDF-"+ue),Xt("%\xBA\xDF\xAC\xE0")},Ba=ne.__private__.putXRef=function(){var St=1,Vt="0000000000";for(Xt("xref"),Xt("0 "+(pr+1)),Xt("0000000000 65535 f "),St=1;St<=pr;St++)typeof cr[St]=="function"?Xt((Vt+cr[St]()).slice(-10)+" 00000 n "):cr[St]!==void 0?Xt((Vt+cr[St]).slice(-10)+" 00000 n "):Xt("0000000000 00000 n ")},Qa=ne.__private__.buildDocument=function(){ht=!1,ir=pr=0,Ft=[],cr=[],Nn=[],Gn=Pn(),Vn=Pn(),jr.publish("buildDocument"),ma(),Ii(),function(){jr.publish("putAdditionalObjects");for(var Vt=0;Vt',Dr=Ae.open();if(Dr!==null&&Dr.document.write(Mr),Dr||typeof safari=="undefined")return Dr;case"datauri":case"dataurl":return Ae.document.location.href="data:application/pdf;filename="+sr.filename+";base64,"+btoa(br);default:return null}}).foo=function(){try{return Lt.apply(this,arguments)}catch(sr){var St=sr.stack||"";~St.indexOf(" at ")&&(St=St.split(" at ")[1]);var Vt="Error in function "+St.split(` `)[0].split("<")[0]+": "+sr.message;if(!Ae.console)throw new Error(Vt);Ae.console.error(Vt,sr),Ae.alert&&alert(Vt)}},(Lt.foo.bar=Lt).foo),aa=function(Vt){return Array.isArray(Tn)===!0&&-1":")"),gi=1):(Aa=Pr(Vt),ca=Wr(sr),la=(wn?"<":"(")+ai[bi]+(wn?">":")")),Ni!==void 0&&Ni[bi]!==void 0&&(Pa=Ni[bi]+` Tw `),Ri.length!==0&&bi===0?St.push(Pa+Ri.join(" ")+" "+Aa.toFixed(2)+" "+ca.toFixed(2)+` Tm `+la):gi===1||gi===0&&bi===0?St.push(Pa+Aa.toFixed(2)+" "+ca.toFixed(2)+` Td `+la):St.push(Pa+la);St=gi===0?St.join(` Tj T* `):St.join(` Tj `),St+=` Tj `;var Ma=`BT /`+ut+" "+Fr+` Tf `+(Fr*Sn).toFixed(2)+` TL `+nr+` `;return Ma+=Hn,Ma+=St,Xt(Ma+="ET"),_t[ut]=!0,bn},ne.__private__.lstext=ne.lstext=function(St,Vt,sr,br){return console.warn("jsPDF.lstext is deprecated"),this.text(St,Vt,sr,{charSpace:br})},ne.__private__.clip=ne.clip=function(St){Xt(St==="evenodd"?"W*":"W"),Xt("n")},ne.__private__.clip_fixed=ne.clip_fixed=function(St){console.log("clip_fixed is deprecated"),ne.clip(St)};var mo=ne.__private__.isValidStyle=function(St){var Vt=!1;return[void 0,null,"S","F","DF","FD","f","f*","B","B*"].indexOf(St)!==-1&&(Vt=!0),Vt},kn=ne.__private__.getStyle=function(St){var Vt="S";return St==="F"?Vt="f":St==="FD"||St==="DF"?Vt="B":St!=="f"&&St!=="f*"&&St!=="B"&&St!=="B*"||(Vt=St),Vt};ne.__private__.line=ne.line=function(St,Vt,sr,br){if(isNaN(St)||isNaN(Vt)||isNaN(sr)||isNaN(br))throw new Error("Invalid arguments passed to jsPDF.line");return this.lines([[sr-St,br-Vt]],St,Vt)},ne.__private__.lines=ne.lines=function(St,Vt,sr,br,Mr,Dr){var rn,fn,wn,Hn,Sn,bn,Mn,vn,Rn,En,Ln,Xn;if(typeof St=="number"&&(Xn=sr,sr=Vt,Vt=St,St=Xn),br=br||[1,1],Dr=Dr||!1,isNaN(Vt)||isNaN(sr)||!Array.isArray(St)||!Array.isArray(br)||!mo(Mr)||typeof Dr!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Xt($e(Pr(Vt))+" "+$e(Wr(sr))+" m "),rn=br[0],fn=br[1],Hn=St.length,En=Vt,Ln=sr,wn=0;wn=xr.length-1;if(ta&&!Ii){An+=" ";continue}if(ta||Ii){if(Ii)Gn=xa;else if(ur.multiline&&un<(Tn+2)*(on+2)+2)continue e}else{if(!ur.multiline)continue e;if(un<(Tn+2)*(on+2)+2)continue e;Gn=xa}for(var Ci="",Yn=qn;Yn<=Gn;Yn++)Ci+=xr[Yn]+" ";switch(Ci=Ci.substr(Ci.length-1)==" "?Ci.substr(0,Ci.length-1):Ci,Vn=Wt(Ci,ur,Gr).width,ur.textAlign){case"right":Pn=Nn-Vn-2;break;case"center":Pn=(Nn-Vn)/2;break;case"left":default:Pn=2}pr+=Ke(Pn)+" "+Ke(zn)+` Td `,pr+="("+Ne(Ci)+`) Tj `,pr+=-Ke(Pn)+` 0 Td `,zn=-(Gr+2),Vn=0,qn=Gn+1,on++,An=""}break}return fr.text=pr,fr.fontSize=Gr,fr},Wt=function(ur,pr,cr){var fr=he.internal.getFont(pr.fontName,pr.fontStyle),xr=he.getStringUnitWidth(ur,{font:fr,fontSize:parseFloat(cr),charSpace:0})*parseFloat(cr);return{height:he.getStringUnitWidth("3",{font:fr,fontSize:parseFloat(cr),charSpace:0})*parseFloat(cr)*1.5,width:xr}},$t={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Dt=function(){he.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var ur=he.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var pr in ur)if(ur.hasOwnProperty(pr)){var cr=ur[pr];cr.objId=void 0,cr.hasAnnotation&&Kt.call(he,cr)}},Kt=function(ur){var pr={type:"reference",object:ur};he.internal.getPageInfo(ur.page).pageContext.annotations.find(function(cr){return cr.type===pr.type&&cr.object===pr.object})===void 0&&he.internal.getPageInfo(ur.page).pageContext.annotations.push(pr)},Yt=function(){if(he.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");he.internal.write("/AcroForm "+he.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},Qt=function(){he.internal.events.unsubscribe(he.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete he.internal.acroformPlugin.acroFormDictionaryRoot._eventID,he.internal.acroformPlugin.printedOut=!0},Mt=function(ur){var pr=!ur;ur||(he.internal.newObjectDeferredBegin(he.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),he.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),ur=ur||he.internal.acroformPlugin.acroFormDictionaryRoot.Kids;for(var cr in ur)if(ur.hasOwnProperty(cr)){var fr=ur[cr],xr=[],Gr=fr.Rect;if(fr.Rect&&(fr.Rect=Re.call(this,fr.Rect)),he.internal.newObjectDeferredBegin(fr.objId,!0),fr.DA=Or.createDefaultAppearanceStream(fr),p(fr)==="object"&&typeof fr.getKeyValueListForStream=="function"&&(xr=fr.getKeyValueListForStream()),fr.Rect=Gr,fr.hasAppearanceStream&&!fr.appearanceStreamContent){var un=$e.call(this,fr);xr.push({key:"AP",value:"<>"}),he.internal.acroformPlugin.xForms.push(un)}if(fr.appearanceStreamContent){var Nn="";for(var jr in fr.appearanceStreamContent)if(fr.appearanceStreamContent.hasOwnProperty(jr)){var Tn=fr.appearanceStreamContent[jr];if(Nn+="/"+jr+" ",Nn+="<<",1<=Object.keys(Tn).length||Array.isArray(Tn))for(var cr in Tn){var gn;Tn.hasOwnProperty(cr)&&(typeof(gn=Tn[cr])=="function"&&(gn=gn.call(this,fr)),Nn+="/"+cr+" "+gn+" ",0<=he.internal.acroformPlugin.xForms.indexOf(gn)||he.internal.acroformPlugin.xForms.push(gn))}else typeof(gn=Tn)=="function"&&(gn=gn.call(this,fr)),Nn+="/"+cr+" "+gn,0<=he.internal.acroformPlugin.xForms.indexOf(gn)||he.internal.acroformPlugin.xForms.push(gn);Nn+=">>"}xr.push({key:"AP",value:`<< `+Nn+">>"})}he.internal.putStream({additionalKeyValues:xr}),he.internal.out("endobj")}pr&&dr.call(this,he.internal.acroformPlugin.xForms)},dr=function(ur){for(var pr in ur)if(ur.hasOwnProperty(pr)){var cr=pr,fr=ur[pr];he.internal.newObjectDeferredBegin(fr&&fr.objId,!0),p(fr)==="object"&&typeof fr.putStream=="function"&&fr.putStream(),delete ur[cr]}},er=function(){if(this.internal!==void 0&&(this.internal.acroformPlugin===void 0||this.internal.acroformPlugin.isInitialized===!1)){if(he=this,Tt.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify($t)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");le=he.internal.scaleFactor,he.internal.acroformPlugin.acroFormDictionaryRoot=new Lt,he.internal.acroformPlugin.acroFormDictionaryRoot._eventID=he.internal.events.subscribe("postPutResources",Qt),he.internal.events.subscribe("buildDocument",Dt),he.internal.events.subscribe("putCatalog",Yt),he.internal.events.subscribe("postPutPages",Mt),he.internal.acroformPlugin.isInitialized=!0}},ot=Ae.__acroform__.arrayToPdfArray=function(Ir){if(Array.isArray(Ir)){for(var ur="[",pr=0;pr>"),xr.join(` `)}},set:function(fr){p(fr)==="object"&&(pr=fr)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return pr.CA||""},set:function(fr){typeof fr=="string"&&(pr.CA=fr)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return ur},set:function(fr){ur=fr}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return ur.substr(1,ur.length-1)},set:function(fr){ur="/"+fr}})};Fe(Xt,Tt);var mr=function(){Xt.call(this),this.pushButton=!0};Fe(mr,Xt);var Ar=function(){Xt.call(this),this.radio=!0,this.pushButton=!1;var ur=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return ur},set:function(cr){ur=cr!==void 0?cr:[]}})};Fe(Ar,Xt);var Nr=function(){var ur,pr;Tt.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return ur},set:function(Gr){ur=Gr}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return pr},set:function(Gr){pr=Gr}});var cr,fr={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Gr,un=[];for(Gr in un.push("<<"),fr)un.push("/"+Gr+" ("+fr[Gr]+")");return un.push(">>"),un.join(` `)},set:function(Gr){p(Gr)==="object"&&(fr=Gr)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return fr.CA||""},set:function(Gr){typeof Gr=="string"&&(fr.CA=Gr)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return cr},set:function(Gr){cr=Gr}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return cr.substr(1,cr.length-1)},set:function(Gr){cr="/"+Gr}}),this.optionName=name,this.caption="l",this.appearanceState="Off",this._AppearanceType=Or.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(name)};Fe(Nr,Tt),Ar.prototype.setAppearance=function(Ir){if(!("createAppearanceStream"in Ir&&"getCA"in Ir))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var ur in this.Kids)if(this.Kids.hasOwnProperty(ur)){var pr=this.Kids[ur];pr.appearanceStreamContent=Ir.createAppearanceStream(pr.optionName),pr.caption=Ir.getCA()}},Ar.prototype.createOption=function(Ir){this.Kids.length;var ur=new Nr;return ur.Parent=this,ur.optionName=Ir,this.Kids.push(ur),Qr.call(this,ur),ur};var Fr=function(){Xt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Or.CheckBox.createAppearanceStream()};Fe(Fr,Xt);var tn=function(){Tt.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,13))},set:function(cr){Boolean(cr)===!0?this.Ff=be(this.Ff,13):this.Ff=Le(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,21))},set:function(cr){Boolean(cr)===!0?this.Ff=be(this.Ff,21):this.Ff=Le(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,23))},set:function(cr){Boolean(cr)===!0?this.Ff=be(this.Ff,23):this.Ff=Le(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,24))},set:function(cr){Boolean(cr)===!0?this.Ff=be(this.Ff,24):this.Ff=Le(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,25))},set:function(cr){Boolean(cr)===!0?this.Ff=be(this.Ff,25):this.Ff=Le(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,26))},set:function(cr){Boolean(cr)===!0?this.Ff=be(this.Ff,26):this.Ff=Le(this.Ff,26)}});var ur=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return ur},set:function(cr){ur=cr}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return ur},set:function(cr){Number.isInteger(cr)&&(ur=cr)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Fe(tn,Tt);var qr=function(){tn.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,14))},set:function(pr){Boolean(pr)===!0?this.Ff=be(this.Ff,14):this.Ff=Le(this.Ff,14)}}),this.password=!0};Fe(qr,tn);var Or={CheckBox:{createAppearanceStream:function(){return{N:{On:Or.CheckBox.YesNormal},D:{On:Or.CheckBox.YesPushDown,Off:Or.CheckBox.OffPushDown}}},YesPushDown:function(ur){var pr=_t(ur),cr=[],fr=he.internal.getFont(ur.fontName,ur.fontStyle).id,xr=he.__private__.encodeColorString(ur.color),Gr=gt(ur,ur.caption);return cr.push("0.749023 g"),cr.push("0 0 "+Ke(Or.internal.getWidth(ur))+" "+Ke(Or.internal.getHeight(ur))+" re"),cr.push("f"),cr.push("BMC"),cr.push("q"),cr.push("0 0 1 rg"),cr.push("/"+fr+" "+Ke(Gr.fontSize)+" Tf "+xr),cr.push("BT"),cr.push(Gr.text),cr.push("ET"),cr.push("Q"),cr.push("EMC"),pr.stream=cr.join(` `),pr},YesNormal:function(ur){var pr=_t(ur),cr=he.internal.getFont(ur.fontName,ur.fontStyle).id,fr=he.__private__.encodeColorString(ur.color),xr=[],Gr=Or.internal.getHeight(ur),un=Or.internal.getWidth(ur),Nn=gt(ur,ur.caption);return xr.push("1 g"),xr.push("0 0 "+Ke(un)+" "+Ke(Gr)+" re"),xr.push("f"),xr.push("q"),xr.push("0 0 1 rg"),xr.push("0 0 "+Ke(un-1)+" "+Ke(Gr-1)+" re"),xr.push("W"),xr.push("n"),xr.push("0 g"),xr.push("BT"),xr.push("/"+cr+" "+Ke(Nn.fontSize)+" Tf "+fr),xr.push(Nn.text),xr.push("ET"),xr.push("Q"),pr.stream=xr.join(` `),pr},OffPushDown:function(ur){var pr=_t(ur),cr=[];return cr.push("0.749023 g"),cr.push("0 0 "+Ke(Or.internal.getWidth(ur))+" "+Ke(Or.internal.getHeight(ur))+" re"),cr.push("f"),pr.stream=cr.join(` `),pr}},RadioButton:{Circle:{createAppearanceStream:function(ur){var pr={D:{Off:Or.RadioButton.Circle.OffPushDown},N:{}};return pr.N[ur]=Or.RadioButton.Circle.YesNormal,pr.D[ur]=Or.RadioButton.Circle.YesPushDown,pr},getCA:function(){return"l"},YesNormal:function(ur){var pr=_t(ur),cr=[],fr=Or.internal.getWidth(ur)<=Or.internal.getHeight(ur)?Or.internal.getWidth(ur)/4:Or.internal.getHeight(ur)/4;fr=Number((.9*fr).toFixed(5));var xr=Or.internal.Bezier_C,Gr=Number((fr*xr).toFixed(5));return cr.push("q"),cr.push("1 0 0 1 "+Xe(Or.internal.getWidth(ur)/2)+" "+Xe(Or.internal.getHeight(ur)/2)+" cm"),cr.push(fr+" 0 m"),cr.push(fr+" "+Gr+" "+Gr+" "+fr+" 0 "+fr+" c"),cr.push("-"+Gr+" "+fr+" -"+fr+" "+Gr+" -"+fr+" 0 c"),cr.push("-"+fr+" -"+Gr+" -"+Gr+" -"+fr+" 0 -"+fr+" c"),cr.push(Gr+" -"+fr+" "+fr+" -"+Gr+" "+fr+" 0 c"),cr.push("f"),cr.push("Q"),pr.stream=cr.join(` `),pr},YesPushDown:function(ur){var pr=_t(ur),cr=[],fr=Or.internal.getWidth(ur)<=Or.internal.getHeight(ur)?Or.internal.getWidth(ur)/4:Or.internal.getHeight(ur)/4,xr=(fr=Number((.9*fr).toFixed(5)),Number((2*fr).toFixed(5))),Gr=Number((xr*Or.internal.Bezier_C).toFixed(5)),un=Number((fr*Or.internal.Bezier_C).toFixed(5));return cr.push("0.749023 g"),cr.push("q"),cr.push("1 0 0 1 "+Xe(Or.internal.getWidth(ur)/2)+" "+Xe(Or.internal.getHeight(ur)/2)+" cm"),cr.push(xr+" 0 m"),cr.push(xr+" "+Gr+" "+Gr+" "+xr+" 0 "+xr+" c"),cr.push("-"+Gr+" "+xr+" -"+xr+" "+Gr+" -"+xr+" 0 c"),cr.push("-"+xr+" -"+Gr+" -"+Gr+" -"+xr+" 0 -"+xr+" c"),cr.push(Gr+" -"+xr+" "+xr+" -"+Gr+" "+xr+" 0 c"),cr.push("f"),cr.push("Q"),cr.push("0 g"),cr.push("q"),cr.push("1 0 0 1 "+Xe(Or.internal.getWidth(ur)/2)+" "+Xe(Or.internal.getHeight(ur)/2)+" cm"),cr.push(fr+" 0 m"),cr.push(fr+" "+un+" "+un+" "+fr+" 0 "+fr+" c"),cr.push("-"+un+" "+fr+" -"+fr+" "+un+" -"+fr+" 0 c"),cr.push("-"+fr+" -"+un+" -"+un+" -"+fr+" 0 -"+fr+" c"),cr.push(un+" -"+fr+" "+fr+" -"+un+" "+fr+" 0 c"),cr.push("f"),cr.push("Q"),pr.stream=cr.join(` `),pr},OffPushDown:function(ur){var pr=_t(ur),cr=[],fr=Or.internal.getWidth(ur)<=Or.internal.getHeight(ur)?Or.internal.getWidth(ur)/4:Or.internal.getHeight(ur)/4,xr=(fr=Number((.9*fr).toFixed(5)),Number((2*fr).toFixed(5))),Gr=Number((xr*Or.internal.Bezier_C).toFixed(5));return cr.push("0.749023 g"),cr.push("q"),cr.push("1 0 0 1 "+Xe(Or.internal.getWidth(ur)/2)+" "+Xe(Or.internal.getHeight(ur)/2)+" cm"),cr.push(xr+" 0 m"),cr.push(xr+" "+Gr+" "+Gr+" "+xr+" 0 "+xr+" c"),cr.push("-"+Gr+" "+xr+" -"+xr+" "+Gr+" -"+xr+" 0 c"),cr.push("-"+xr+" -"+Gr+" -"+Gr+" -"+xr+" 0 -"+xr+" c"),cr.push(Gr+" -"+xr+" "+xr+" -"+Gr+" "+xr+" 0 c"),cr.push("f"),cr.push("Q"),pr.stream=cr.join(` `),pr}},Cross:{createAppearanceStream:function(ur){var pr={D:{Off:Or.RadioButton.Cross.OffPushDown},N:{}};return pr.N[ur]=Or.RadioButton.Cross.YesNormal,pr.D[ur]=Or.RadioButton.Cross.YesPushDown,pr},getCA:function(){return"8"},YesNormal:function(ur){var pr=_t(ur),cr=[],fr=Or.internal.calculateCross(ur);return cr.push("q"),cr.push("1 1 "+Ke(Or.internal.getWidth(ur)-2)+" "+Ke(Or.internal.getHeight(ur)-2)+" re"),cr.push("W"),cr.push("n"),cr.push(Ke(fr.x1.x)+" "+Ke(fr.x1.y)+" m"),cr.push(Ke(fr.x2.x)+" "+Ke(fr.x2.y)+" l"),cr.push(Ke(fr.x4.x)+" "+Ke(fr.x4.y)+" m"),cr.push(Ke(fr.x3.x)+" "+Ke(fr.x3.y)+" l"),cr.push("s"),cr.push("Q"),pr.stream=cr.join(` `),pr},YesPushDown:function(ur){var pr=_t(ur),cr=Or.internal.calculateCross(ur),fr=[];return fr.push("0.749023 g"),fr.push("0 0 "+Ke(Or.internal.getWidth(ur))+" "+Ke(Or.internal.getHeight(ur))+" re"),fr.push("f"),fr.push("q"),fr.push("1 1 "+Ke(Or.internal.getWidth(ur)-2)+" "+Ke(Or.internal.getHeight(ur)-2)+" re"),fr.push("W"),fr.push("n"),fr.push(Ke(cr.x1.x)+" "+Ke(cr.x1.y)+" m"),fr.push(Ke(cr.x2.x)+" "+Ke(cr.x2.y)+" l"),fr.push(Ke(cr.x4.x)+" "+Ke(cr.x4.y)+" m"),fr.push(Ke(cr.x3.x)+" "+Ke(cr.x3.y)+" l"),fr.push("s"),fr.push("Q"),pr.stream=fr.join(` `),pr},OffPushDown:function(ur){var pr=_t(ur),cr=[];return cr.push("0.749023 g"),cr.push("0 0 "+Ke(Or.internal.getWidth(ur))+" "+Ke(Or.internal.getHeight(ur))+" re"),cr.push("f"),pr.stream=cr.join(` `),pr}}},createDefaultAppearanceStream:function(ur){var pr=he.internal.getFont(ur.fontName,ur.fontStyle).id,cr=he.__private__.encodeColorString(ur.color);return"/"+pr+" "+ur.fontSize+" Tf "+cr}};Or.internal={Bezier_C:.551915024494,calculateCross:function(ur){var pr=Or.internal.getWidth(ur),cr=Or.internal.getHeight(ur),fr=Math.min(pr,cr);return{x1:{x:(pr-fr)/2,y:(cr-fr)/2+fr},x2:{x:(pr-fr)/2+fr,y:(cr-fr)/2},x3:{x:(pr-fr)/2,y:(cr-fr)/2},x4:{x:(pr-fr)/2+fr,y:(cr-fr)/2+fr}}}},Or.internal.getWidth=function(Ir){var ur=0;return p(Ir)==="object"&&(ur=nt(Ir.Rect[2])),ur},Or.internal.getHeight=function(Ir){var ur=0;return p(Ir)==="object"&&(ur=nt(Ir.Rect[3])),ur};var Qr=Ae.addField=function(Ir){if(er.call(this),!(Ir instanceof Tt))throw new Error("Invalid argument passed to jsPDF.addField.");return function(ur){he.internal.acroformPlugin.printedOut&&(he.internal.acroformPlugin.printedOut=!1,he.internal.acroformPlugin.acroFormDictionaryRoot=null),he.internal.acroformPlugin.acroFormDictionaryRoot||er.call(he),he.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(ur)}.call(this,Ir),Ir.page=he.internal.getCurrentPageInfo().pageNumber,this};Ae.addButton=function(Ir){if(Ir instanceof Xt==!1)throw new Error("Invalid argument passed to jsPDF.addButton.");return Qr.call(this,Ir)},Ae.addTextField=function(Ir){if(Ir instanceof tn==!1)throw new Error("Invalid argument passed to jsPDF.addTextField.");return Qr.call(this,Ir)},Ae.addChoiceField=function(Ir){if(Ir instanceof ht==!1)throw new Error("Invalid argument passed to jsPDF.addChoiceField.");return Qr.call(this,Ir)},p(pe)=="object"&&pe.ChoiceField===void 0&&pe.ListBox===void 0&&pe.ComboBox===void 0&&pe.EditBox===void 0&&pe.Button===void 0&&pe.PushButton===void 0&&pe.RadioButton===void 0&&pe.CheckBox===void 0&&pe.TextField===void 0&&pe.PasswordField===void 0?(pe.ChoiceField=ht,pe.ListBox=Ht,pe.ComboBox=Ft,pe.EditBox=ir,pe.Button=Xt,pe.PushButton=mr,pe.RadioButton=Ar,pe.CheckBox=Fr,pe.TextField=tn,pe.PasswordField=qr,pe.AcroForm={Appearance:Or}):console.warn("AcroForm-Classes are not populated into global-namespace, because the class-Names exist already."),Ae.AcroFormChoiceField=ht,Ae.AcroFormListBox=Ht,Ae.AcroFormComboBox=Ft,Ae.AcroFormEditBox=ir,Ae.AcroFormButton=Xt,Ae.AcroFormPushButton=mr,Ae.AcroFormRadioButton=Ar,Ae.AcroFormCheckBox=Fr,Ae.AcroFormTextField=tn,Ae.AcroFormPasswordField=qr,Ae.AcroFormAppearance=Or,Ae.AcroForm={ChoiceField:ht,ListBox:Ht,ComboBox:Ft,EditBox:ir,Button:Xt,PushButton:mr,RadioButton:Ar,CheckBox:Fr,TextField:tn,PasswordField:qr,Appearance:Or}})((window.tmp=vt).API,typeof window!="undefined"&&window||typeof g!="undefined"&&g),function(Ae){var pe="addImage_",he={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},le=Ae.getImageFileTypeByImageData=function(ne,ue){var Y,te;ue=ue||"UNKNOWN";var be,Le,Re,$e="UNKNOWN";for(Re in Ae.isArrayBufferView(ne)&&(ne=Ae.arrayBufferToBinaryString(ne)),he)for(be=he[Re],Y=0;Y>"}),"trns"in ue&&ue.trns.constructor==Array){for(var $e="",gt=0,Wt=ue.trns.length;gt>18]+te[(258048&ue)>>12]+te[(4032&ue)>>6]+te[63&ue];return Re==1?Y+=te[(252&(ue=be[$e]))>>2]+te[(3&ue)<<4]+"==":Re==2&&(Y+=te[(64512&(ue=be[$e]<<8|be[$e+1]))>>10]+te[(1008&ue)>>4]+te[(15&ue)<<2]+"="),Y},Ae.createImageInfo=function(ne,ue,Y,te,be,Le,Re,$e,gt,Wt,$t,Dt,Kt){var Yt={alias:$e,w:ue,h:Y,cs:te,bpc:be,i:Re,data:ne};return Le&&(Yt.f=Le),gt&&(Yt.dp=gt),Wt&&(Yt.trns=Wt),$t&&(Yt.pal=$t),Dt&&(Yt.smask=Dt),Kt&&(Yt.p=Kt),Yt},Ae.addImage=function(ne,ue,Y,te,be,Le,Re,$e,gt){var Wt="";if(typeof ue!="string"){var $t=Le;Le=be,be=te,te=Y,Y=ue,ue=$t}if(p(ne)==="object"&&!Fe(ne)&&"imageData"in ne){var Dt=ne;ne=Dt.imageData,ue=Dt.format||ue||"UNKNOWN",Y=Dt.x||Y||0,te=Dt.y||te||0,be=Dt.w||be,Le=Dt.h||Le,Re=Dt.alias||Re,$e=Dt.compression||$e,gt=Dt.rotation||Dt.angle||gt}var Kt=this.internal.getFilters();if($e===void 0&&Kt.indexOf("FlateEncode")!==-1&&($e="SLOW"),typeof ne=="string"&&(ne=unescape(ne)),isNaN(Y)||isNaN(te))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var Yt,Qt,Mt,dr,er,ot,xt,ut=function(){var ft=this.internal.collections[pe+"images"];return ft||(this.internal.collections[pe+"images"]=ft={},this.internal.events.subscribe("putResources",je),this.internal.events.subscribe("putXobjectDict",Ke)),ft}.call(this);if(!((Yt=At(ne,ut))||(Fe(ne)&&(ne=nt(ne,ue)),((xt=Re)==null||xt.length===0)&&(Re=typeof(ot=ne)=="string"?Ae.sHashCode(ot):Ae.isArrayBufferView(ot)?Ae.sHashCode(Ae.arrayBufferToBinaryString(ot)):null),Yt=At(Re,ut)))){if(this.isString(ne)&&((Wt=this.convertStringToImageData(ne))!==""||(Wt=Ae.loadFile(ne))!==void 0)&&(ne=Wt),ue=this.getImageFileTypeByImageData(ne,ue),!Xe(ue))throw new Error("addImage does not support files of type '"+ue+"', please ensure that a plugin for '"+ue+"' support is added.");if(this.supportsArrayBuffer()&&(ne instanceof Uint8Array||(Qt=ne,ne=this.binaryStringToUint8Array(ne))),!(Yt=this["process"+ue.toUpperCase()](ne,(er=0,(dr=ut)&&(er=Object.keys?Object.keys(dr).length:function(ft){var Lt=0;for(var Tt in ft)ft.hasOwnProperty(Tt)&&Lt++;return Lt}(dr)),er),Re,((Mt=$e)&&typeof Mt=="string"&&(Mt=Mt.toUpperCase()),Mt in Ae.image_compression?Mt:Ae.image_compression.NONE),Qt)))throw new Error("An unknown error occurred whilst processing the image")}return function(ft,Lt,Tt,ht,Ht,Ft,ir,Xt){var mr=function(Qr,Ir,ur){return Qr||Ir||(Ir=Qr=-96),Qr<0&&(Qr=-1*ur.w*72/Qr/this.internal.scaleFactor),Ir<0&&(Ir=-1*ur.h*72/Ir/this.internal.scaleFactor),Qr===0&&(Qr=Ir*ur.w/ur.h),Ir===0&&(Ir=Qr*ur.h/ur.w),[Qr,Ir]}.call(this,Tt,ht,Ht),Ar=this.internal.getCoordinateString,Nr=this.internal.getVerticalCoordinateString;if(Tt=mr[0],ht=mr[1],ir[Ft]=Ht,Xt){Xt*=Math.PI/180;var Fr=Math.cos(Xt),tn=Math.sin(Xt),qr=function(Ir){return Ir.toFixed(4)},Or=[qr(Fr),qr(tn),qr(-1*tn),qr(Fr),0,0,"cm"]}this.internal.write("q"),Xt?(this.internal.write([1,"0","0",1,Ar(ft),Nr(Lt+ht),"cm"].join(" ")),this.internal.write(Or.join(" ")),this.internal.write([Ar(Tt),"0","0",Ar(ht),"0","0","cm"].join(" "))):this.internal.write([Ar(Tt),"0","0",Ar(ht),Ar(ft),Nr(Lt+ht),"cm"].join(" ")),this.internal.write("/I"+Ht.i+" Do"),this.internal.write("Q")}.call(this,Y,te,be,Le,Yt,Yt.i,ut,gt),this},Ae.convertStringToImageData=function(ne){var ue,Y="";if(this.isString(ne)){var te;ue=(te=this.extractImageFromDataUrl(ne))!==null?te.data:ne;try{Y=atob(ue)}catch(be){throw Ae.validateStringAsBase64(ue)?new Error("atob-Error in jsPDF.convertStringToImageData "+be.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertStringToImageData ")}}return Y};var _t=function(ue,Y){return ue.subarray(Y,Y+5)};Ae.processJPEG=function(ne,ue,Y,te,be,Le){var Re,$e=this.decode.DCT_DECODE;if(!this.isString(ne)&&!this.isArrayBuffer(ne)&&!this.isArrayBufferView(ne))return null;if(this.isString(ne)&&(Re=function(gt){var Wt;if(le(gt)!=="JPEG")throw new Error("getJpegSize requires a binary string jpeg file");for(var $t=256*gt.charCodeAt(4)+gt.charCodeAt(5),Dt=4,Kt=gt.length;Dt>",nt.content=be;var ne=nt.objId+" 0 R";be="<>";else if(Fe.options.pageNumber)switch(be="<>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+pe+" 0 R")})}return this},h=vt.API,(c=function(){var pe=void 0;Object.defineProperty(this,"pdf",{get:function(){return pe},set:function(Xe){pe=Xe}});var he=150;Object.defineProperty(this,"width",{get:function(){return he},set:function(Xe){he=isNaN(Xe)||Number.isInteger(Xe)===!1||Xe<0?150:Xe,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=he+1)}});var le=300;Object.defineProperty(this,"height",{get:function(){return le},set:function(Xe){le=isNaN(Xe)||Number.isInteger(Xe)===!1||Xe<0?300:Xe,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=le+1)}});var Ne=[];Object.defineProperty(this,"childNodes",{get:function(){return Ne},set:function(Xe){Ne=Xe}});var je={};Object.defineProperty(this,"style",{get:function(){return je},set:function(Xe){je=Xe}}),Object.defineProperty(this,"parentNode",{get:function(){return!1}})}).prototype.getContext=function(Ae,pe){var he;if((Ae=Ae||"2d")!=="2d")return null;for(he in pe)this.pdf.context2d.hasOwnProperty(he)&&(this.pdf.context2d[he]=pe[he]);return(this.pdf.context2d._canvas=this).pdf.context2d},c.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},h.events.push(["initialized",function(){this.canvas=new c,this.canvas.pdf=this}]),o=vt.API,n={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},a=1,u=function(pe,he,le,Ne,je){n={x:pe,y:he,w:le,h:Ne,ln:je}},r=function(){return n},l={left:0,top:0,bottom:0},o.setHeaderFunction=function(Ae){i=Ae},o.getTextDimensions=function(Ae,pe){var he=this.table_font_size||this.internal.getFontSize(),le=(this.internal.getFont().fontStyle,(pe=pe||{}).scaleFactor||this.internal.scaleFactor),Ne=0,je=0,Ke=0;if(typeof Ae=="string")(Ne=this.getStringUnitWidth(Ae)*he)!=0&&(je=1);else{if(Object.prototype.toString.call(Ae)!=="[object Array]")throw new Error("getTextDimensions expects text-parameter to be of type String or an Array of Strings.");for(var Xe=0;Xe=this.internal.pageSize.getHeight()-nt.bottom&&(this.cellAddPage(),Fe=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(je,!0)),pe=r().y+r().h,Fe&&(pe=23)}if(Ne[0]!==void 0)if(this.printingHeaderRow?this.rect(Ae,pe,he,le,"FD"):this.rect(Ae,pe,he,le),Ke==="right"){Ne instanceof Array||(Ne=[Ne]);for(var At=0;At=2*Math.PI&&(Ft=0,ir=2*Math.PI),this.path.push({type:"arc",x:Tt,y:ht,radius:Ht,startAngle:Ft,endAngle:ir,counterclockwise:Xt})},Fe.prototype.arcTo=function(Tt,ht,Ht,Ft,ir){throw new Error("arcTo not implemented.")},Fe.prototype.rect=function(Tt,ht,Ht,Ft){if(isNaN(Tt)||isNaN(ht)||isNaN(Ht)||isNaN(Ft))throw console.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Tt,ht),this.lineTo(Tt+Ht,ht),this.lineTo(Tt+Ht,ht+Ft),this.lineTo(Tt,ht+Ft),this.lineTo(Tt,ht),this.lineTo(Tt+Ht,ht),this.lineTo(Tt,ht)},Fe.prototype.fillRect=function(Tt,ht,Ht,Ft){if(isNaN(Tt)||isNaN(ht)||isNaN(Ht)||isNaN(Ft))throw console.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!At.call(this)){var ir={};this.lineCap!=="butt"&&(ir.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(ir.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Tt,ht,Ht,Ft),this.fill(),ir.hasOwnProperty("lineCap")&&(this.lineCap=ir.lineCap),ir.hasOwnProperty("lineJoin")&&(this.lineJoin=ir.lineJoin)}},Fe.prototype.strokeRect=function(Tt,ht,Ht,Ft){if(isNaN(Tt)||isNaN(ht)||isNaN(Ht)||isNaN(Ft))throw console.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");_t.call(this)||(this.beginPath(),this.rect(Tt,ht,Ht,Ft),this.stroke())},Fe.prototype.clearRect=function(Tt,ht,Ht,Ft){if(isNaN(Tt)||isNaN(ht)||isNaN(Ht)||isNaN(Ft))throw console.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(Tt,ht,Ht,Ft))},Fe.prototype.save=function(Tt){Tt=typeof Tt!="boolean"||Tt;for(var ht=this.pdf.internal.getCurrentPageInfo().pageNumber,Ht=0;Ht"},d=function(pe){var he,le,Ne,je,Ke,Xe=String,Fe="length",nt="charCodeAt",At="slice",_t="replace";for(pe[At](-2),pe=pe[At](0,-2)[_t](/\s/g,"")[_t]("z","!!!!!"),Ne=[],je=0,Ke=(pe+=he="uuuuu"[At](pe[Fe]%5||5))[Fe];je>24,255&le>>16,255&le>>8,255&le);return function(ne,ue){for(var Y=he[Fe];0")!==-1&&(pe=pe.substr(0,pe.indexOf(">"))),pe.length%2&&(pe+="0"),he.test(pe)===!1)return"";for(var le="",Ne=0;Ne>8&255,le>>16&255,le>>24&255]),pe.length+2),pe=String.fromCharCode.apply(null,je)},t.processDataByFilters=function(Ae,pe){var he=0,le=Ae||"",Ne=[];for(typeof(pe=pe||[])=="string"&&(pe=[pe]),he=0;he>"),this.internal.out("endobj"),_=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+N+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){C!==void 0&&_!==void 0&&this.internal.out("/Names <>")}),this},(F=vt.API).events.push(["postPutResources",function(){var Ae=this,pe=/^(\d+) 0 obj$/;if(0> endobj")}var _t=Ae.internal.newObject();for(Ae.internal.write("<< /Names [ "),le=0;le>","endobj"),Ae.internal.newObject(),Ae.internal.write("<< /Dests "+_t+" 0 R"),Ae.internal.write(">>","endobj")}}]),F.events.push(["putCatalog",function(){0> \r endobj\r `},Ae.outline.count_r=function(pe,he){for(var le=0;le>>24&255,ue[ne++]=Fe>>>16&255,ue[ne++]=Fe>>>8&255,ue[ne++]=255&Fe,k.arrayBufferToBinaryString(ue)},K=function(pe,he){var le=Math.LOG2E*Math.log(32768)-8<<4|8,Ne=le<<8;return Ne|=Math.min(3,(he-1&255)>>1)<<6,Ne|=0,[le,255&(Ne+=31-Ne%31)]},R=function(pe,he){for(var le,Ne=1,je=0,Ke=pe.length,Xe=0;0>>0},B=function(pe,he,le,Ne){for(var je,Ke,Xe,Fe=pe.length/he,nt=new Uint8Array(pe.length+Fe),At=q(),_t=0;_t>>1)&255;return Ke},z=function(pe,he,le){var Ne,je,Ke,Xe,Fe=[],nt=0,At=pe.length;for(Fe[0]=4;nt>>Y&255,Y+=je.bits;Le[$e]=Wt>>>Y&255}if(je.bits===16){te=(Qt=new Uint32Array(je.decodePixels().buffer)).length,be=new Uint8Array(te*(32/je.pixelBitlength)*je.colors),Le=new Uint8Array(te*(32/je.pixelBitlength));for(var Wt,$t=1>>0&255,$t&&(be[gt++]=Wt>>>16&255,Wt=Qt[$e++],be[gt++]=Wt>>>0&255),Le[Dt++]=Wt>>>16&255;ue=8}le!==k.image_compression.NONE&&P()?(Ae=j(be,je.width*je.colors,je.colors,le),At=j(Le,je.width,1,le)):(Ae=be,At=Le,ne=null)}if(je.colorType===3&&(_t=this.color_spaces.INDEXED,nt=je.palette,je.transparency.indexed)){var Kt=je.transparency.indexed,Yt=0;for($e=0,te=Kt.length;$eNe&&(je.push(pe.slice(nt,Ke)),Fe=0,nt=Ke),Fe+=he[Ke],Ke++;return nt!==Ke&&je.push(pe.slice(nt,Ke)),je},xe=function(pe,he,le){le||(le={});var Ne,je,Ke,Xe,Fe,nt,At=[],_t=[At],ne=le.textIndent||0,ue=0,Y=0,te=pe.split(" "),be=Pe.apply(this,[" ",le])[0];if(nt=le.lineIndent===-1?te[0].length+2:le.lineIndent||0){var Le=Array(nt).join(" "),Re=[];te.map(function(Wt){1<(Wt=Wt.split(/\s*\n/)).length?Re=Re.concat(Wt.map(function($t,Dt){return(Dt&&$t.length?` `:"")+$t})):Re.push(Wt[0])}),te=Re,nt=pt.apply(this,[Le,le])}for(Ke=0,Xe=te.length;Ke>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=he,this},ze=vt.API,me=ae=_e="",ze.addMetadata=function(Ae,pe){return ae=pe||"http://jspdf.default.namespaceuri/",_e=Ae,this.internal.events.subscribe("postPutResources",function(){if(_e){var he='',le=unescape(encodeURIComponent('')),Ne=unescape(encodeURIComponent(he)),je=unescape(encodeURIComponent(_e)),Ke=unescape(encodeURIComponent("")),Xe=unescape(encodeURIComponent("")),Fe=Ne.length+je.length+Ke.length+le.length+Xe.length;me=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Fe+" >>"),this.internal.write("stream"),this.internal.write(le+Ne+je+Ke+Xe),this.internal.write("endstream"),this.internal.write("endobj")}else me=""}),this.internal.events.subscribe("putCatalog",function(){me&&this.internal.write("/Metadata "+me+" 0 R")}),this},function(Ae,pe){var he=Ae.API,le=he.pdfEscape16=function(Ke,Xe){for(var Fe,nt=Xe.metadata.Unicode.widths,At=["","0","00","000","0000"],_t=[""],ne=0,ue=Ke.length;ne> def /CMapName /Adobe-Identity-UCS def /CMapType 2 def 1 begincodespacerange <0000> endcodespacerange`,At=[],ue=0,Y=(nt=Object.keys(Xe).sort(function(te,be){return te-be})).length;ue<"+_t+">");return At.length&&(ne+=` `+At.length+` beginbfchar `+At.join(` `)+` endbfchar `),ne+=`endcmap CMapName currentdict /CMap defineresource pop end end`};he.events.push(["putFont",function(Ke){!function(Xe,Fe,nt,At){if(Xe.metadata instanceof Ae.API.TTFFont&&Xe.encoding==="Identity-H"){for(var _t=Xe.metadata.Unicode.widths,ne=Xe.metadata.subset.encode(Xe.metadata.glyIdsUsed,1),ue="",Y=0;Y>"),Fe("endobj");var Re=nt();Fe("<<"),Fe("/Type /Font"),Fe("/BaseFont /"+Xe.fontName),Fe("/FontDescriptor "+Le+" 0 R"),Fe("/W "+Ae.API.PDFObject.convert(_t)),Fe("/CIDToGIDMap /Identity"),Fe("/DW 1000"),Fe("/Subtype /CIDFontType2"),Fe("/CIDSystemInfo"),Fe("<<"),Fe("/Supplement 0"),Fe("/Registry (Adobe)"),Fe("/Ordering ("+Xe.encoding+")"),Fe(">>"),Fe(">>"),Fe("endobj"),Xe.objectNumber=nt(),Fe("<<"),Fe("/Type /Font"),Fe("/Subtype /Type0"),Fe("/ToUnicode "+be+" 0 R"),Fe("/BaseFont /"+Xe.fontName),Fe("/Encoding /"+Xe.encoding),Fe("/DescendantFonts ["+Re+" 0 R]"),Fe(">>"),Fe("endobj"),Xe.isAlreadyPutted=!0}}(Ke.font,Ke.out,Ke.newObject,Ke.putStream)}]),he.events.push(["putFont",function(Ke){!function(Xe,Fe,nt,At){if(Xe.metadata instanceof Ae.API.TTFFont&&Xe.encoding==="WinAnsiEncoding"){Xe.metadata.Unicode.widths;for(var _t=Xe.metadata.rawData,ne="",ue=0;ue<_t.length;ue++)ne+=String.fromCharCode(_t[ue]);var Y=nt();At({data:ne,addLength1:!0}),Fe("endobj");var te=nt();At({data:Ne(Xe.metadata.toUnicode),addLength1:!0}),Fe("endobj");var be=nt();for(Fe("<<"),Fe("/Descent "+Xe.metadata.decender),Fe("/CapHeight "+Xe.metadata.capHeight),Fe("/StemV "+Xe.metadata.stemV),Fe("/Type /FontDescriptor"),Fe("/FontFile2 "+Y+" 0 R"),Fe("/Flags 96"),Fe("/FontBBox "+Ae.API.PDFObject.convert(Xe.metadata.bbox)),Fe("/FontName /"+Xe.fontName),Fe("/ItalicAngle "+Xe.metadata.italicAngle),Fe("/Ascent "+Xe.metadata.ascender),Fe(">>"),Fe("endobj"),Xe.objectNumber=nt(),ue=0;ue>"),Fe("endobj"),Xe.isAlreadyPutted=!0}}(Ke.font,Ke.out,Ke.newObject,Ke.putStream)}]);var je=function(Xe){var Fe,nt,At=Xe.text||"",_t=Xe.x,ne=Xe.y,ue=Xe.options||{},Y=Xe.mutex||{},te=Y.pdfEscape,be=Y.activeFontKey,Le=Y.fonts,Re=(Y.activeFontSize,""),$e=0,gt="",Wt=Le[nt=be].encoding;if(Le[nt].encoding!=="Identity-H")return{text:At,x:_t,y:ne,options:ue,mutex:Y};for(gt=At,nt=be,Object.prototype.toString.call(At)==="[object Array]"&&(gt=At[0]),$e=0;$eFe-ne.top-ne.bottom&&le.pagesplit){var Le=function(Dt,Kt,Yt,Qt,Mt){var dr=document.createElement("canvas");dr.height=Mt,dr.width=Qt;var er=dr.getContext("2d");return er.mozImageSmoothingEnabled=!1,er.webkitImageSmoothingEnabled=!1,er.msImageSmoothingEnabled=!1,er.imageSmoothingEnabled=!1,er.fillStyle=le.backgroundColor||"#ffffff",er.fillRect(0,0,Qt,Mt),er.drawImage(Dt,Kt,Yt,Qt,Mt,0,0,Qt,Mt),dr},Re=function(){for(var $t,Dt,Kt=0,Yt=0,Qt={},Mt=!1;;){var dr;if(Yt=0,Qt.top=Kt!==0?ne.top:he,Qt.left=Kt!==0?ne.left:pe,Mt=(Xe-ne.left-ne.right)*Ke=At.width)break;this.addPage()}else er=[dr=Le(At,0,Kt,$t,Dt),Qt.left,Qt.top,dr.width/Ke,dr.height/Ke,te,null,be],this.addImage.apply(this,er);if((Kt+=Dt)>=At.height)break;this.addPage()}Ne(Y,Kt,null,er)}.bind(this);if(At.nodeName==="CANVAS"){var $e=new Image;$e.onload=Re,$e.src=At.toDataURL("image/png"),At=$e}else Re()}else{var gt=Math.random().toString(35),Wt=[At,pe,he,Y,ue,te,gt,be];this.addImage.apply(this,Wt),Ne(Y,ue,gt,Wt)}}.bind(this),typeof html2canvas!="undefined"&&!le.rstz)return html2canvas(Ae,le);if(typeof rasterizeHTML=="undefined")return null;var nt="drawDocument";return typeof Ae=="string"&&(nt=/^http/.test(Ae)?"drawURL":"drawHTML"),le.width=le.width||Xe*Ke,rasterizeHTML[nt](Ae,void 0,le).then(function(At){le.onrendered(At.image)},function(At){Ne(null,At)})},function(Ae){var pe,he,le,Ne,je,Ke,Xe,Fe,nt,At,_t,ne,ue,Y,te,be,Le,Re,$e,gt;pe=function(){return function(Kt){return Dt.prototype=Kt,new Dt};function Dt(){}}(),At=function(Kt){var Yt,Qt,Mt,dr,er,ot,xt;for(Qt=0,Mt=Kt.length,Yt=void 0,ot=dr=!1;!dr&&Qt!==Mt;)(Yt=Kt[Qt]=Kt[Qt].trimLeft())&&(dr=!0),Qt++;for(Qt=Mt-1;Mt&&!ot&&Qt!==-1;)(Yt=Kt[Qt]=Kt[Qt].trimRight())&&(ot=!0),Qt--;for(er=/\s+$/g,xt=!0,Qt=0;Qt!==Mt;)Kt[Qt]!="\u2028"&&(Yt=Kt[Qt].replace(/\s+/g," "),xt&&(Yt=Yt.trimLeft()),Yt&&(xt=er.test(Yt)),Kt[Qt]=Yt),Qt++;return Kt},ne=function(Kt){var Yt,Qt,Mt;for(Yt=void 0,Qt=(Mt=Kt.split(",")).shift();!Yt&&Qt;)Yt=le[Qt.trim().toLowerCase()],Qt=Mt.shift();return Yt},ue=function(Kt){var Yt;return-1<(Kt=Kt==="auto"?"0px":Kt).indexOf("em")&&!isNaN(Number(Kt.replace("em","")))&&(Kt=18.719*Number(Kt.replace("em",""))+"px"),-1Yt.pdf.margins_doc.top&&(Yt.pdf.addPage(),Yt.y=Yt.pdf.margins_doc.top,Yt.executeWatchFunctions(Mt));var Fr=nt(Mt),tn=Yt.x,qr=12/Yt.pdf.internal.scaleFactor,Or=(Fr["margin-left"]+Fr["padding-left"])*qr,Qr=(Fr["margin-right"]+Fr["padding-right"])*qr,Ir=(Fr["margin-top"]+Fr["padding-top"])*qr,ur=(Fr["margin-bottom"]+Fr["padding-bottom"])*qr;Fr.float!==void 0&&Fr.float==="right"?tn+=Yt.settings.width-Mt.width-Qr:tn+=Or,Yt.pdf.addImage(Ar,tn,Yt.y+Ir,Mt.width,Mt.height),Ar=void 0,Fr.float==="right"||Fr.float==="left"?(Yt.watchFunctions.push(function(cr,fr,xr,Gr){return Yt.y>=fr?(Yt.x+=cr,Yt.settings.width+=xr,!0):!!(Gr&&Gr.nodeType===1&&!Wt[Gr.nodeName]&&Yt.x+Gr.width>Yt.pdf.margins_doc.left+Yt.pdf.margins_doc.width)&&(Yt.x+=cr,Yt.y=fr,Yt.settings.width+=xr,!0)}.bind(this,Fr.float==="left"?-Mt.width-Or-Qr:0,Yt.y+Mt.height+Ir+ur,Mt.width)),Yt.watchFunctions.push(function(cr,fr,xr){return!(Yt.y]*?>/gi,""),ft="jsPDFhtmlText"+Date.now().toString()+(1e3*Math.random()).toFixed(0),(ut=document.createElement("div")).style.cssText="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;",ut.innerHTML=''),d.close(),s=d.w.frames[0].document,m=s.createElement("div")}catch(w){m=p.createElement("div"),s=p.body}return function(w){var b=[].slice.call(arguments,0);b.unshift(m),s.appendChild(m),m.addBehavior("#default#userData"),m.load(y),w.apply(this,b),s.removeChild(m);return}}},RPvy:function(D,I,e){var g=e("ProS"),f=e("VaxA"),y="sunburstRootToNode";g.registerAction({type:y,update:"updateView"},function(h,c){c.eachComponent({mainType:"series",subType:"sunburst",query:h},o);function o(i,n){var a=f.retrieveTargetInfo(h,[y],i);if(a){var u=i.getViewRoot();u&&(h.direction=f.aboveViewRoot(u,a.node)?"rollUp":"drillDown"),i.resetViewRoot(a.node)}}});var p="sunburstHighlight";g.registerAction({type:p,update:"updateView"},function(h,c){c.eachComponent({mainType:"series",subType:"sunburst",query:h},o);function o(i,n){var a=f.retrieveTargetInfo(h,[p],i);a&&(h.highlight=a.node)}});var v="sunburstUnhighlight";g.registerAction({type:v,update:"updateView"},function(h,c){c.eachComponent({mainType:"series",subType:"sunburst",query:h},o);function o(i,n){h.unhighlight=!0}})},RSch:function(D,I,e){var g=e("IwbS"),f=e("bYtY");function y(h,c,o){g.Group.call(this),this._createPolyline(h,c,o)}var p=y.prototype;p._createPolyline=function(h,c,o){var i=h.getItemLayout(c),n=new g.Polyline({shape:{points:i}});this.add(n),this._updateCommonStl(h,c,o)},p.updateData=function(h,c,o){var i=h.hostModel,n=this.childAt(0),a={shape:{points:h.getItemLayout(c)}};g.updateProps(n,a,i,c),this._updateCommonStl(h,c,o)},p._updateCommonStl=function(h,c,o){var i=this.childAt(0),n=h.getItemModel(c),a=h.getItemVisual(c,"color"),u=o&&o.lineStyle,r=o&&o.hoverLineStyle;(!o||h.hasItemOption)&&(u=n.getModel("lineStyle").getLineStyle(),r=n.getModel("emphasis.lineStyle").getLineStyle()),i.useStyle(f.defaults({strokeNoScale:!0,fill:"none",stroke:a},u)),i.hoverStyle=r,g.setHoverStyle(this)},p.updateLayout=function(h,c){var o=this.childAt(0);o.setShape("points",h.getItemLayout(c))},f.inherits(y,g.Group);var v=y;D.exports=v},RXMa:function(D,I,e){var g=e("y+Vt"),f=g.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(p,v){var h=v.cx,c=v.cy,o=Math.PI*2;p.moveTo(h+v.r,c),p.arc(h,c,v.r,0,o,!1),p.moveTo(h+v.r0,c),p.arc(h,c,v.r0,0,o,!0)}});D.exports=f},RZPm:function(D,I,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var y=f(e("q1tI")),p=g(e("JgUQ")),v=g(e("KQxl")),h=function(i,n){return y.createElement(v.default,Object.assign({},i,{ref:n,icon:p.default}))};h.displayName="FileOutlined";var c=y.forwardRef(h);I.default=c},RlCK:function(D,I,e){var g=e("ProS"),f=e("bYtY");function y(p,v,h){var c={},o=p==="toggleSelected",i;return h.eachComponent("legend",function(n){o&&i!=null?n[i?"select":"unSelect"](v.name):p==="allSelect"||p==="inverseSelect"?n[p]():(n[p](v.name),i=n.isSelected(v.name));var a=n.getData();f.each(a,function(u){var r=u.get("name");if(r===` `||r==="")return;var l=n.isSelected(r);c.hasOwnProperty(r)?c[r]=c[r]&&l:c[r]=l})}),p==="allSelect"||p==="inverseSelect"?{selected:c}:{name:v.name,selected:c}}g.registerAction("legendToggleSelect","legendselectchanged",f.curry(y,"toggleSelected")),g.registerAction("legendAllSelect","legendselectall",f.curry(y,"allSelect")),g.registerAction("legendInverseSelect","legendinverseselect",f.curry(y,"inverseSelect")),g.registerAction("legendSelect","legendselected",f.curry(y,"select")),g.registerAction("legendUnSelect","legendunselected",f.curry(y,"unSelect"))},RotF:function(D,I,e){D.exports=e("LSTS")},Rx6q:function(D,I){function e(g){var f=g.getRect(),y=g.getRangeInfo();return{coordSys:{type:"calendar",x:f.x,y:f.y,width:f.width,height:f.height,cellWidth:g.getCellWidth(),cellHeight:g.getCellHeight(),rangeInfo:{start:y.start,end:y.end,weeks:y.weeks,dayCount:y.allDay}},api:{coord:function(p,v){return g.dataToPoint(p,v)}}}}D.exports=e},"S/Yl":function(D,I,e){var g=e("Zvw2"),f=e("aX7z"),y=e("+TT/"),p=y.getLayoutRect,v=e("bYtY"),h=v.each;function c(i,n,a){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(i,n,a),this.model=i}c.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:c,_init:function(i,n,a){var u=this.dimension,r=new g(u,f.createScaleByModel(i),[0,0],i.get("type"),i.get("position")),l=r.type==="category";r.onBand=l&&i.get("boundaryGap"),r.inverse=i.get("inverse"),r.orient=i.get("orient"),i.axis=r,r.model=i,r.coordinateSystem=this,this._axis=r},update:function(i,n){i.eachSeries(function(a){if(a.coordinateSystem===this){var u=a.getData();h(u.mapDimension(this.dimension,!0),function(r){this._axis.scale.unionExtentFromData(u,r)},this),f.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(i,n){this._rect=p({left:i.get("left"),top:i.get("top"),right:i.get("right"),bottom:i.get("bottom"),width:i.get("width"),height:i.get("height")},{width:n.getWidth(),height:n.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var i=this._rect,n=this._axis,a=n.isHorizontal(),u=a?[0,i.width]:[0,i.height],r=n.reverse?1:0;n.setExtent(u[r],u[1-r]),this._updateAxisTransform(n,a?i.x:i.y)},_updateAxisTransform:function(i,n){var a=i.getExtent(),u=a[0]+a[1],r=i.isHorizontal();i.toGlobalCoord=r?function(l){return l+n}:function(l){return u-l+n},i.toLocalCoord=r?function(l){return l-n}:function(l){return u-l+n}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(i){var n=this.getRect(),a=this.getAxis(),u=a.orient;return u==="horizontal"?a.contain(a.toLocalCoord(i[0]))&&i[1]>=n.y&&i[1]<=n.y+n.height:a.contain(a.toLocalCoord(i[1]))&&i[0]>=n.y&&i[0]<=n.y+n.height},pointToData:function(i){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(i[n.orient==="horizontal"?0:1]))]},dataToPoint:function(i){var n=this.getAxis(),a=this.getRect(),u=[],r=n.orient==="horizontal"?0:1;return i instanceof Array&&(i=i[0]),u[r]=n.toGlobalCoord(n.dataToCoord(+i)),u[1-r]=r===0?a.y+a.height/2:a.x+a.width/2,u}};var o=c;D.exports=o},"SA+Z":function(D,I,e){var g=e("wTVA"),f=e("EbDI"),y=e("ZhPi"),p=e("wkBT");function v(h){return g(h)||f(h)||y(h)||p()}D.exports=v},"SA4+":function(D,I,e){var g=e("Tghj"),f=g.__DEV__,y=e("ProS"),p=e("IwbS"),v=e("zYTA"),h=e("bYtY");function c(a,u,r){var l=a[1]-a[0];u=h.map(u,function(d){return{interval:[(d.interval[0]-a[0])/l,(d.interval[1]-a[0])/l]}});var t=u.length,s=0;return function(d){for(var m=s;m=0;m--){var w=u[m].interval;if(w[0]<=d&&d<=w[1]){s=m;break}}return m>=0&&m=u[0]&&l<=u[1]}}function i(a){var u=a.dimensions;return u[0]==="lng"&&u[1]==="lat"}var n=y.extendChartView({type:"heatmap",render:function(a,u,r){var l;u.eachComponent("visualMap",function(s){s.eachTargetSeries(function(d){d===a&&(l=s)})}),this.group.removeAll(),this._incrementalDisplayable=null;var t=a.coordinateSystem;t.type==="cartesian2d"||t.type==="calendar"?this._renderOnCartesianAndCalendar(a,r,0,a.getData().count()):i(t)&&this._renderOnGeo(t,a,l,r)},incrementalPrepareRender:function(a,u,r){this.group.removeAll()},incrementalRender:function(a,u,r,l){var t=u.coordinateSystem;t&&this._renderOnCartesianAndCalendar(u,l,a.start,a.end,!0)},_renderOnCartesianAndCalendar:function(a,u,r,l,t){var s=a.coordinateSystem,d,m;if(s.type==="cartesian2d"){var w=s.getAxis("x"),b=s.getAxis("y");d=w.getBandWidth(),m=b.getBandWidth()}for(var E=this.group,A=a.getData(),S="itemStyle",T="emphasis.itemStyle",O="label",x="emphasis.label",C=a.getModel(S).getItemStyle(["color"]),_=a.getModel(T).getItemStyle(),N=a.getModel(O),F=a.getModel(x),k=s.type,P=k==="cartesian2d"?[A.mapDimension("x"),A.mapDimension("y"),A.mapDimension("value")]:[A.mapDimension("time"),A.mapDimension("value")],j=r;j=0?b=b+A:b=b-A:C>=0?b=b-A:b=b+A}return b}function u(r,l){var t=[],s=g.quadraticSubdivide,d=[[],[],[]],m=[[],[]],w=[];l/=2,r.eachEdge(function(b,E){var A=b.getLayout(),S=b.getVisual("fromSymbol"),T=b.getVisual("toSymbol");A.__original||(A.__original=[f.clone(A[0]),f.clone(A[1])],A[2]&&A.__original.push(f.clone(A[2])));var O=A.__original;if(A[2]!=null){if(f.copy(d[0],O[0]),f.copy(d[1],O[2]),f.copy(d[2],O[1]),S&&S!=="none"){var x=p(b.node1),C=a(d,O[0],x*l);s(d[0][0],d[1][0],d[2][0],C,t),d[0][0]=t[3],d[1][0]=t[4],s(d[0][1],d[1][1],d[2][1],C,t),d[0][1]=t[3],d[1][1]=t[4]}if(T&&T!=="none"){var x=p(b.node2),C=a(d,O[1],x*l);s(d[0][0],d[1][0],d[2][0],C,t),d[1][0]=t[1],d[2][0]=t[2],s(d[0][1],d[1][1],d[2][1],C,t),d[1][1]=t[1],d[2][1]=t[2]}f.copy(A[0],d[0]),f.copy(A[1],d[2]),f.copy(A[2],d[1])}else{if(f.copy(m[0],O[0]),f.copy(m[1],O[1]),f.sub(w,m[1],m[0]),f.normalize(w,w),S&&S!=="none"){var x=p(b.node1);f.scaleAndAdd(m[0],m[0],w,x*l)}if(T&&T!=="none"){var x=p(b.node2);f.scaleAndAdd(m[1],m[1],w,-x*l)}f.copy(A[0],m[0]),f.copy(A[1],m[1])}})}D.exports=u},SJMd:function(D,I){/** * @license * Copyright (C) 2006 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var e,g,f,y=!1,p,v;window.PR_SHOULD_USE_CONTINUATION=!0;var h,c;(function(){var o=window,i=["break,continue,do,else,for,if,return,while"],n=[i,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],a=[n,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],u=[a,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],r=[a,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],l=[a,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],t="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",s=[a,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],d="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",m=[i,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],w=[i,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],b=[i,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],E=[u,l,r,s,d,m,w,b],A=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,S="str",T="kwd",O="com",x="typ",C="lit",_="pun",N="pln",F="tag",k="dec",P="src",j="atn",K="atv",R="nocode",B="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function U(Ie){for(var de=0,ee=!1,se=!1,ke=0,Ce=Ie.length;ke122||(Ve<65||st>90||Rt.push([Math.max(65,st)|32,Math.min(Ve,90)|32]),Ve<97||st>122||Rt.push([Math.max(97,st)&~32,Math.min(Ve,122)&~32]))}}Rt.sort(function(Qe,ye){return Qe[0]-ye[0]||ye[1]-Qe[1]});for(var ie=[],$=[],Ye=0;Yeit[0]&&(it[1]+1>it[0]&&wt.push("-"),wt.push(me(it[1])))}return wt.push("]"),wt.join("")}function Ze(Ct){for(var Be=Ct.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Rt=Be.length,He=[],wt=0,Ye=0;wt=2&&st==="["?Be[wt]=Oe(et):st!=="\\"&&(Be[wt]=et.replace(/[a-zA-Z]/g,function($){var it=$.charCodeAt(0);return"["+String.fromCharCode(it&~32,it|32)+"]"}))}return Be.join("")}for(var vt=[],ke=0,Ce=Ie.length;ke=0;)ee[vt.charAt(Ct)]=Ze;var Be=Ze[1],Rt=""+Be;ae.hasOwnProperty(Rt)||(_e.push(Be),ae[Rt]=null)}_e.push(/[\0-\uffff]/),se=U(_e)})();var ke=de.length,Ce=function ze(_e){for(var ae=_e.sourceCode,me=_e.basePos,Oe=_e.sourceNode,Ze=[me,N],vt=0,Ct=ae.match(se)||[],Be={},Rt=0,He=Ct.length;Rt=5&&Ye.substring(0,5)==="lang-",rt&&!(et&&typeof et[1]=="string")&&(rt=!1,Ye=P),rt||(Be[wt]=Ye)}var ie=vt;if(vt+=wt.length,!rt)Ze.push(me+ie,Ye);else{var $=et[1],it=wt.indexOf($),Qe=it+$.length;et[2]&&(Qe=wt.length-et[2].length,it=Qe-$.length);var ye=Ye.substring(5);W(Oe,me+ie,wt.substring(0,it),ze,Ze),W(Oe,me+ie+it,$,Pe(ye,$),Ze),W(Oe,me+ie+Qe,wt.substring(Qe),ze,Ze)}}_e.decorations=Ze};return Ce}function q(Ie){var de=[],ee=[];Ie.tripleQuotedStrings?de.push([S,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Ie.multiLineStrings?de.push([S,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):de.push([S,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Ie.verbatimStrings&&ee.push([S,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var se=Ie.hashComments;se&&(Ie.cStyleComments?(se>1?de.push([O,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):de.push([O,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),ee.push([S,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):de.push([O,/^#[^\r\n]*/,null,"#"])),Ie.cStyleComments&&(ee.push([O,/^\/\/[^\r\n]*/,null]),ee.push([O,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ke=Ie.regexLiterals;if(ke){var Ce=ke>1?"":` \r`,ze=Ce?".":"[\\S\\s]",_e="/(?=[^/*"+Ce+"])(?:[^/\\x5B\\x5C"+Ce+"]|\\x5C"+ze+"|\\x5B(?:[^\\x5C\\x5D"+Ce+"]|\\x5C"+ze+")*(?:\\x5D|$))+/";ee.push(["lang-regex",RegExp("^"+B+"("+_e+")")])}var ae=Ie.types;ae&&ee.push([x,ae]);var me=(""+Ie.keywords).replace(/^ | $/g,"");me.length&&ee.push([T,new RegExp("^(?:"+me.replace(/[\s,]+/g,"|")+")\\b"),null]),de.push([N,/^\s+/,null,` \r \xA0`]);var Oe="^.[^\\s\\w.$@'\"`/\\\\]*";return Ie.regexLiterals&&(Oe+="(?!s*/)"),ee.push([C,/^@[a-z_$][a-z_$@0-9]*/i,null],[x,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[N,/^[a-z_$][a-z_$@0-9]*/i,null],[C,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[N,/^\\[\s\S]?/,null],[_,new RegExp(Oe),null]),X(de,ee)}var fe=q({keywords:E,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function G(Ie,de,ee){for(var se=/(?:^|\s)nocode(?:\s|$)/,ke=/\r\n?|\n/,Ce=Ie.ownerDocument,ze=Ce.createElement("li");Ie.firstChild;)ze.appendChild(Ie.firstChild);var _e=[ze];function ae(Be){var Rt=Be.nodeType;if(Rt==1&&!se.test(Be.className))if(Be.nodeName==="br")me(Be),Be.parentNode&&Be.parentNode.removeChild(Be);else for(var He=Be.firstChild;He;He=He.nextSibling)ae(He);else if((Rt==3||Rt==4)&&ee){var wt=Be.nodeValue,Ye=wt.match(ke);if(Ye){var et=wt.substring(0,Ye.index);Be.nodeValue=et;var rt=wt.substring(Ye.index+Ye[0].length);if(rt){var st=Be.parentNode;st.insertBefore(Ce.createTextNode(rt),Be.nextSibling)}me(Be),et||Be.parentNode.removeChild(Be)}}}function me(Be){for(;!Be.nextSibling;)if(Be=Be.parentNode,!Be)return;function Rt(Ye,et){var rt=et?Ye.cloneNode(!1):Ye,st=Ye.parentNode;if(st){var Ve=Rt(st,1),ie=Ye.nextSibling;Ve.appendChild(rt);for(var $=ie;$;$=ie)ie=$.nextSibling,Ve.appendChild($)}return rt}for(var He=Rt(Be.nextSibling,0),wt;(wt=He.parentNode)&&wt.nodeType===1;)He=wt;_e.push(He)}for(var Oe=0;Oe<_e.length;++Oe)ae(_e[Oe]);de===(de|0)&&_e[0].setAttribute("value",de);var Ze=Ce.createElement("ol");Ze.className="linenums";for(var vt=Math.max(0,de-1|0)||0,Oe=0,Ct=_e.length;Oe=st&&(ae+=2),Ce>=Ve&&(Ze+=2)}}finally{wt&&(wt.style.display=Ye)}}var Se={};function ge(Ie,de){for(var ee=de.length;--ee>=0;){var se=de[ee];Se.hasOwnProperty(se)?o.console&&console.warn("cannot override language handler %s",se):Se[se]=Ie}}function Pe(Ie,de){return Ie&&Se.hasOwnProperty(Ie)||(Ie=/^\s*]*(?:>|$)/],[O,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[_,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),ge(X([[N,/^[\s]+/,null,` \r `],[K,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[F,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[j,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[_,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),ge(X([],[[K,/^[\s\S]+/]]),["uq.val"]),ge(q({keywords:u,hashComments:!0,cStyleComments:!0,types:A}),["c","cc","cpp","cxx","cyc","m"]),ge(q({keywords:"null,true,false"}),["json"]),ge(q({keywords:l,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:A}),["cs"]),ge(q({keywords:r,cStyleComments:!0}),["java"]),ge(q({keywords:b,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ge(q({keywords:m,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ge(q({keywords:d,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ge(q({keywords:w,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ge(q({keywords:s,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ge(q({keywords:t,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ge(X([],[[S,/^[\s\S]+/]]),["regex"]);function Ge(Ie){var de=Ie.langExtension;try{var ee=H(Ie.sourceNode,Ie.pre),se=ee.sourceCode;Ie.sourceCode=se,Ie.spans=ee.spans,Ie.basePos=0,Pe(de,se)(Ie),ve(Ie)}catch(ke){o.console&&console.log(ke&&ke.stack||ke)}}function pt(Ie,de,ee){var se=ee||!1,ke=de||null,Ce=document.createElement("div");Ce.innerHTML="
"+Ie+"
",Ce=Ce.firstChild,se&&G(Ce,se,!0);var ze={langExtension:ke,numberLines:se,sourceNode:Ce,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Ge(ze),Ce.innerHTML}function Te(Ie,de){var ee=de||document.body,se=ee.ownerDocument||document;function ke(rt){return ee.getElementsByTagName(rt)}for(var Ce=[ke("pre"),ke("code"),ke("xmp")],ze=[],_e=0;_e=v.right?h.x=v.width-1:h.x=f-v.left,y=v.bottom?h.y=v.height-1:h.y=y-v.top,h}},Sdc0:function(D,I,e){"use strict";var g=e("pVnL"),f=e.n(g),y=e("lSNA"),p=e.n(y),v=e("q1tI"),h=e("rePB"),c=e("ODXe"),o=e("Ff2n"),i=e("TSYQ"),n=e.n(i),a=e("6cGi"),u=e("4IlW"),r=v.forwardRef(function(T,O){var x,C=T.prefixCls,_=C===void 0?"rc-switch":C,N=T.className,F=T.checked,k=T.defaultChecked,P=T.disabled,j=T.loadingIcon,K=T.checkedChildren,R=T.unCheckedChildren,B=T.onClick,U=T.onChange,H=T.onKeyDown,W=Object(o.a)(T,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),V=Object(a.a)(!1,{value:F,defaultValue:k}),z=Object(c.a)(V,2),X=z[0],q=z[1];function fe(ge,Pe){var Ge=X;return P||(Ge=ge,q(Ge),U==null||U(Ge,Pe)),Ge}function G(ge){ge.which===u.a.LEFT?fe(!1,ge):ge.which===u.a.RIGHT&&fe(!0,ge),H==null||H(ge)}function ve(ge){var Pe=fe(!X,ge);B==null||B(Pe,ge)}var Se=n()(_,N,(x={},Object(h.a)(x,"".concat(_,"-checked"),X),Object(h.a)(x,"".concat(_,"-disabled"),P),x));return v.createElement("button",Object.assign({},W,{type:"button",role:"switch","aria-checked":X,disabled:P,className:Se,ref:O,onKeyDown:G,onClick:ve}),j,v.createElement("span",{className:"".concat(_,"-inner")},X?K:R))});r.displayName="Switch";var l=r,t=e("gZBC"),s=e.n(t),d=e("g0mS"),m=e("H84U"),w=e("3Nzz"),b=e("uaoM"),E=function(T,O){var x={};for(var C in T)Object.prototype.hasOwnProperty.call(T,C)&&O.indexOf(C)<0&&(x[C]=T[C]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,C=Object.getOwnPropertySymbols(T);_3?1.4:w>1?1.2:1.1,S=m>0?A:1/A;a(this,"zoom","zoomOnMouseWheel",t,{scale:S,originX:b,originY:E})}if(d){var T=Math.abs(m),O=(m>0?1:-1)*(T>3?.4:T>1?.15:.05);a(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:O,originX:b,originY:E})}}function n(t){if(p.isTaken(this._zr,"globalPan"))return;var s=t.pinchScale>1?1.1:1/1.1;a(this,"zoom",null,t,{scale:s,originX:t.pinchX,originY:t.pinchY})}function a(t,s,d,m,w){t.pointerChecker&&t.pointerChecker(m,w.originX,w.originY)&&(y.stop(m.event),u(t,s,d,m,w))}function u(t,s,d,m,w){w.isAvailableBehavior=g.bind(r,null,d,m),t.trigger(s,w)}function r(t,s,d){var m=d[t];return!t||m&&(!g.isString(m)||s.event[m+"Key"])}var l=v;D.exports=l},SgaC:function(D,I,e){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;function g(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function f(v,h){for(var c=0;c0;){if(a.rQwait("RRE",4+8))return!1;var t=a.rQshiftBytes(4),s=a.rQshift16(),d=a.rQshift16(),m=a.rQshift16(),w=a.rQshift16();u.fillRect(c+s,o+d,m,w,t),this._subrects--}return!0}}]),v}();I.default=p},Sj0X:function(D,I,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var y=f(e("q1tI")),p=g(e("XuBP")),v=g(e("KQxl")),h=function(i,n){return y.createElement(v.default,Object.assign({},i,{ref:n,icon:p.default}))};h.displayName="DownOutlined";var c=y.forwardRef(h);I.default=c},Sj9i:function(D,I,e){var g=e("QBsz"),f=g.create,y=g.distSquare,p=Math.pow,v=Math.sqrt,h=1e-8,c=1e-4,o=v(3),i=1/3,n=f(),a=f(),u=f();function r(C){return C>-h&&Ch||C<-h}function t(C,_,N,F,k){var P=1-k;return P*P*(P*C+3*k*_)+k*k*(k*F+3*P*N)}function s(C,_,N,F,k){var P=1-k;return 3*(((_-C)*P+2*(N-_)*k)*P+(F-N)*k*k)}function d(C,_,N,F,k,P){var j=F+3*(_-N)-C,K=3*(N-_*2+C),R=3*(_-C),B=C-k,U=K*K-3*j*R,H=K*R-9*j*B,W=R*R-3*K*B,V=0;if(r(U)&&r(H))if(r(K))P[0]=0;else{var z=-R/K;z>=0&&z<=1&&(P[V++]=z)}else{var X=H*H-4*U*W;if(r(X)){var q=H/U,z=-K/j+q,fe=-q/2;z>=0&&z<=1&&(P[V++]=z),fe>=0&&fe<=1&&(P[V++]=fe)}else if(X>0){var G=v(X),ve=U*K+1.5*j*(-H+G),Se=U*K+1.5*j*(-H-G);ve<0?ve=-p(-ve,i):ve=p(ve,i),Se<0?Se=-p(-Se,i):Se=p(Se,i);var z=(-K-(ve+Se))/(3*j);z>=0&&z<=1&&(P[V++]=z)}else{var ge=(2*U*K-3*j*H)/(2*v(U*U*U)),Pe=Math.acos(ge)/3,Ge=v(U),pt=Math.cos(Pe),z=(-K-2*Ge*pt)/(3*j),fe=(-K+Ge*(pt+o*Math.sin(Pe)))/(3*j),Te=(-K+Ge*(pt-o*Math.sin(Pe)))/(3*j);z>=0&&z<=1&&(P[V++]=z),fe>=0&&fe<=1&&(P[V++]=fe),Te>=0&&Te<=1&&(P[V++]=Te)}}return V}function m(C,_,N,F,k){var P=6*N-12*_+6*C,j=9*_+3*F-3*C-9*N,K=3*_-3*C,R=0;if(r(j)){if(l(P)){var B=-K/P;B>=0&&B<=1&&(k[R++]=B)}}else{var U=P*P-4*j*K;if(r(U))k[0]=-P/(2*j);else if(U>0){var H=v(U),B=(-P+H)/(2*j),W=(-P-H)/(2*j);B>=0&&B<=1&&(k[R++]=B),W>=0&&W<=1&&(k[R++]=W)}}return R}function w(C,_,N,F,k,P){var j=(_-C)*k+C,K=(N-_)*k+_,R=(F-N)*k+N,B=(K-j)*k+j,U=(R-K)*k+K,H=(U-B)*k+B;P[0]=C,P[1]=j,P[2]=B,P[3]=H,P[4]=H,P[5]=U,P[6]=R,P[7]=F}function b(C,_,N,F,k,P,j,K,R,B,U){var H,W=.005,V=Infinity,z,X,q,fe;n[0]=R,n[1]=B;for(var G=0;G<1;G+=.05)a[0]=t(C,N,k,j,G),a[1]=t(_,F,P,K,G),q=y(n,a),q=0&&q=0&&B<=1&&(k[R++]=B)}}else{var U=j*j-4*P*K;if(r(U)){var B=-j/(2*P);B>=0&&B<=1&&(k[R++]=B)}else if(U>0){var H=v(U),B=(-j+H)/(2*P),W=(-j-H)/(2*P);B>=0&&B<=1&&(k[R++]=B),W>=0&&W<=1&&(k[R++]=W)}}return R}function T(C,_,N){var F=C+N-2*_;return F===0?.5:(C-_)/F}function O(C,_,N,F,k){var P=(_-C)*F+C,j=(N-_)*F+_,K=(j-P)*F+P;k[0]=C,k[1]=P,k[2]=K,k[3]=K,k[4]=j,k[5]=N}function x(C,_,N,F,k,P,j,K,R){var B,U=.005,H=Infinity;n[0]=j,n[1]=K;for(var W=0;W<1;W+=.05){a[0]=E(C,N,k,W),a[1]=E(_,F,P,W);var V=y(n,a);V=0&&V=0;--b)if(w[b]===m)return!0;return!1}),d):null:d[0]},r.prototype.update=function(t,s){if(!t)return;var d=this.getDefs(!1);if(t[this._domName]&&d.contains(t[this._domName]))typeof s=="function"&&s(t);else{var m=this.add(t);m&&(t[this._domName]=m)}},r.prototype.addDom=function(t){var s=this.getDefs(!0);s.appendChild(t)},r.prototype.removeDom=function(t){var s=this.getDefs(!1);s&&t[this._domName]&&(s.removeChild(t[this._domName]),t[this._domName]=null)},r.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var s=[];return y.each(this._tagNames,function(d){var m=t.getElementsByTagName(d);s=s.concat([].slice.call(m))}),s},r.prototype.markAllUnused=function(){var t=this.getDoms(),s=this;y.each(t,function(d){d[s._markLabel]=a})},r.prototype.markUsed=function(t){t&&(t[this._markLabel]=u)},r.prototype.removeUnused=function(){var t=this.getDefs(!1);if(!t)return;var s=this.getDoms(),d=this;y.each(s,function(m){m[d._markLabel]!==u&&t.removeChild(m)})},r.prototype.getSvgProxy=function(t){return t instanceof p?o:t instanceof v?i:t instanceof h?n:o},r.prototype.getTextSvgElement=function(t){return t.__textSvgEl},r.prototype.getSvgElement=function(t){return t.__svgEl};var l=r;D.exports=l},Swgg:function(D,I,e){var g=e("fc+c"),f=g.extend({type:"dataZoom.select"});D.exports=f},Sxd8:function(D,I,e){var g=e("ZCgT");function f(y){var p=g(y),v=p%1;return p===p?v?p-v:p:0}D.exports=f},T1rO:function(D,I,e){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var g=f(e("zdCA"));function f(p){return p&&p.__esModule?p:{default:p}}var y=g;I.default=y,D.exports=y},T4UG:function(D,I,e){var g=e("Tghj"),f=g.__DEV__,y=e("bYtY"),p=e("ItGF"),v=e("7aKB"),h=v.formatTime,c=v.encodeHTML,o=v.addCommas,i=v.getTooltipMarker,n=e("4NO4"),a=e("bLfw"),u=e("5Hur"),r=e("OKJ2"),l=e("+TT/"),t=l.getLayoutParams,s=l.mergeLayoutParam,d=e("9H2F"),m=d.createTask,w=e("D5nY"),b=w.prepareSource,E=w.getSource,A=e("KxfA"),S=A.retrieveRawValue,T=n.makeInner(),O=a.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(R,B,U,H){this.seriesIndex=this.componentIndex,this.dataTask=m({count:_,reset:N}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(R,U),b(this);var W=this.getInitialData(R,U);k(W,this),this.dataTask.context.data=W,T(this).dataBeforeProcessed=W,x(this)},mergeDefaultAndTheme:function(R,B){var U=this.layoutMode,H=U?t(R):{},W=this.subType;a.hasClass(W)&&(W+="Series"),y.merge(R,B.getTheme().get(this.subType)),y.merge(R,this.getDefaultOption()),n.defaultEmphasis(R,"label",["show"]),this.fillDataTextStyle(R.data),U&&s(R,H,U)},mergeOption:function(R,B){R=y.merge(this.option,R,!0),this.fillDataTextStyle(R.data);var U=this.layoutMode;U&&s(this.option,R,U),b(this);var H=this.getInitialData(R,B);k(H,this),this.dataTask.dirty(),this.dataTask.context.data=H,T(this).dataBeforeProcessed=H,x(this)},fillDataTextStyle:function(R){if(R&&!y.isTypedArray(R))for(var B=["show"],U=0;U":` `,z=H==="richText",X={},q=0;function fe(Ce){var ze=y.reduce(Ce,function(Ze,vt,Ct){var Be=ve.getDimensionInfo(Ct);return Ze|=Be&&Be.tooltip!==!1&&Be.displayName!=null},0),_e=[];Se.length?y.each(Se,function(Ze){ae(S(ve,R,Ze),Ze)}):y.each(Ce,ae);function ae(Ze,vt){var Ct=ve.getDimensionInfo(vt);if(!Ct||Ct.otherDims.tooltip===!1)return;var Be=Ct.type,Rt="sub"+W.seriesIndex+"at"+q,He=i({color:pt,type:"subItem",renderMode:H,markerId:Rt}),wt=typeof He=="string"?He:He.content,Ye=(ze?wt+c(Ct.displayName||"-")+": ":"")+c(Be==="ordinal"?Ze+"":Be==="time"?B?"":h("yyyy/MM/dd hh:mm:ss",Ze):o(Ze));Ye&&_e.push(Ye),z&&(X[Rt]=pt,++q)}var me=ze?z?` `:"
":"",Oe=me+_e.join(me||", ");return{renderMode:H,content:Oe,style:X}}function G(Ce){return{renderMode:H,content:c(o(Ce)),style:X}}var ve=this.getData(),Se=ve.mapDimension("defaultedTooltip",!0),ge=Se.length,Pe=this.getRawValue(R),Ge=y.isArray(Pe),pt=ve.getItemVisual(R,"color");y.isObject(pt)&&pt.colorStops&&(pt=(pt.colorStops[0]||{}).color),pt=pt||"transparent";var Te=ge>1||Ge&&!ge?fe(Pe):G(ge?S(ve,R,Se[0]):Ge?Pe[0]:Pe),xe=Te.content,lt=W.seriesIndex+"at"+q,Ie=i({color:pt,type:"item",renderMode:H,markerId:lt});X[lt]=pt,++q;var de=ve.getName(R),ee=this.name;n.isNameSpecified(this)||(ee=""),ee=ee?c(ee)+(B?": ":V):"";var se=typeof Ie=="string"?Ie:Ie.content,ke=B?se+ee+xe:ee+se+(de?c(de)+": "+xe:xe);return{html:ke,markers:X}},isAnimationEnabled:function(){if(p.node)return!1;var R=this.getShallow("animation");return R&&(this.getData().count()>this.getShallow("animationThreshold")&&(R=!1)),R},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(R,B,U){var H=this.ecModel,W=u.getColorFromPalette.call(this,R,B,U);return W||(W=H.getColorFromPalette(R,B,U)),W},coordDimToDataDim:function(R){return this.getRawData().mapDimension(R,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});y.mixin(O,r),y.mixin(O,u);function x(R){var B=R.name;n.isNameSpecified(R)||(R.name=C(R)||B)}function C(R){var B=R.getRawData(),U=B.mapDimension("seriesName",!0),H=[];return y.each(U,function(W){var V=B.getDimensionInfo(W);V.displayName&&H.push(V.displayName)}),H.join(" ")}function _(R){return R.model.getRawData().count()}function N(R){var B=R.model;return B.setData(B.getRawData().cloneShallow()),F}function F(R,B){B.outputData&&R.end>B.outputData.count()&&B.model.getRawData().cloneShallow(B.outputData)}function k(R,B){y.each(R.CHANGABLE_METHODS,function(U){R.wrapMethod(U,y.curry(P,B))})}function P(R){var B=j(R);B&&B.setOutputEnd(this.count())}function j(R){var B=(R.ecModel||{}).scheduler,U=B&&B.getPipeline(R.uid);if(U){var H=U.currentTask;if(H){var W=H.agentStubMap;W&&(H=W.get(R.uid))}return H}}var K=O;D.exports=K},T6xi:function(D,I,e){var g=e("YgsL"),f=e("nCxF");function y(p,v,h){var c=v.points,o=v.smooth;if(c&&c.length>=2){if(o&&o!=="spline"){var i=f(c,o,h,v.smoothConstraint);p.moveTo(c[0][0],c[0][1]);for(var n=c.length,a=0;a<(h?n:n-1);a++){var u=i[a*2],r=i[a*2+1],l=c[(a+1)%n];p.bezierCurveTo(u[0],u[1],r[0],r[1],l[0],l[1])}}else{o==="spline"&&(c=g(c,h)),p.moveTo(c[0][0],c[0][1]);for(var a=1,t=c.length;a0?p:v)}function r(l,t){return t.get(l>0?f:y)}}};D.exports=h},TWL2:function(D,I,e){var g=e("IwbS"),f=e("bYtY"),y=e("6Ic6");function p(i,n){g.Group.call(this);var a=new g.Polygon,u=new g.Polyline,r=new g.Text;this.add(a),this.add(u),this.add(r),this.highDownOnUpdate=function(l,t){t==="emphasis"?(u.ignore=u.hoverIgnore,r.ignore=r.hoverIgnore):(u.ignore=u.normalIgnore,r.ignore=r.normalIgnore)},this.updateData(i,n,!0)}var v=p.prototype,h=["itemStyle","opacity"];v.updateData=function(i,n,a){var u=this.childAt(0),r=i.hostModel,l=i.getItemModel(n),t=i.getItemLayout(n),s=i.getItemModel(n).get(h);s=s==null?1:s,u.useStyle({}),a?(u.setShape({points:t.points}),u.setStyle({opacity:0}),g.initProps(u,{style:{opacity:s}},r,n)):g.updateProps(u,{style:{opacity:s},shape:{points:t.points}},r,n);var d=l.getModel("itemStyle"),m=i.getItemVisual(n,"color");u.setStyle(f.defaults({lineJoin:"round",fill:m},d.getItemStyle(["opacity"]))),u.hoverStyle=d.getModel("emphasis").getItemStyle(),this._updateLabel(i,n),g.setHoverStyle(this)},v._updateLabel=function(i,n){var a=this.childAt(1),u=this.childAt(2),r=i.hostModel,l=i.getItemModel(n),t=i.getItemLayout(n),s=t.label,d=i.getItemVisual(n,"color");g.updateProps(a,{shape:{points:s.linePoints||s.linePoints}},r,n),g.updateProps(u,{style:{x:s.x,y:s.y}},r,n),u.attr({rotation:s.rotation,origin:[s.x,s.y],z2:10});var m=l.getModel("label"),w=l.getModel("emphasis.label"),b=l.getModel("labelLine"),E=l.getModel("emphasis.labelLine"),d=i.getItemVisual(n,"color");g.setLabelStyle(u.style,u.hoverStyle={},m,w,{labelFetcher:i.hostModel,labelDataIndex:n,defaultText:i.getName(n),autoColor:d,useInsideStyle:!!s.inside},{textAlign:s.textAlign,textVerticalAlign:s.verticalAlign}),u.ignore=u.normalIgnore=!m.get("show"),u.hoverIgnore=!w.get("show"),a.ignore=a.normalIgnore=!b.get("show"),a.hoverIgnore=!E.get("show"),a.setStyle({stroke:d}),a.setStyle(b.getModel("lineStyle").getLineStyle()),a.hoverStyle=E.getModel("lineStyle").getLineStyle()},f.inherits(p,g.Group);var c=y.extend({type:"funnel",render:function(i,n,a){var u=i.getData(),r=this._data,l=this.group;u.diff(r).add(function(t){var s=new p(u,t);u.setItemGraphicEl(t,s),l.add(s)}).update(function(t,s){var d=r.getItemGraphicEl(s);d.updateData(u,t),l.add(d),u.setItemGraphicEl(t,d)}).remove(function(t){var s=r.getItemGraphicEl(t);l.remove(s)}).execute(),this._data=u},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),o=c;D.exports=o},TYVI:function(D,I,e){var g=e("5GtS"),f=e("T4UG"),y=f.extend({type:"series.gauge",getInitialData:function(v,h){return g(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}}),p=y;D.exports=p},Tghj:function(D,I,e){(function(g){var f;typeof window!="undefined"?f=window.__DEV__:typeof g!="undefined"&&(f=g.__DEV__),typeof f=="undefined"&&(f=!0);var y=f;I.__DEV__=y}).call(this,e("yLpj"))},ThAp:function(D,I,e){var g=e("bYtY"),f=e("5GtS"),y=e("T4UG"),p=e("7aKB"),v=p.encodeHTML,h=p.addCommas,c=e("cCMj"),o=e("KxfA"),i=o.retrieveRawAttr,n=e("W4dC"),a=e("D5nY"),u=a.makeSeriesEncodeForNameBased,r=y.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(t){for(var s=f(this,{coordDimensions:["value"],encodeDefaulter:g.curry(u,this)}),d=s.mapDimension("value"),m=g.createHashMap(),w=[],b=[],E=0,A=s.count();E"+v(m+" : "+d)},getTooltipPosition:function(t){if(t!=null){var s=this.getData().getName(t),d=this.coordinateSystem,m=d.getRegion(s);return m&&d.dataToPoint(m.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});g.mixin(r,c);var l=r;D.exports=l},TkdX:function(D,I,e){var g=e("bYtY"),f=e("IwbS"),y={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},p=2,v=4;function h(r,l,t){f.Group.call(this);var s=new f.Sector({z2:p});s.seriesIndex=l.seriesIndex;var d=new f.Text({z2:v,silent:r.getModel("label").get("silent")});this.add(s),this.add(d),this.updateData(!0,r,"normal",l,t);function m(){d.ignore=d.hoverIgnore}function w(){d.ignore=d.normalIgnore}this.on("emphasis",m).on("normal",w).on("mouseover",m).on("mouseout",w)}var c=h.prototype;c.updateData=function(r,l,t,s,d){this.node=l,l.piece=this,s=s||this._seriesModel,d=d||this._ecModel;var m=this.childAt(0);m.dataIndex=l.dataIndex;var w=l.getModel(),b=l.getLayout(),E=g.extend({},b);E.label=null;var A=i(l,s,d);u(l,s,A);var S=w.getModel("itemStyle").getItemStyle(),T;if(t==="normal")T=S;else{var O=w.getModel(t+".itemStyle").getItemStyle();T=g.merge(O,S)}T=g.defaults({lineJoin:"bevel",fill:T.fill||A},T),r?(m.setShape(E),m.shape.r=b.r0,f.updateProps(m,{shape:{r:b.r}},s,l.dataIndex),m.useStyle(T)):typeof T.fill=="object"&&T.fill.type||typeof m.style.fill=="object"&&m.style.fill.type?(f.updateProps(m,{shape:E},s),m.useStyle(T)):f.updateProps(m,{shape:E,style:T},s),this._updateLabel(s,A,t);var x=w.getShallow("cursor");if(x&&m.attr("cursor",x),r){var C=s.getShallow("highlightPolicy");this._initEvents(m,l,s,C)}this._seriesModel=s||this._seriesModel,this._ecModel=d||this._ecModel,f.setHoverStyle(this)},c.onEmphasis=function(r){var l=this;this.node.hostTree.root.eachNode(function(t){t.piece&&(l.node===t?t.piece.updateData(!1,t,"emphasis"):a(t,l.node,r)?t.piece.childAt(0).trigger("highlight"):r!==y.NONE&&t.piece.childAt(0).trigger("downplay"))})},c.onNormal=function(){this.node.hostTree.root.eachNode(function(r){r.piece&&r.piece.updateData(!1,r,"normal")})},c.onHighlight=function(){this.updateData(!1,this.node,"highlight")},c.onDownplay=function(){this.updateData(!1,this.node,"downplay")},c._updateLabel=function(r,l,t){var s=this.node.getModel(),d=s.getModel("label"),m=t==="normal"||t==="emphasis"?d:s.getModel(t+".label"),w=s.getModel("emphasis.label"),b=g.retrieve(r.getFormattedLabel(this.node.dataIndex,t,null,null,"label"),this.node.name);B("show")===!1&&(b="");var E=this.node.getLayout(),A=m.get("minAngle");A==null&&(A=d.get("minAngle")),A=A/180*Math.PI;var S=E.endAngle-E.startAngle;A!=null&&Math.abs(S)Math.PI/2?"right":"left"):!k||k==="center"?(_=(E.r+E.r0)/2,k="center"):k==="left"?(_=E.r0+F,O>Math.PI/2&&(k="right")):k==="right"&&(_=E.r-F,O>Math.PI/2&&(k="left")),T.attr("style",{text:b,textAlign:k,textVerticalAlign:B("verticalAlign")||"middle",opacity:B("opacity")});var P=_*x+E.cx,j=_*C+E.cy;T.attr("position",[P,j]);var K=B("rotate"),R=0;K==="radial"?(R=-O,R<-Math.PI/2&&(R+=Math.PI)):K==="tangential"?(R=Math.PI/2-O,R>Math.PI/2?R-=Math.PI:R<-Math.PI/2&&(R+=Math.PI)):typeof K=="number"&&(R=K*Math.PI/180),T.attr("rotation",R);function B(U){var H=m.get(U);return H==null?d.get(U):H}},c._initEvents=function(r,l,t,s){r.off("mouseover").off("mouseout").off("emphasis").off("normal");var d=this,m=function(){d.onEmphasis(s)},w=function(){d.onNormal()},b=function(){d.onDownplay()},E=function(){d.onHighlight()};t.isAnimationEnabled()&&r.on("mouseover",m).on("mouseout",w).on("emphasis",m).on("normal",w).on("downplay",b).on("highlight",E)},g.inherits(h,f.Group);var o=h;function i(r,l,t){var s=r.getVisual("color"),d=r.getVisual("visualMeta");(!d||d.length===0)&&(s=null);var m=r.getModel("itemStyle").get("color");if(m)return m;if(s)return s;if(r.depth===0)return t.option.color[0];var w=t.option.color.length;return m=t.option.color[n(r)%w],m}function n(r){for(var l=r;l.depth>1;)l=l.parentNode;var t=r.getAncestors()[0];return g.indexOf(t.children,l)}function a(r,l,t){return t===y.NONE?!1:t===y.SELF?r===l:t===y.ANCESTOR?r===l||r.isAncestorOf(l):r===l||r.isDescendantOf(l)}function u(r,l,t){var s=l.getData();s.setItemVisual(r.dataIndex,"color",t)}D.exports=o},Tp9H:function(D,I,e){var g=e("ItGF"),f=e("Kagy"),y=e("IUWy"),p=f.toolbox.saveAsImage;function v(o){this.model=o}v.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:p.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:p.lang.slice()},v.prototype.unusable=!g.canvasSupported;var h=v.prototype;h.onclick=function(o,i){var n=this.model,a=n.get("name")||o.get("title.0.text")||"echarts",u=i.getZr().painter.getType()==="svg",r=u?"svg":n.get("type",!0)||"png",l=i.getConnectedDataURL({type:r,backgroundColor:n.get("backgroundColor",!0)||o.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if(typeof MouseEvent=="function"&&!g.browser.ie&&!g.browser.edge){var t=document.createElement("a");t.download=a+"."+r,t.target="_blank",t.href=l;var s=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});t.dispatchEvent(s)}else if(window.navigator.msSaveOrOpenBlob){for(var d=atob(l.split(",")[1]),m=d.length,w=new Uint8Array(m);m--;)w[m]=d.charCodeAt(m);var b=new Blob([w]);window.navigator.msSaveOrOpenBlob(b,a+"."+r)}else{var E=n.get("lang"),A='',S=window.open();S.document.write(A)}},y.register("saveAsImage",v);var c=v;D.exports=c},"U/Mo":function(D,I){function e(f){var y=f.coordinateSystem;if(y.type!=="view")return 1;var p=f.option.nodeScaleRatio,v=y.scale,h=v&&v[0]||1,c=y.getZoom(),o=(c-1)*p+1;return o/h}function g(f){var y=f.getVisual("symbolSize");return y instanceof Array&&(y=(y[0]+y[1])/2),+y}I.getNodeGlobalScale=e,I.getSymbolSize=g},UADf:function(D,I,e){},"UNi/":function(D,I){function e(g,f){for(var y=-1,p=Array(g);++y=0}function h(i,n){i=i.slice();var a=g.map(i,f.capitalFirst);n=(n||[]).slice();var u=g.map(n,f.capitalFirst);return function(r,l){g.each(i,function(t,s){for(var d={name:t,capital:a[s]},m=0;m=0}function r(t,s){var d=!1;return n(function(m){g.each(a(t,m)||[],function(w){s.records[m.name][w]&&(d=!0)})}),d}function l(t,s){s.nodes.push(t),n(function(d){g.each(a(t,d)||[],function(m){s.records[d.name][m]=!0})})}}I.isCoordSupported=v,I.createNameEach=h,I.eachAxisDim=c,I.createLinkedNodesFinder=o},Uc92:function(D,I,e){"use strict";Object.defineProperty(I,"__esModule",{value:!0});var g={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"};I.default=g},UmKh:function(D,I,e){"use strict";var g=e("q1tI"),f=e.n(g),y=e("aGtg");function p(K){var R=[];return f.a.Children.forEach(K,function(B){R.push(B)}),R}function v(K,R){var B=null;return K&&K.forEach(function(U){if(B)return;U&&U.key===R&&(B=U)}),B}function h(K,R,B){var U=null;return K&&K.forEach(function(H){if(H&&H.key===R&&H.props[B]){if(U)throw new Error("two child with same key for children");U=H}}),U}function c(K,R,B){var U=0;return K&&K.forEach(function(H){if(U)return;U=H&&H.key===R&&!H.props[B]}),U}function o(K,R,B){var U=K.length===R.length;return U&&K.forEach(function(H,W){var V=R[W];H&&V&&((H&&!V||!H&&V||(H.key!==V.key||B&&H.props[B]!==V.props[B]))&&(U=!1))}),U}function i(K,R){var B=[],U={},H=[];return K.forEach(function(W){W&&v(R,W.key)?H.length&&(U[W.key]=H,H=[]):H.push(W)}),R.forEach(function(W){W&&Object.prototype.hasOwnProperty.call(U,W.key)&&(B=B.concat(U[W.key])),B.push(W)}),B=B.concat(H),B}var n=e("i8i4"),a=e.n(n),u=e("UwPn"),r={isAppearSupported:function(R){return R.transitionName&&R.transitionAppear||R.animation.appear},isEnterSupported:function(R){return R.transitionName&&R.transitionEnter||R.animation.enter},isLeaveSupported:function(R){return R.transitionName&&R.transitionLeave||R.animation.leave},allowAppearCallback:function(R){return R.transitionAppear||R.animation.appear},allowEnterCallback:function(R){return R.transitionEnter||R.animation.enter},allowLeaveCallback:function(R){return R.transitionLeave||R.animation.leave}},l=r,t=function(){function K(R,B){for(var U=0;U children");return f.a.createElement(E,{key:q.key,ref:function(G){U.childrenRefs[q.key]=G},animation:H.animation,transitionName:H.transitionName,transitionEnter:H.transitionEnter,transitionAppear:H.transitionAppear,transitionLeave:H.transitionLeave},q)}));var z=H.component;if(z){var X=H;return typeof z=="string"&&(X=A({className:H.className,style:H.style},H.componentProps)),f.a.createElement(z,X,V)}return V[0]||null}}]),R}(f.a.Component);k.isAnimate=!0,k.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:F,onEnter:F,onLeave:F,onAppear:F};var P=function(){var R=this;this.performEnter=function(B){R.childrenRefs[B]&&(R.currentlyAnimatingKeys[B]=!0,R.childrenRefs[B].componentWillEnter(R.handleDoneAdding.bind(R,B,"enter")))},this.performAppear=function(B){R.childrenRefs[B]&&(R.currentlyAnimatingKeys[B]=!0,R.childrenRefs[B].componentWillAppear(R.handleDoneAdding.bind(R,B,"appear")))},this.handleDoneAdding=function(B,U){var H=R.props;if(delete R.currentlyAnimatingKeys[B],H.exclusive&&H!==R.nextProps)return;var W=p(N(H));R.isValidChildByKey(W,B)?U==="appear"?l.allowAppearCallback(H)&&(H.onAppear(B),H.onEnd(B,!0)):l.allowEnterCallback(H)&&(H.onEnter(B),H.onEnd(B,!0)):R.performLeave(B)},this.performLeave=function(B){R.childrenRefs[B]&&(R.currentlyAnimatingKeys[B]=!0,R.childrenRefs[B].componentWillLeave(R.handleDoneLeaving.bind(R,B)))},this.handleDoneLeaving=function(B){var U=R.props;if(delete R.currentlyAnimatingKeys[B],U.exclusive&&U!==R.nextProps)return;var H=p(N(U));if(R.isValidChildByKey(H,B))R.performEnter(B);else{var W=function(){l.allowLeaveCallback(U)&&(U.onLeave(B),U.onEnd(B,!1))};o(R.state.children,H,U.showProp)?W():R.setState({children:H},W)}}},j=I.a=Object(y.a)(k)},UnoB:function(D,I,e){var g=e("bYtY"),f=e("OELB");function y(h,c){h.eachSeriesByType("themeRiver",function(o){var i=o.getData(),n=o.coordinateSystem,a={},u=n.getRect();a.rect=u;var r=o.get("boundaryGap"),l=n.getAxis();if(a.boundaryGap=r,l.orient==="horizontal"){r[0]=f.parsePercent(r[0],u.height),r[1]=f.parsePercent(r[1],u.height);var t=u.height-r[0]-r[1];p(i,o,t)}else{r[0]=f.parsePercent(r[0],u.width),r[1]=f.parsePercent(r[1],u.width);var s=u.width-r[0]-r[1];p(i,o,s)}i.setLayout("layoutInfo",a)})}function p(h,c,o){if(!h.count())return;for(var i=c.coordinateSystem,n=c.getLayerSeries(),a=h.mapDimension("single"),u=h.mapDimension("value"),r=g.map(n,function(A){return g.map(A.indices,function(S){var T=i.dataToPoint(h.get(a,S));return T[1]=h.get(u,S),T})}),l=v(r),t=l.y0,s=o/l.max,d=n.length,m=n[0].indices.length,w,b=0;ba&&(a=u),i.push(u)}for(var s=0;sa&&(a=m)}return r.y0=n,r.max=a,r}D.exports=y},Urep:function(D,I,e){},V6Ve:function(D,I,e){var g=e("kekF"),f=g(Object.keys,Object);D.exports=f},V7ic:function(D,I,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var y=f(e("q1tI")),p=g(e("digP")),v=g(e("KQxl")),h=function(i,n){return y.createElement(v.default,Object.assign({},i,{ref:n,icon:p.default}))};h.displayName="FileTwoTone";var c=y.forwardRef(h);I.default=c},VFCP:function(D,I,e){e("dBmv"),e("KamJ")},VPsl:function(D,I){function e(g){g.eachSeriesByType("map",function(f){var y=f.get("color"),p=f.getModel("itemStyle"),v=p.get("areaColor"),h=p.get("color")||y[f.seriesIndex%y.length];f.getData().setVisual({areaColor:v,color:h})})}D.exports=e},VR9l:function(D,I,e){var g=e("KCsZ"),f=g([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),y={getItemStyle:function(p,v){var h=f(this,p,v),c=this.getBorderLineDash();return c&&(h.lineDash=c),h},getBorderLineDash:function(){var p=this.get("borderType");return p==="solid"||p==null?null:p==="dashed"?[5,5]:[1,1]}};D.exports=y},VSLf:function(D,I,e){e("I+Bx"),e("F0hE"),e("bBKM")},VSMT:function(D,I,e){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.decodeUTF8=g,I.encodeUTF8=f;function g(y){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(y))}catch(v){if(v instanceof URIError&&p)return y;throw v}}function f(y){return unescape(encodeURIComponent(y))}},VXYp:function(D,I,e){var g=e("bYtY"),f=e("SgGq"),y=e("iLNv"),p="\0_ec_dataZoom_roams";function v(r,l){var t=o(r),s=l.dataZoomId,d=l.coordId;g.each(t,function(b,E){var A=b.dataZoomInfos;A[s]&&g.indexOf(l.allCoordIds,d)<0&&(delete A[s],b.count--)}),n(t);var m=t[d];m||(m=t[d]={coordId:d,dataZoomInfos:{},count:0},m.controller=i(r,m),m.dispatchAction=g.curry(a,r)),!m.dataZoomInfos[s]&&m.count++,m.dataZoomInfos[s]=l;var w=u(m.dataZoomInfos);m.controller.enable(w.controlType,w.opt),m.controller.setPointerChecker(l.containsPoint),y.createOrUpdate(m,"dispatchAction",l.dataZoomModel.get("throttle",!0),"fixRate")}function h(r,l){var t=o(r);g.each(t,function(s){s.controller.dispose();var d=s.dataZoomInfos;d[l]&&(delete d[l],s.count--)}),n(t)}function c(r){return r.type+"\0_"+r.id}function o(r){var l=r.getZr();return l[p]||(l[p]={})}function i(r,l){var t=new f(r.getZr());return g.each(["pan","zoom","scrollMove"],function(s){t.on(s,function(d){var m=[];g.each(l.dataZoomInfos,function(w){if(!d.isAvailableBehavior(w.dataZoomModel.option))return;var b=(w.getRange||{})[s],E=b&&b(l.controller,d);!w.dataZoomModel.get("disabled",!0)&&E&&m.push({dataZoomId:w.dataZoomId,start:E[0],end:E[1]})}),m.length&&l.dispatchAction(m)})}),t}function n(r){g.each(r,function(l,t){l.count||(l.controller.dispose(),delete r[t])})}function a(r,l){r.dispatchAction({type:"dataZoom",batch:l})}function u(r){var l,t="type_",s={type_true:2,type_move:1,type_false:0,type_undefined:-1},d=!0;return g.each(r,function(m){var w=m.dataZoomModel,b=w.get("disabled",!0)?!1:w.get("zoomLock",!0)?"move":!0;s[t+b]>s[t+l]&&(l=b),d&=w.get("preventDefaultMouseMove",!0)}),{controlType:l,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!d}}}I.register=v,I.unregister=h,I.generateCoordId=c},VaNO:function(D,I){function e(g){return this.__data__.has(g)}D.exports=e},VaxA:function(D,I,e){var g=e("bYtY");function f(h,c,o){if(h&&g.indexOf(c,h.type)>=0){var i=o.getData().tree.root,n=h.targetNode;if(typeof n=="string"&&(n=i.getNodeById(n)),n&&i.contains(n))return{node:n};var a=h.targetNodeId;if(a!=null&&(n=i.getNodeById(a)))return{node:n}}}function y(h){for(var c=[];h;)h=h.parentNode,h&&c.push(h);return c.reverse()}function p(h,c){var o=y(h);return g.indexOf(o,c)>=0}function v(h,c){for(var o=[];h;){var i=h.dataIndex;o.push({name:h.name,dataIndex:i,value:c.getRawValue(i)}),h=h.parentNode}return o.reverse(),o}I.retrieveTargetInfo=f,I.getPathToRoot=y,I.aboveViewRoot=p,I.wrapTreePathInfo=v},Vi4m:function(D,I,e){var g=e("bYtY");function f(p){p!=null&&g.extend(this,p),this.otherDims={}}var y=f;D.exports=y},Vl3Y:function(D,I,e){"use strict";var g=e("pVnL"),f=e.n(g),y=e("J4zp"),p=e.n(y),v=e("lSNA"),h=e.n(v),c=e("q1tI"),o=e("TSYQ"),i=e.n(o),n=e("85Yc"),a=e("H84U"),u=e("BGR+"),r=c.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),l=c.createContext({updateItemErrors:function(){}}),t=function(ct){var yt=Object(u.default)(ct,["prefixCls"]);return c.createElement(n.FormProvider,yt)};function s(dt){return dt!=null&&typeof dt=="object"&&dt.nodeType===1}function d(dt,ct){return ct&&dt==="hidden"?!1:dt!=="visible"&&dt!=="clip"}function m(dt){if(!dt.ownerDocument||!dt.ownerDocument.defaultView)return null;try{return dt.ownerDocument.defaultView.frameElement}catch(ct){return null}}function w(dt){var ct=m(dt);return ct?ct.clientHeightct||Bt>dt&&Ae=ct&&pe>=yt?Bt-dt-It:Ae>ct&&peyt?Ae-ct+or:0}var A=function(dt,ct){var yt=ct.scrollMode,It=ct.block,or=ct.inline,Bt=ct.boundary,Ae=ct.skipOverflowHiddenElements,pe=typeof Bt=="function"?Bt:function(ir){return ir!==Bt};if(!s(dt))throw new TypeError("Invalid target");for(var he=document.scrollingElement||document.documentElement,le=[],Ne=dt;s(Ne)&&pe(Ne);){if(Ne=Ne.parentNode,Ne===he){le.push(Ne);break}if(Ne===document.body&&b(Ne)&&!b(document.documentElement))continue;b(Ne,Ae)&&le.push(Ne)}for(var je=window.visualViewport?visualViewport.width:innerWidth,Ke=window.visualViewport?visualViewport.height:innerHeight,Xe=window.scrollX||pageXOffset,Fe=window.scrollY||pageYOffset,nt=dt.getBoundingClientRect(),At=nt.height,_t=nt.width,ne=nt.top,ue=nt.right,Y=nt.bottom,te=nt.left,be=It==="start"||It==="nearest"?ne:It==="end"?Y:ne+At/2,Le=or==="center"?te+_t/2:or==="end"?ue:te,Re=[],$e=0;$e=0&&te>=0&&Y<=Ke&&ue<=je&&ne>=Kt&&Y<=Qt&&te>=Mt&&ue<=Yt)return Re;var dr=getComputedStyle(gt),er=parseInt(dr.borderLeftWidth,10),ot=parseInt(dr.borderTopWidth,10),xt=parseInt(dr.borderRightWidth,10),ut=parseInt(dr.borderBottomWidth,10),ft=0,Lt=0,Tt="offsetWidth"in gt?gt.offsetWidth-gt.clientWidth-er-xt:0,ht="offsetHeight"in gt?gt.offsetHeight-gt.clientHeight-ot-ut:0;if(he===gt)It==="start"?ft=be:It==="end"?ft=be-Ke:It==="nearest"?ft=E(Fe,Fe+Ke,Ke,ot,ut,Fe+be,Fe+be+At,At):ft=be-Ke/2,or==="start"?Lt=Le:or==="center"?Lt=Le-je/2:or==="end"?Lt=Le-je:Lt=E(Xe,Xe+je,je,er,xt,Xe+Le,Xe+Le+_t,_t),ft=Math.max(0,ft+Fe),Lt=Math.max(0,Lt+Xe);else{It==="start"?ft=be-Kt-ot:It==="end"?ft=be-Qt+ut+ht:It==="nearest"?ft=E(Kt,Qt,$t,ot,ut+ht,be,be+At,At):ft=be-(Kt+$t/2)+ht/2,or==="start"?Lt=Le-Mt-er:or==="center"?Lt=Le-(Mt+Dt/2)+Tt/2:or==="end"?Lt=Le-Yt+xt+Tt:Lt=E(Mt,Yt,Dt,er,xt+Tt,Le,Le+_t,_t);var Ht=gt.scrollLeft,Ft=gt.scrollTop;ft=Math.max(0,Math.min(Ft+ft,gt.scrollHeight-$t+ht)),Lt=Math.max(0,Math.min(Ht+Lt,gt.scrollWidth-Dt+Tt)),be+=Ft-ft,Le+=Ht-Lt}Re.push({el:gt,top:ft,left:Lt})}return Re};function S(dt){return dt===Object(dt)&&Object.keys(dt).length!==0}function T(dt,ct){ct===void 0&&(ct="auto");var yt="scrollBehavior"in document.body.style;dt.forEach(function(It){var or=It.el,Bt=It.top,Ae=It.left;or.scroll&&yt?or.scroll({top:Bt,left:Ae,behavior:ct}):(or.scrollTop=Bt,or.scrollLeft=Ae)})}function O(dt){return dt===!1?{block:"end",inline:"nearest"}:S(dt)?dt:{block:"start",inline:"nearest"}}function x(dt,ct){var yt=!dt.ownerDocument.documentElement.contains(dt);if(S(ct)&&typeof ct.behavior=="function")return ct.behavior(yt?[]:A(dt,ct));if(yt)return;var It=O(ct);return T(A(dt,It),It.behavior)}var C=x;function _(dt){return dt===void 0||dt===!1?[]:Array.isArray(dt)?dt:[dt]}function N(dt,ct){if(!dt.length)return;var yt=dt.join("_");return ct?"".concat(ct,"_").concat(yt):yt}function F(dt){var ct=_(dt);return ct.join("_")}function k(dt){var ct=Object(n.useForm)(),yt=p()(ct,1),It=yt[0],or=Object(c.useRef)({}),Bt=Object(c.useMemo)(function(){return dt||f()(f()({},It),{__INTERNAL__:{itemRef:function(pe){return function(he){var le=F(pe);he?or.current[le]=he:delete or.current[le]}}},scrollToField:function(pe){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},le=_(pe),Ne=N(le,Bt.__INTERNAL__.name),je=Ne?document.getElementById(Ne):null;je&&C(je,f()({scrollMode:"if-needed",block:"nearest"},he))},getFieldInstance:function(pe){var he=F(pe);return or.current[he]}})},[dt,It]);return[Bt]}var P=e("3Nzz"),j=function(dt,ct){var yt={};for(var It in dt)Object.prototype.hasOwnProperty.call(dt,It)&&ct.indexOf(It)<0&&(yt[It]=dt[It]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var or=0,It=Object.getOwnPropertySymbols(dt);or0&&arguments[0]!==void 0?arguments[0]:{};return X()(Or[tn],qr)?Or:f()(f()({},Or),h()({},tn,qr))})},Xt=wt();function mr(tn,qr,Or,Qr){var Ir,ur;if(It&&!ue)return tn;var pr=[];Object.keys(ot).forEach(function(Gr){pr=[].concat(V()(pr),V()(ot[Gr]||[]))});var cr;Ne!=null?cr=_(Ne):(cr=Or?Or.errors:[],cr=[].concat(V()(cr),V()(pr)));var fr="";Ke!==void 0?fr=Ke:(Or==null?void 0:Or.validating)?fr="validating":((ur=Or==null?void 0:Or.errors)===null||ur===void 0?void 0:ur.length)||pr.length?fr="error":(Or==null?void 0:Or.touched)&&(fr="success"),Yt&&Ne&&(Mt.current=fr);var xr=(Ir={},h()(Ir,"".concat(Ft,"-item"),!0),h()(Ir,"".concat(Ft,"-item-with-help"),Yt||Ne),h()(Ir,"".concat(pe),!!pe),h()(Ir,"".concat(Ft,"-item-has-feedback"),fr&&le),h()(Ir,"".concat(Ft,"-item-has-success"),fr==="success"),h()(Ir,"".concat(Ft,"-item-has-warning"),fr==="warning"),h()(Ir,"".concat(Ft,"-item-has-error"),fr==="error"),h()(Ir,"".concat(Ft,"-item-has-error-leave"),!Ne&&Yt&&Mt.current==="error"),h()(Ir,"".concat(Ft,"-item-is-validating"),fr==="validating"),h()(Ir,"".concat(Ft,"-item-hidden"),ue),Ir);return c.createElement(G.a,f()({className:i()(xr),style:Ae,key:"row"},Object(u.default)(Y,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","preserve","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),c.createElement(Te,f()({htmlFor:qr,required:Qr,requiredMark:gt},dt,{prefixCls:Ft})),c.createElement(vt,f()({},dt,Or,{errors:cr,prefixCls:Ft,onDomErrorVisibleChange:Tt,validateStatus:fr}),c.createElement(l.Provider,{value:{updateItemErrors:ir}},tn)))}var Ar=typeof Xe=="function",Nr=c.useRef(0);if(Nr.current+=1,!ht&&!Ar&&!or)return mr(Xe);var Fr={};return typeof nt=="string"&&(Fr.label=nt),c.createElement(n.Field,f()({},dt,{messageVariables:Fr,trigger:_t,validateTrigger:Lt,onReset:function(){Tt(!1)}}),function(tn,qr,Or){var Qr=qr.errors,Ir=_(ct).length&&qr?qr.name:[],ur=N(Ir,$e);if(It){if(Ht.current=V()(Ir),yt){var pr=Array.isArray(yt)?yt:[yt];Ht.current=[].concat(V()(Ir.slice(0,-1)),V()(pr))}$t(Ht.current.join("__SPLIT__"),Qr)}var cr=Fe!==void 0?Fe:!!(je&&je.some(function(Nn){if(Nn&&H()(Nn)==="object"&&Nn.required)return!0;if(typeof Nn=="function"){var jr=Nn(Or);return jr&&jr.required}return!1})),fr=f()({},tn),xr=null;if(Object(Se.a)(!(he&&or),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(Xe)&&ht)Object(Se.a)(!1,"Form.Item","`children` is array of render props cannot have `name`."),xr=Xe;else if(Ar&&(!(he||or)||ht))Object(Se.a)(!!(he||or),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),Object(Se.a)(!ht,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if(or&&!Ar&&!ht)Object(Se.a)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");else if(Object(Ct.b)(Xe)){Object(Se.a)(Xe.props.defaultValue===void 0,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var Gr=f()(f()({},Xe.props),fr);Gr.id||(Gr.id=ur),Object(fe.c)(Xe)&&(Gr.ref=Xt(Ir,Xe));var un=new Set([].concat(V()(_(_t)),V()(_(Lt))));un.forEach(function(Nn){Gr[Nn]=function(){for(var jr,Tn,gn,Pn,zn,qn=arguments.length,Gn=new Array(qn),Vn=0;Vnv&&(u=o+i,o*=v/u,i*=v/u),n+a>v&&(u=n+a,n*=v/u,a*=v/u),i+n>h&&(u=i+n,i*=h/u,n*=h/u),o+a>h&&(u=o+a,o*=h/u,a*=h/u),g.moveTo(y+o,p),g.lineTo(y+v-i,p),i!==0&&g.arc(y+v-i,p+i,i,-Math.PI/2,0),g.lineTo(y+v,p+h-n),n!==0&&g.arc(y+v-n,p+h-n,n,0,Math.PI/2),g.lineTo(y+a,p+h),a!==0&&g.arc(y+a,p+h-a,a,Math.PI/2,Math.PI),g.lineTo(y,p+o),o!==0&&g.arc(y+o,p+o,o,Math.PI,Math.PI*1.5)}I.buildPath=e},"VrN/":function(D,I,e){(function(g,f){D.exports=f()})(this,function(){"use strict";var g=navigator.userAgent,f=navigator.platform,y=/gecko\/\d/i.test(g),p=/MSIE \d/.test(g),v=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(g),h=/Edge\/(\d+)/.exec(g),c=p||v||h,o=c&&(p?document.documentMode||6:+(h||v)[1]),i=!h&&/WebKit\//.test(g),n=i&&/Qt\/\d+\.\d+/.test(g),a=!h&&/Chrome\//.test(g),u=/Opera\//.test(g),r=/Apple Computer/.test(navigator.vendor),l=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(g),t=/PhantomJS/.test(g),s=!h&&/AppleWebKit/.test(g)&&/Mobile\/\w+/.test(g),d=/Android/.test(g),m=s||d||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(g),w=s||/Mac/.test(f),b=/\bCrOS\b/.test(g),E=/win/i.test(f),A=u&&g.match(/Version\/(\d*\.\d*)/);A&&(A=Number(A[1])),A&&A>=15&&(u=!1,i=!0);var S=w&&(n||u&&(A==null||A<12.11)),T=y||c&&o>=9;function O(L){return new RegExp("(^|\\s)"+L+"(?:$|\\s)\\s*")}var x=function(M,Q){var J=M.className,re=O(Q).exec(J);if(re){var De=J.slice(re.index+re[0].length);M.className=J.slice(0,re.index)+(De?re[1]+De:"")}};function C(L){for(var M=L.childNodes.length;M>0;--M)L.removeChild(L.firstChild);return L}function _(L,M){return C(L).appendChild(M)}function N(L,M,Q,J){var re=document.createElement(L);if(Q&&(re.className=Q),J&&(re.style.cssText=J),typeof M=="string")re.appendChild(document.createTextNode(M));else if(M)for(var De=0;De=M)return mt+(M-De);mt+=Nt-De,mt+=Q-mt%Q,De=Nt+1}}var V=function(){this.id=null,this.f=null,this.time=0,this.handler=U(this.onTimeout,this)};V.prototype.onTimeout=function(L){L.id=0,L.time<=+new Date?L.f():setTimeout(L.handler,L.time-+new Date)},V.prototype.set=function(L,M){this.f=M;var Q=+new Date+L;(!this.id||Q=M)return J+Math.min(mt,M-re);if(re+=De-J,re+=Q-re%Q,J=De+1,re>=M)return J}}var ge=[""];function Pe(L){for(;ge.length<=L;)ge.push(Ge(ge)+" ");return ge[L]}function Ge(L){return L[L.length-1]}function pt(L,M){for(var Q=[],J=0;J"\x80"&&(L.toUpperCase()!=L.toLowerCase()||Ie.test(L))}function ee(L,M){return M?M.source.indexOf("\\w")>-1&&de(L)?!0:M.test(L):de(L)}function se(L){for(var M in L)if(L.hasOwnProperty(M)&&L[M])return!1;return!0}var ke=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ce(L){return L.charCodeAt(0)>=768&&ke.test(L)}function ze(L,M,Q){for(;(Q<0?M>0:MQ?-1:1;;){if(M==Q)return M;var re=(M+Q)/2,De=J<0?Math.ceil(re):Math.floor(re);if(De==M)return L(De)?M:Q;L(De)?Q=De:M=De+J}}function ae(L,M,Q,J){if(!L)return J(M,Q,"ltr",0);for(var re=!1,De=0;DeM||M==Q&&mt.to==M)&&(J(Math.max(mt.from,M),Math.min(mt.to,Q),mt.level==1?"rtl":"ltr",De),re=!0)}re||J(M,Q,"ltr")}var me=null;function Oe(L,M,Q){var J;me=null;for(var re=0;reM)return re;De.to==M&&(De.from!=De.to&&Q=="before"?J=re:me=re),De.from==M&&(De.from!=De.to&&Q!="before"?J=re:me=re)}return J!=null?J:me}var Ze=function(){var L="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",M="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function Q(Gt){return Gt<=247?L.charAt(Gt):1424<=Gt&&Gt<=1524?"R":1536<=Gt&&Gt<=1785?M.charAt(Gt-1536):1774<=Gt&&Gt<=2220?"r":8192<=Gt&&Gt<=8203?"w":Gt==8204?"b":"L"}var J=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,re=/[stwN]/,De=/[LRr]/,mt=/[Lb1n]/,Nt=/[1n]/;function zt(Gt,Cr,Ur){this.level=Gt,this.from=Cr,this.to=Ur}return function(Gt,Cr){var Ur=Cr=="ltr"?"L":"R";if(Gt.length==0||Cr=="ltr"&&!J.test(Gt))return!1;for(var en=Gt.length,nn=[],xn=0;xn-1&&(J[M]=re.slice(0,De).concat(re.slice(De+1)))}}}function wt(L,M){var Q=Rt(L,M);if(!Q.length)return;for(var J=Array.prototype.slice.call(arguments,2),re=0;re0}function st(L){L.prototype.on=function(M,Q){Be(this,M,Q)},L.prototype.off=function(M,Q){He(this,M,Q)}}function Ve(L){L.preventDefault?L.preventDefault():L.returnValue=!1}function ie(L){L.stopPropagation?L.stopPropagation():L.cancelBubble=!0}function $(L){return L.defaultPrevented!=null?L.defaultPrevented:L.returnValue==!1}function it(L){Ve(L),ie(L)}function Qe(L){return L.target||L.srcElement}function ye(L){var M=L.which;return M==null&&(L.button&1?M=1:L.button&2?M=3:L.button&4&&(M=2)),w&&L.ctrlKey&&M==1&&(M=3),M}var Zt=function(){if(c&&o<9)return!1;var L=N("div");return"draggable"in L||"dragDrop"in L}(),dt;function ct(L){if(dt==null){var M=N("span","\u200B");_(L,N("span",[M,document.createTextNode("x")])),L.firstChild.offsetHeight!=0&&(dt=M.offsetWidth<=1&&M.offsetHeight>2&&!(c&&o<8))}var Q=dt?N("span","\u200B"):N("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return Q.setAttribute("cm-text",""),Q}var yt;function It(L){if(yt!=null)return yt;var M=_(L,document.createTextNode("A\u062EA")),Q=k(M,0,1).getBoundingClientRect(),J=k(M,1,2).getBoundingClientRect();return C(L),!Q||Q.left==Q.right?!1:yt=J.right-Q.right<3}var or=` b`.split(/\n/).length!=3?function(L){for(var M=0,Q=[],J=L.length;M<=J;){var re=L.indexOf(` `,M);re==-1&&(re=L.length);var De=L.slice(M,L.charAt(re-1)=="\r"?re-1:re),mt=De.indexOf("\r");mt!=-1?(Q.push(De.slice(0,mt)),M+=mt+1):(Q.push(De),M=re+1)}return Q}:function(L){return L.split(/\r\n?|\n/)},Bt=window.getSelection?function(L){try{return L.selectionStart!=L.selectionEnd}catch(M){return!1}}:function(L){var M;try{M=L.ownerDocument.selection.createRange()}catch(Q){}return!M||M.parentElement()!=L?!1:M.compareEndPoints("StartToEnd",M)!=0},Ae=function(){var L=N("div");return"oncopy"in L?!0:(L.setAttribute("oncopy","return;"),typeof L.oncopy=="function")}(),pe=null;function he(L){if(pe!=null)return pe;var M=_(L,N("span","x")),Q=M.getBoundingClientRect(),J=k(M,0,1).getBoundingClientRect();return pe=Math.abs(Q.left-J.left)>1}var le={},Ne={};function je(L,M){arguments.length>2&&(M.dependencies=Array.prototype.slice.call(arguments,2)),le[L]=M}function Ke(L,M){Ne[L]=M}function Xe(L){if(typeof L=="string"&&Ne.hasOwnProperty(L))L=Ne[L];else if(L&&typeof L.name=="string"&&Ne.hasOwnProperty(L.name)){var M=Ne[L.name];typeof M=="string"&&(M={name:M}),L=lt(M,L),L.name=M.name}else{if(typeof L=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(L))return Xe("application/xml");if(typeof L=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(L))return Xe("application/json")}return typeof L=="string"?{name:L}:L||{name:"null"}}function Fe(L,M){M=Xe(M);var Q=le[M.name];if(!Q)return Fe(L,"text/plain");var J=Q(L,M);if(nt.hasOwnProperty(M.name)){var re=nt[M.name];for(var De in re){if(!re.hasOwnProperty(De))continue;J.hasOwnProperty(De)&&(J["_"+De]=J[De]),J[De]=re[De]}}if(J.name=M.name,M.helperType&&(J.helperType=M.helperType),M.modeProps)for(var mt in M.modeProps)J[mt]=M.modeProps[mt];return J}var nt={};function At(L,M){var Q=nt.hasOwnProperty(L)?nt[L]:nt[L]={};H(M,Q)}function _t(L,M){if(M===!0)return M;if(L.copyState)return L.copyState(M);var Q={};for(var J in M){var re=M[J];re instanceof Array&&(re=re.concat([])),Q[J]=re}return Q}function ne(L,M){for(var Q;L.innerMode&&!(Q=L.innerMode(M),!Q||Q.mode==L);)M=Q.state,L=Q.mode;return Q||{mode:L,state:M}}function ue(L,M,Q){return L.startState?L.startState(M,Q):!0}var Y=function(M,Q,J){this.pos=this.start=0,this.string=M,this.tabSize=Q||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=J};Y.prototype.eol=function(){return this.pos>=this.string.length},Y.prototype.sol=function(){return this.pos==this.lineStart},Y.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Y.prototype.next=function(){if(this.posM},Y.prototype.eatSpace=function(){for(var L=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>L},Y.prototype.skipToEnd=function(){this.pos=this.string.length},Y.prototype.skipTo=function(L){var M=this.string.indexOf(L,this.pos);if(M>-1)return this.pos=M,!0},Y.prototype.backUp=function(L){this.pos-=L},Y.prototype.column=function(){return this.lastColumnPos0?null:(De&&M!==!1&&(this.pos+=De[0].length),De)}},Y.prototype.current=function(){return this.string.slice(this.start,this.pos)},Y.prototype.hideFirstChars=function(L,M){this.lineStart+=L;try{return M()}finally{this.lineStart-=L}},Y.prototype.lookAhead=function(L){var M=this.lineOracle;return M&&M.lookAhead(L)},Y.prototype.baseToken=function(){var L=this.lineOracle;return L&&L.baseToken(this.pos)};function te(L,M){if(M-=L.first,M<0||M>=L.size)throw new Error("There is no line "+(M+L.first)+" in the document.");for(var Q=L;!Q.lines;)for(var J=0;;++J){var re=Q.children[J],De=re.chunkSize();if(M=L.first&&MQ?Dt(Q,te(L,Q).text.length):xt(M,te(L,M.line).text.length)}function xt(L,M){var Q=L.ch;return Q==null||Q>M?Dt(L.line,M):Q<0?Dt(L.line,0):L}function ut(L,M){for(var Q=[],J=0;Jthis.maxLookAhead&&(this.maxLookAhead=L),M},Lt.prototype.baseToken=function(L){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=L;)this.baseTokenPos+=2;var M=this.baseTokens[this.baseTokenPos+1];return{type:M&&M.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-L}},Lt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Lt.fromSaved=function(L,M,Q){return M instanceof ft?new Lt(L,_t(L.mode,M.state),Q,M.lookAhead):new Lt(L,_t(L.mode,M),Q)},Lt.prototype.save=function(L){var M=L!==!1?_t(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ft(M,this.maxLookAhead):M};function Tt(L,M,Q,J){var re=[L.state.modeGen],De={};Fr(L,M.text,L.doc.mode,Q,function(Gt,Cr){return re.push(Gt,Cr)},De,J);for(var mt=Q.state,Nt=function(Cr){Q.baseTokens=re;var Ur=L.state.overlays[Cr],en=1,nn=0;Q.state=!0,Fr(L,M.text,Ur.mode,Q,function(xn,Bn){for(var Zn=en;nnxn&&re.splice(en,1,xn,re[en+1],Jn),en+=2,nn=Math.min(xn,Jn)}if(!Bn)return;if(Ur.opaque)re.splice(Zn,en-Zn,xn,"overlay "+Bn),en=Zn+2;else for(;ZnL.options.maxHighlightLength&&_t(L.doc.mode,J.state),De=Tt(L,M,J);re&&(J.state=re),M.stateAfter=J.save(!re),M.styles=De.styles,De.classes?M.styleClasses=De.classes:M.styleClasses&&(M.styleClasses=null),Q===L.doc.highlightFrontier&&(L.doc.modeFrontier=Math.max(L.doc.modeFrontier,++L.doc.highlightFrontier))}return M.styles}function Ht(L,M,Q){var J=L.doc,re=L.display;if(!J.mode.startState)return new Lt(J,!0,M);var De=tn(L,M,Q),mt=De>J.first&&te(J,De-1).stateAfter,Nt=mt?Lt.fromSaved(J,mt,De):new Lt(J,ue(J.mode),De);return J.iter(De,M,function(zt){Ft(L,zt.text,Nt);var Gt=Nt.line;zt.stateAfter=Gt==M-1||Gt%5==0||Gt>=re.viewFrom&&GtM.start)return De}throw new Error("Mode "+L.name+" failed to advance stream.")}var mr=function(M,Q,J){this.start=M.start,this.end=M.pos,this.string=M.current(),this.type=Q||null,this.state=J};function Ar(L,M,Q,J){var re=L.doc,De=re.mode,mt;M=ot(re,M);var Nt=te(re,M.line),zt=Ht(L,M.line,Q),Gt=new Y(Nt.text,L.options.tabSize,zt),Cr;for(J&&(Cr=[]);(J||Gt.posL.options.maxHighlightLength?(Nt=!1,mt&&Ft(L,M,J,Cr.pos),Cr.pos=M.length,Ur=null):Ur=Nr(Xt(Q,Cr,J.state,en),De),en){var nn=en[0].name;nn&&(Ur="m-"+(Ur?nn+" "+Ur:nn))}if(!Nt||Gt!=Ur){for(;ztmt;--Nt){if(Nt<=De.first)return De.first;var zt=te(De,Nt-1),Gt=zt.stateAfter;if(Gt&&(!Q||Nt+(Gt instanceof ft?Gt.lookAhead:0)<=De.modeFrontier))return Nt;var Cr=W(zt.text,null,L.options.tabSize);(re==null||J>Cr)&&(re=Nt-1,J=Cr)}return re}function qr(L,M){if(L.modeFrontier=Math.min(L.modeFrontier,M),L.highlightFrontierQ;J--){var re=te(L,J).stateAfter;if(re&&(!(re instanceof ft)||J+re.lookAhead=M:De.to>M);(J||(J=[])).push(new pr(mt,De.from,zt?null:De.to))}}return J}function un(L,M,Q){var J;if(L)for(var re=0;re=M:De.to>M);if(Nt||De.from==M&&mt.type=="bookmark"&&(!Q||De.marker.insertLeft)){var zt=De.from==null||(mt.inclusiveLeft?De.from<=M:De.from0&&Nt)for(var qe=0;qe0)continue;var Cr=[zt,1],Ur=Kt(Gt.from,Nt.from),en=Kt(Gt.to,Nt.to);(Ur<0||!mt.inclusiveLeft&&!Ur)&&Cr.push({from:Gt.from,to:Nt.from}),(en>0||!mt.inclusiveRight&&!en)&&Cr.push({from:Nt.to,to:Gt.to}),re.splice.apply(re,Cr),zt+=Cr.length-3}return re}function gn(L){var M=L.markedSpans;if(!M)return;for(var Q=0;QM)&&(!J||Gn(J,De.marker)<0)&&(J=De.marker)}return J}function xa(L,M,Q,J,re){var De=te(L,M),mt=Qr&&De.markedSpans;if(mt)for(var Nt=0;Nt=0&&Ur<=0||Cr<=0&&Ur>=0)continue;if(Cr<=0&&(zt.marker.inclusiveRight&&re.inclusiveLeft?Kt(Gt.to,Q)>=0:Kt(Gt.to,Q)>0)||Cr>=0&&(zt.marker.inclusiveRight&&re.inclusiveLeft?Kt(Gt.from,J)<=0:Kt(Gt.from,J)<0))return!0}}function ta(L){for(var M;M=An(L);)L=M.find(-1,!0).line;return L}function Ii(L){for(var M;M=on(L);)L=M.find(1,!0).line;return L}function Ci(L){for(var M,Q;M=on(L);)L=M.find(1,!0).line,(Q||(Q=[])).push(L);return Q}function Yn(L,M){var Q=te(L,M),J=ta(Q);return Q==J?M:$e(J)}function _a(L,M){if(M>L.lastLine())return M;var Q=te(L,M),J;if(!mn(L,Q))return M;for(;J=on(Q);)Q=J.find(1,!0).line;return $e(Q)+1}function mn(L,M){var Q=Qr&&M.markedSpans;if(Q)for(var J=void 0,re=0;reM.maxLineLength&&(M.maxLineLength=re,M.maxLine=J)})}var ni=function(M,Q,J){this.text=M,Pn(this,Q),this.height=J?J(this):1};ni.prototype.lineNo=function(){return $e(this)},st(ni);function di(L,M,Q,J){L.text=M,L.stateAfter&&(L.stateAfter=null),L.styles&&(L.styles=null),L.order!=null&&(L.order=null),gn(L),Pn(L,Q);var re=J?J(L):1;re!=L.height&&Re(L,re)}function Na(L){L.parent=null,gn(L)}var Qi={},ma={};function Ba(L,M){if(!L||/^\s*$/.test(L))return null;var Q=M.addModeClass?ma:Qi;return Q[L]||(Q[L]=L.replace(/\S+/g,"cm-$&"))}function Qa(L,M){var Q=F("span",null,null,i?"padding-right: .1px":null),J={pre:F("pre",[Q],"CodeMirror-line"),content:Q,col:0,pos:0,cm:L,trailingSpace:!1,splitSpaces:L.getOption("lineWrapping")};M.measure={};for(var re=0;re<=(M.rest?M.rest.length:0);re++){var De=re?M.rest[re-1]:M.line,mt=void 0;J.pos=0,J.addToken=Co,It(L.display.measure)&&(mt=vt(De,L.doc.direction))&&(J.addToken=Hi(J.addToken,mt)),J.map=[];var Nt=M!=L.display.externalMeasured&&$e(De);ha(De,J,ht(L,De,Nt)),De.styleClasses&&(De.styleClasses.bgClass&&(J.bgClass=R(De.styleClasses.bgClass,J.bgClass||"")),De.styleClasses.textClass&&(J.textClass=R(De.styleClasses.textClass,J.textClass||""))),J.map.length==0&&J.map.push(0,0,J.content.appendChild(ct(L.display.measure))),re==0?(M.measure.map=J.map,M.measure.cache={}):((M.measure.maps||(M.measure.maps=[])).push(J.map),(M.measure.caches||(M.measure.caches=[])).push({}))}if(i){var zt=J.content.lastChild;(/\bcm-tab\b/.test(zt.className)||zt.querySelector&&zt.querySelector(".cm-tab"))&&(J.content.className="cm-tab-wrap-hack")}return wt(L,"renderLine",L,M.line,J.pre),J.pre.className&&(J.textClass=R(J.pre.className,J.textClass||"")),J}function Wi(L){var M=N("span","\u2022","cm-invalidchar");return M.title="\\u"+L.charCodeAt(0).toString(16),M.setAttribute("aria-label",M.title),M}function Co(L,M,Q,J,re,De,mt){if(!M)return;var Nt=L.splitSpaces?aa(M,L.trailingSpace):M,zt=L.cm.state.specialChars,Gt=!1,Cr;if(!zt.test(M))L.col+=M.length,Cr=document.createTextNode(Nt),L.map.push(L.pos,L.pos+M.length,Cr),c&&o<9&&(Gt=!0),L.pos+=M.length;else{Cr=document.createDocumentFragment();for(var Ur=0;;){zt.lastIndex=Ur;var en=zt.exec(M),nn=en?en.index-Ur:M.length-Ur;if(nn){var xn=document.createTextNode(Nt.slice(Ur,Ur+nn));c&&o<9?Cr.appendChild(N("span",[xn])):Cr.appendChild(xn),L.map.push(L.pos,L.pos+nn,xn),L.col+=nn,L.pos+=nn}if(!en)break;Ur+=nn+1;var Bn=void 0;if(en[0]==" "){var Zn=L.cm.options.tabSize,Jn=Zn-L.col%Zn;Bn=Cr.appendChild(N("span",Pe(Jn),"cm-tab")),Bn.setAttribute("role","presentation"),Bn.setAttribute("cm-text"," "),L.col+=Jn}else en[0]=="\r"||en[0]==` `?(Bn=Cr.appendChild(N("span",en[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Bn.setAttribute("cm-text",en[0]),L.col+=1):(Bn=L.cm.options.specialCharPlaceholder(en[0]),Bn.setAttribute("cm-text",en[0]),c&&o<9?Cr.appendChild(N("span",[Bn])):Cr.appendChild(Bn),L.col+=1);L.map.push(L.pos,L.pos+1,Bn),L.pos++}}if(L.trailingSpace=Nt.charCodeAt(M.length-1)==32,Q||J||re||Gt||De||mt){var oi=Q||"";J&&(oi+=J),re&&(oi+=re);var li=N("span",[Cr],oi,De);if(mt)for(var qe in mt)mt.hasOwnProperty(qe)&&qe!="style"&&qe!="class"&&li.setAttribute(qe,mt[qe]);return L.content.appendChild(li)}L.content.appendChild(Cr)}function aa(L,M){if(L.length>1&&!/ /.test(L))return L;for(var Q=M,J="",re=0;reGt&&Ur.from<=Gt);en++);if(Ur.to>=Cr)return L(Q,J,re,De,mt,Nt,zt);L(Q,J.slice(0,Ur.to-Gt),re,De,null,Nt,zt),De=null,J=J.slice(Ur.to-Gt),Gt=Ur.to}}}function ga(L,M,Q,J){var re=!J&&Q.widgetNode;re&&L.map.push(L.pos,L.pos+M,re),!J&&L.cm.display.input.needsContentAttribute&&(re||(re=L.content.appendChild(document.createElement("span"))),re.setAttribute("cm-marker",Q.id)),re&&(L.cm.display.input.setUneditable(re),L.content.appendChild(re)),L.pos+=M,L.trailingSpace=!1}function ha(L,M,Q){var J=L.markedSpans,re=L.text,De=0;if(!J){for(var mt=1;mtzt||Je.collapsed&&Me.to==zt&&Me.from==zt)){if(Me.to!=null&&Me.to!=zt&&nn>Me.to&&(nn=Me.to,Bn=""),Je.className&&(xn+=" "+Je.className),Je.css&&(en=(en?en+";":"")+Je.css),Je.startStyle&&Me.from==zt&&(Zn+=" "+Je.startStyle),Je.endStyle&&Me.to==nn&&(qe||(qe=[])).push(Je.endStyle,Me.to),Je.title&&((oi||(oi={})).title=Je.title),Je.attributes)for(var Ot in Je.attributes)(oi||(oi={}))[Ot]=Je.attributes[Ot];Je.collapsed&&(!Jn||Gn(Jn.marker,Je)<0)&&(Jn=Me)}else Me.from>zt&&nn>Me.from&&(nn=Me.from)}if(qe)for(var tr=0;tr=Nt)break;for(var Lr=Math.min(Nt,nn);;){if(Cr){var Hr=zt+Cr.length;if(!Jn){var Kr=Hr>Lr?Cr.slice(0,Lr-zt):Cr;M.addToken(M,Kr,Ur?Ur+xn:xn,Zn,zt+Kr.length==nn?Bn:"",en,oi)}if(Hr>=Lr){Cr=Cr.slice(Lr-zt),zt=Lr;break}zt=Hr,Zn=""}Cr=re.slice(De,De=Q[Gt++]),Ur=Ba(Q[Gt++],M.cm.options)}}}function mo(L,M,Q){this.line=M,this.rest=Ci(M),this.size=this.rest?$e(Ge(this.rest))-Q+1:1,this.node=this.text=null,this.hidden=mn(L,M)}function kn(L,M,Q){for(var J=[],re,De=M;De2&&De.push((zt.bottom+Gt.top)/2-Q.top)}}De.push(Q.bottom-Q.top)}}function wn(L,M,Q){if(L.line==M)return{map:L.measure.map,cache:L.measure.cache};for(var J=0;JQ)return{map:L.measure.maps[re],cache:L.measure.caches[re],before:!0}}function Hn(L,M){M=ta(M);var Q=$e(M),J=L.display.externalMeasured=new mo(L.doc,M,Q);J.lineN=Q;var re=J.built=Qa(L,J);return J.text=re.pre,_(L.display.lineMeasure,re.pre),J}function Sn(L,M,Q,J){return vn(L,Mn(L,M),Q,J)}function bn(L,M){if(M>=L.display.viewFrom&&M=Q.lineN&&MM)&&(De=zt-Nt,re=De-1,M>=zt&&(mt="right")),re!=null){if(J=L[Gt+2],Nt==zt&&Q==(J.insertLeft?"left":"right")&&(mt=Q),Q=="left"&&re==0)for(;Gt&&L[Gt-2]==L[Gt-3]&&L[Gt-1].insertLeft;)J=L[(Gt-=3)+2],mt="left";if(Q=="right"&&re==zt-Nt)for(;Gt=0&&!((Q=L[re]).left!=Q.right);re--);return Q}function Xn(L,M,Q,J){var re=En(M.map,Q,J),De=re.node,mt=re.start,Nt=re.end,zt=re.collapse,Gt;if(De.nodeType==3){for(var Cr=0;Cr<4;Cr++){for(;mt&&Ce(M.line.text.charAt(re.coverStart+mt));)--mt;for(;re.coverStart+Nt0&&(zt=J="right");var Ur;L.options.lineWrapping&&(Ur=De.getClientRects()).length>1?Gt=Ur[J=="right"?Ur.length-1:0]:Gt=De.getBoundingClientRect()}if(c&&o<9&&!mt&&(!Gt||!Gt.left&&!Gt.right)){var en=De.parentNode.getClientRects()[0];en?Gt={left:en.left,right:en.left+Li(L.display),top:en.top,bottom:en.bottom}:Gt=Rn}for(var nn=Gt.top-M.rect.top,xn=Gt.bottom-M.rect.top,Bn=(nn+xn)/2,Zn=M.view.measure.heights,Jn=0;Jn=J.text.length?(zt=J.text.length,Gt="before"):zt<=0&&(zt=0,Gt="after"),!Nt)return mt(Gt=="before"?zt-1:zt,Gt=="before");function Cr(xn,Bn,Zn){var Jn=Nt[Bn],oi=Jn.level==1;return mt(Zn?xn-1:xn,oi!=Zn)}var Ur=Oe(Nt,zt,Gt),en=me,nn=Cr(zt,Ur,Gt=="before");return en!=null&&(nn.other=Cr(zt,en,Gt!="before")),nn}function mi(L,M){var Q=0;M=ot(L.doc,M),L.options.lineWrapping||(Q=Li(L.display)*M.ch);var J=te(L.doc,M.line),re=On(J)+Vt(L.display);return{left:Q,right:Q,top:re,bottom:re+J.height}}function hi(L,M,Q,J,re){var De=Dt(L,M,Q);return De.xRel=re,J&&(De.outside=J),De}function qi(L,M,Q){var J=L.doc;if(Q+=L.display.viewOffset,Q<0)return hi(J.first,0,null,-1,-1);var re=gt(J,Q),De=J.first+J.size-1;if(re>De)return hi(J.first+J.size-1,te(J,De).text.length,null,1,1);M<0&&(M=0);for(var mt=te(J,re);;){var Nt=oa(L,mt,re,M,Q),zt=ia(mt,Nt.ch+(Nt.xRel>0||Nt.outside>0?1:0));if(!zt)return Nt;var Gt=zt.find(1);if(Gt.line==re)return Gt;mt=te(J,re=Gt.line)}}function va(L,M,Q,J){J-=Un(M);var re=M.text.length,De=_e(function(mt){return vn(L,Q,mt-1).bottom<=J},re,0);return re=_e(function(mt){return vn(L,Q,mt).top>J},De,re),{begin:De,end:re}}function Ea(L,M,Q,J){Q||(Q=Mn(L,M));var re=Ri(L,M,vn(L,Q,J),"line").top;return va(L,M,Q,re)}function ya(L,M,Q,J){return L.bottom<=Q?!1:L.top>Q?!0:(J?L.left:L.right)>M}function oa(L,M,Q,J,re){re-=On(M);var De=Mn(L,M),mt=Un(M),Nt=0,zt=M.text.length,Gt=!0,Cr=vt(M,L.doc.direction);if(Cr){var Ur=(L.options.lineWrapping?Ni:sa)(L,M,Q,De,Cr,J,re);Gt=Ur.level!=1,Nt=Gt?Ur.from:Ur.to-1,zt=Gt?Ur.to:Ur.from-1}var en=null,nn=null,xn=_e(function(Z){var Me=vn(L,De,Z);return Me.top+=mt,Me.bottom+=mt,ya(Me,J,re,!1)?(Me.top<=re&&Me.left<=J&&(en=Z,nn=Me),!0):!1},Nt,zt),Bn,Zn,Jn=!1;if(nn){var oi=J-nn.left=qe.bottom?1:0}return xn=ze(M.text,xn,1),hi(Q,xn,Zn,Jn,J-Bn)}function sa(L,M,Q,J,re,De,mt){var Nt=_e(function(Ur){var en=re[Ur],nn=en.level!=1;return ya(Mi(L,Dt(Q,nn?en.to:en.from,nn?"before":"after"),"line",M,J),De,mt,!0)},0,re.length-1),zt=re[Nt];if(Nt>0){var Gt=zt.level!=1,Cr=Mi(L,Dt(Q,Gt?zt.from:zt.to,Gt?"after":"before"),"line",M,J);ya(Cr,De,mt,!0)&&Cr.top>mt&&(zt=re[Nt-1])}return zt}function Ni(L,M,Q,J,re,De,mt){var Nt=va(L,M,J,mt),zt=Nt.begin,Gt=Nt.end;/\s/.test(M.text.charAt(Gt-1))&&Gt--;for(var Cr=null,Ur=null,en=0;en=Gt||nn.to<=zt)continue;var xn=nn.level!=1,Bn=vn(L,J,xn?Math.min(Gt,nn.to)-1:Math.max(zt,nn.from)).right,Zn=BnZn)&&(Cr=nn,Ur=Zn)}return Cr||(Cr=re[re.length-1]),Cr.fromGt&&(Cr={from:Cr.from,to:Gt,level:Cr.level}),Cr}var $n;function Ai(L){if(L.cachedTextHeight!=null)return L.cachedTextHeight;if($n==null){$n=N("pre",null,"CodeMirror-line-like");for(var M=0;M<49;++M)$n.appendChild(document.createTextNode("x")),$n.appendChild(N("br"));$n.appendChild(document.createTextNode("x"))}_(L.measure,$n);var Q=$n.offsetHeight/50;return Q>3&&(L.cachedTextHeight=Q),C(L.measure),Q||1}function Li(L){if(L.cachedCharWidth!=null)return L.cachedCharWidth;var M=N("span","xxxxxxxxxx"),Q=N("pre",[M],"CodeMirror-line-like");_(L.measure,Q);var J=M.getBoundingClientRect(),re=(J.right-J.left)/10;return re>2&&(L.cachedCharWidth=re),re||10}function Vi(L){for(var M=L.display,Q={},J={},re=M.gutters.clientLeft,De=M.gutters.firstChild,mt=0;De;De=De.nextSibling,++mt){var Nt=L.display.gutterSpecs[mt].className;Q[Nt]=De.offsetLeft+De.clientLeft+re,J[Nt]=De.clientWidth}return{fixedPos:Xi(M),gutterTotalWidth:M.gutters.offsetWidth,gutterLeft:Q,gutterWidth:J,wrapperWidth:M.wrapper.clientWidth}}function Xi(L){return L.scroller.getBoundingClientRect().left-L.sizer.getBoundingClientRect().left}function bi(L){var M=Ai(L.display),Q=L.options.lineWrapping,J=Q&&Math.max(5,L.display.scroller.clientWidth/Li(L.display)-3);return function(re){if(mn(L.doc,re))return 0;var De=0;if(re.widgets)for(var mt=0;mt0&&(Gt=te(L.doc,zt.line).text).length==zt.ch){var Cr=W(Gt,Gt.length,L.options.tabSize)-Gt.length;zt=Dt(zt.line,Math.max(0,Math.round((De-br(L.display).left)/Li(L.display))-Cr))}return zt}function la(L,M){if(M>=L.display.viewTo)return null;if(M-=L.display.viewFrom,M<0)return null;for(var Q=L.display.view,J=0;JM)&&(re.updateLineNumbers=M),L.curOp.viewChanged=!0,M>=re.viewTo)Qr&&Yn(L.doc,M)re.viewFrom?Ma(L):(re.viewFrom+=J,re.viewTo+=J);else if(M<=re.viewFrom&&Q>=re.viewTo)Ma(L);else if(M<=re.viewFrom){var De=ra(L,Q,Q+J,1);De?(re.view=re.view.slice(De.index),re.viewFrom=De.lineN,re.viewTo+=J):Ma(L)}else if(Q>=re.viewTo){var mt=ra(L,M,M,-1);mt?(re.view=re.view.slice(0,mt.index),re.viewTo=mt.lineN):Ma(L)}else{var Nt=ra(L,M,M,-1),zt=ra(L,Q,Q+J,1);Nt&&zt?(re.view=re.view.slice(0,Nt.index).concat(kn(L,Nt.lineN,zt.lineN)).concat(re.view.slice(zt.index)),re.viewTo+=J):Ma(L)}var Gt=re.externalMeasured;Gt&&(Q=re.lineN&&M=J.viewTo)return;var De=J.view[la(L,M)];if(De.node==null)return;var mt=De.changes||(De.changes=[]);z(mt,Q)==-1&&mt.push(Q)}function Ma(L){L.display.viewFrom=L.display.viewTo=L.doc.first,L.display.view=[],L.display.viewOffset=0}function ra(L,M,Q,J){var re=la(L,M),De,mt=L.display.view;if(!Qr||Q==L.doc.first+L.doc.size)return{index:re,lineN:Q};for(var Nt=L.display.viewFrom,zt=0;zt0){if(re==mt.length-1)return null;De=Nt+mt[re].size-M,re++}else De=Nt-M;M+=De,Q+=De}for(;Yn(L.doc,Q)!=Q;){if(re==(J<0?0:mt.length-1))return null;Q+=J*mt[re-(J<0?1:0)].size,re+=J}return{index:re,lineN:Q}}function Gi(L,M,Q){var J=L.display,re=J.view;re.length==0||M>=J.viewTo||Q<=J.viewFrom?(J.view=kn(L,M,Q),J.viewFrom=M):(J.viewFrom>M?J.view=kn(L,M,J.viewFrom).concat(J.view):J.viewFromQ&&(J.view=J.view.slice(0,la(L,Q)))),J.viewTo=Q}function Xa(L){for(var M=L.display.view,Q=0,J=0;J=L.display.viewTo||Nt.to().line0?M.blinker=setInterval(function(){L.hasFocus()||_i(L),M.cursorDiv.style.visibility=(Q=!Q)?"":"hidden"},L.options.cursorBlinkRate):L.options.cursorBlinkRate<0&&(M.cursorDiv.style.visibility="hidden")}function Ga(L){L.state.focused||(L.display.input.focus(),pa(L))}function Ka(L){L.state.delayingBlurEvent=!0,setTimeout(function(){L.state.delayingBlurEvent&&(L.state.delayingBlurEvent=!1,_i(L))},100)}function pa(L,M){if(L.state.delayingBlurEvent&&(L.state.delayingBlurEvent=!1),L.options.readOnly=="nocursor")return;L.state.focused||(wt(L,"focus",L,M),L.state.focused=!0,K(L.display.wrapper,"CodeMirror-focused"),!L.curOp&&L.display.selForContextMenu!=L.doc.sel&&(L.display.input.reset(),i&&setTimeout(function(){return L.display.input.reset(!0)},20)),L.display.input.receivedFocus()),vi(L)}function _i(L,M){if(L.state.delayingBlurEvent)return;L.state.focused&&(wt(L,"blur",L,M),L.state.focused=!1,x(L.display.wrapper,"CodeMirror-focused")),clearInterval(L.display.blinker),setTimeout(function(){L.state.focused||(L.display.shift=!1)},150)}function So(L){for(var M=L.display,Q=M.lineDiv.offsetTop,J=0;J.005||Cr<-.005)&&(Re(re.line,mt),za(re.line),re.rest))for(var Ur=0;UrL.display.sizerWidth){var en=Math.ceil(Nt/Li(L.display));en>L.display.maxLineLength&&(L.display.maxLineLength=en,L.display.maxLine=re.line,L.display.maxLineChanged=!0)}}}function za(L){if(L.widgets)for(var M=0;M=mt&&(De=gt(M,On(te(M,zt))-L.wrapper.clientHeight),mt=zt)}return{from:De,to:Math.max(mt,De+1)}}function qa(L,M){if(Ye(L,"scrollCursorIntoView"))return;var Q=L.display,J=Q.sizer.getBoundingClientRect(),re=null;if(M.top+J.top<0?re=!0:M.bottom+J.top>(window.innerHeight||document.documentElement.clientHeight)&&(re=!1),re!=null&&!t){var De=N("div","\u200B",null,`position: absolute; top: `+(M.top-Q.viewOffset-Vt(L.display))+`px; height: `+(M.bottom-M.top+Mr(L)+Q.barHeight)+`px; left: `+M.left+"px; width: "+Math.max(2,M.right-M.left)+"px;");L.display.lineSpace.appendChild(De),De.scrollIntoView(re),L.display.lineSpace.removeChild(De)}}function ho(L,M,Q,J){J==null&&(J=0);var re;!L.options.lineWrapping&&M==Q&&(M=M.ch?Dt(M.line,M.sticky=="before"?M.ch-1:M.ch,"after"):M,Q=M.sticky=="before"?Dt(M.line,M.ch+1,"before"):M);for(var De=0;De<5;De++){var mt=!1,Nt=Mi(L,M),zt=!Q||Q==M?Nt:Mi(L,Q);re={left:Math.min(Nt.left,zt.left),top:Math.min(Nt.top,zt.top)-J,right:Math.max(Nt.left,zt.left),bottom:Math.max(Nt.bottom,zt.bottom)+J};var Gt=to(L,re),Cr=L.doc.scrollTop,Ur=L.doc.scrollLeft;if(Gt.scrollTop!=null&&(Yi(L,Gt.scrollTop),Math.abs(L.doc.scrollTop-Cr)>1&&(mt=!0)),Gt.scrollLeft!=null&&(go(L,Gt.scrollLeft),Math.abs(L.doc.scrollLeft-Ur)>1&&(mt=!0)),!mt)break}return re}function Ca(L,M){var Q=to(L,M);Q.scrollTop!=null&&Yi(L,Q.scrollTop),Q.scrollLeft!=null&&go(L,Q.scrollLeft)}function to(L,M){var Q=L.display,J=Ai(L.display);M.top<0&&(M.top=0);var re=L.curOp&&L.curOp.scrollTop!=null?L.curOp.scrollTop:Q.scroller.scrollTop,De=rn(L),mt={};M.bottom-M.top>De&&(M.bottom=M.top+De);var Nt=L.doc.height+sr(Q),zt=M.topNt-J;if(M.topre+De){var Cr=Math.min(M.top,(Gt?Nt:M.bottom)-De);Cr!=re&&(mt.scrollTop=Cr)}var Ur=L.options.fixedGutter?0:Q.gutters.offsetWidth,en=L.curOp&&L.curOp.scrollLeft!=null?L.curOp.scrollLeft:Q.scroller.scrollLeft-Ur,nn=Dr(L)-Q.gutters.offsetWidth,xn=M.right-M.left>nn;return xn&&(M.right=M.left+nn),M.left<10?mt.scrollLeft=0:M.leftnn+en-3&&(mt.scrollLeft=M.right+(xn?0:10)-nn),mt}function Oo(L,M){if(M==null)return;Da(L),L.curOp.scrollTop=(L.curOp.scrollTop==null?L.doc.scrollTop:L.curOp.scrollTop)+M}function La(L){Da(L);var M=L.getCursor();L.curOp.scrollToPos={from:M,to:M,margin:L.options.cursorScrollMargin}}function Fi(L,M,Q){(M!=null||Q!=null)&&Da(L),M!=null&&(L.curOp.scrollLeft=M),Q!=null&&(L.curOp.scrollTop=Q)}function Ja(L,M){Da(L),L.curOp.scrollToPos=M}function Da(L){var M=L.curOp.scrollToPos;if(M){L.curOp.scrollToPos=null;var Q=mi(L,M.from),J=mi(L,M.to);pi(L,Q,J,M.margin)}}function pi(L,M,Q,J){var re=to(L,{left:Math.min(M.left,Q.left),top:Math.min(M.top,Q.top)-J,right:Math.max(M.right,Q.right),bottom:Math.max(M.bottom,Q.bottom)+J});Fi(L,re.scrollLeft,re.scrollTop)}function Yi(L,M){if(Math.abs(L.doc.scrollTop-M)<2)return;y||Lo(L,{top:M}),oo(L,M,!0),y&&Lo(L),ps(L,100)}function oo(L,M,Q){if(M=Math.max(0,Math.min(L.display.scroller.scrollHeight-L.display.scroller.clientHeight,M)),L.display.scroller.scrollTop==M&&!Q)return;L.doc.scrollTop=M,L.display.scrollbars.setScrollTop(M),L.display.scroller.scrollTop!=M&&(L.display.scroller.scrollTop=M)}function go(L,M,Q,J){if(M=Math.max(0,Math.min(M,L.display.scroller.scrollWidth-L.display.scroller.clientWidth)),(Q?M==L.doc.scrollLeft:Math.abs(L.doc.scrollLeft-M)<2)&&!J)return;L.doc.scrollLeft=M,ms(L),L.display.scroller.scrollLeft!=M&&(L.display.scroller.scrollLeft=M),L.display.scrollbars.setScrollLeft(M)}function fo(L){var M=L.display,Q=M.gutters.offsetWidth,J=Math.round(L.doc.height+sr(L.display));return{clientHeight:M.scroller.clientHeight,viewHeight:M.wrapper.clientHeight,scrollWidth:M.scroller.scrollWidth,clientWidth:M.scroller.clientWidth,viewWidth:M.wrapper.clientWidth,barLeft:L.options.fixedGutter?Q:0,docHeight:J,scrollHeight:J+Mr(L)+M.barHeight,nativeBarWidth:M.nativeBarWidth,gutterWidth:Q}}var Ta=function(M,Q,J){this.cm=J;var re=this.vert=N("div",[N("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),De=this.horiz=N("div",[N("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");re.tabIndex=De.tabIndex=-1,M(re),M(De),Be(re,"scroll",function(){re.clientHeight&&Q(re.scrollTop,"vertical")}),Be(De,"scroll",function(){De.clientWidth&&Q(De.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,c&&o<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ta.prototype.update=function(L){var M=L.scrollWidth>L.clientWidth+1,Q=L.scrollHeight>L.clientHeight+1,J=L.nativeBarWidth;if(Q){this.vert.style.display="block",this.vert.style.bottom=M?J+"px":"0";var re=L.viewHeight-(M?J:0);this.vert.firstChild.style.height=Math.max(0,L.scrollHeight-L.clientHeight+re)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(M){this.horiz.style.display="block",this.horiz.style.right=Q?J+"px":"0",this.horiz.style.left=L.barLeft+"px";var De=L.viewWidth-L.barLeft-(Q?J:0);this.horiz.firstChild.style.width=Math.max(0,L.scrollWidth-L.clientWidth+De)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&L.clientHeight>0&&(J==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:Q?J:0,bottom:M?J:0}},Ta.prototype.setScrollLeft=function(L){this.horiz.scrollLeft!=L&&(this.horiz.scrollLeft=L),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ta.prototype.setScrollTop=function(L){this.vert.scrollTop!=L&&(this.vert.scrollTop=L),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ta.prototype.zeroWidthHack=function(){var L=w&&!l?"12px":"18px";this.horiz.style.height=this.vert.style.width=L,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new V,this.disableVert=new V},Ta.prototype.enableZeroWidthBar=function(L,M,Q){L.style.pointerEvents="auto";function J(){var re=L.getBoundingClientRect(),De=Q=="vert"?document.elementFromPoint(re.right-1,(re.top+re.bottom)/2):document.elementFromPoint((re.right+re.left)/2,re.bottom-1);De!=L?L.style.pointerEvents="none":M.set(1e3,J)}M.set(1e3,J)},Ta.prototype.clear=function(){var L=this.horiz.parentNode;L.removeChild(this.horiz),L.removeChild(this.vert)};var ki=function(){};ki.prototype.update=function(){return{bottom:0,right:0}},ki.prototype.setScrollLeft=function(){},ki.prototype.setScrollTop=function(){},ki.prototype.clear=function(){};function Ra(L,M){M||(M=fo(L));var Q=L.display.barWidth,J=L.display.barHeight;Vo(L,M);for(var re=0;re<4&&Q!=L.display.barWidth||J!=L.display.barHeight;re++)Q!=L.display.barWidth&&L.options.lineWrapping&&So(L),Vo(L,fo(L)),Q=L.display.barWidth,J=L.display.barHeight}function Vo(L,M){var Q=L.display,J=Q.scrollbars.update(M);Q.sizer.style.paddingRight=(Q.barWidth=J.right)+"px",Q.sizer.style.paddingBottom=(Q.barHeight=J.bottom)+"px",Q.heightForcer.style.borderBottom=J.bottom+"px solid transparent",J.right&&J.bottom?(Q.scrollbarFiller.style.display="block",Q.scrollbarFiller.style.height=J.bottom+"px",Q.scrollbarFiller.style.width=J.right+"px"):Q.scrollbarFiller.style.display="",J.bottom&&L.options.coverGutterNextToScrollbar&&L.options.fixedGutter?(Q.gutterFiller.style.display="block",Q.gutterFiller.style.height=J.bottom+"px",Q.gutterFiller.style.width=M.gutterWidth+"px"):Q.gutterFiller.style.display=""}var ro={native:Ta,null:ki};function vo(L){L.display.scrollbars&&(L.display.scrollbars.clear(),L.display.scrollbars.addClass&&x(L.display.wrapper,L.display.scrollbars.addClass)),L.display.scrollbars=new ro[L.options.scrollbarStyle](function(M){L.display.wrapper.insertBefore(M,L.display.scrollbarFiller),Be(M,"mousedown",function(){L.state.focused&&setTimeout(function(){return L.display.input.focus()},0)}),M.setAttribute("cm-not-content","true")},function(M,Q){Q=="horizontal"?go(L,M):Yi(L,M)},L),L.display.scrollbars.addClass&&K(L.display.wrapper,L.display.scrollbars.addClass)}var po=0;function Zi(L){L.curOp={cm:L,viewChanged:!1,startHeight:L.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++po},eo(L.curOp)}function xo(L){var M=L.curOp;M&&uo(M,function(Q){for(var J=0;J=Q.viewTo)||Q.maxLineChanged&&M.options.lineWrapping,L.update=L.mustUpdate&&new Xo(M,L.mustUpdate&&{top:L.scrollTop,ensure:L.scrollToPos},L.forceUpdate)}function Is(L){L.updatedDisplay=L.mustUpdate&&Oa(L.cm,L.update)}function Cs(L){var M=L.cm,Q=M.display;L.updatedDisplay&&So(M),L.barMeasure=fo(M),Q.maxLineChanged&&!M.options.lineWrapping&&(L.adjustWidthTo=Sn(M,Q.maxLine,Q.maxLine.text.length).left+3,M.display.sizerWidth=L.adjustWidthTo,L.barMeasure.scrollWidth=Math.max(Q.scroller.clientWidth,Q.sizer.offsetLeft+L.adjustWidthTo+Mr(M)+M.display.barWidth),L.maxScrollLeft=Math.max(0,Q.sizer.offsetLeft+L.adjustWidthTo-Dr(M))),(L.updatedDisplay||L.selectionChanged)&&(L.preparedSelection=Q.input.prepareSelection())}function Ts(L){var M=L.cm;L.adjustWidthTo!=null&&(M.display.sizer.style.minWidth=L.adjustWidthTo+"px",L.maxScrollLeft=L.display.viewTo)return;var Q=+new Date+L.options.workTime,J=Ht(L,M.highlightFrontier),re=[];M.iter(J.line,Math.min(M.first+M.size,L.display.viewTo+500),function(De){if(J.line>=L.display.viewFrom){var mt=De.styles,Nt=De.text.length>L.options.maxHighlightLength?_t(M.mode,J.state):null,zt=Tt(L,De,J,!0);Nt&&(J.state=Nt),De.styles=zt.styles;var Gt=De.styleClasses,Cr=zt.classes;Cr?De.styleClasses=Cr:Gt&&(De.styleClasses=null);for(var Ur=!mt||mt.length!=De.styles.length||Gt!=Cr&&(!Gt||!Cr||Gt.bgClass!=Cr.bgClass||Gt.textClass!=Cr.textClass),en=0;!Ur&&enQ)return ps(L,L.options.workDelay),!0}),M.highlightFrontier=J.line,M.modeFrontier=Math.max(M.modeFrontier,J.line),re.length&&bo(L,function(){for(var De=0;De=Q.viewFrom&&M.visible.to<=Q.viewTo&&(Q.updateLineNumbers==null||Q.updateLineNumbers>=Q.viewTo)&&Q.renderedView==Q.view&&Xa(L)==0)return!1;ls(L)&&(Ma(L),M.dims=Vi(L));var re=J.first+J.size,De=Math.max(M.visible.from-L.options.viewportMargin,J.first),mt=Math.min(re,M.visible.to+L.options.viewportMargin);Q.viewFrommt&&Q.viewTo-mt<20&&(mt=Math.min(re,Q.viewTo)),Qr&&(De=Yn(L.doc,De),mt=_a(L.doc,mt));var Nt=De!=Q.viewFrom||mt!=Q.viewTo||Q.lastWrapHeight!=M.wrapperHeight||Q.lastWrapWidth!=M.wrapperWidth;Gi(L,De,mt),Q.viewOffset=On(te(L.doc,Q.viewFrom)),L.display.mover.style.top=Q.viewOffset+"px";var zt=Xa(L);if(!Nt&&zt==0&&!M.force&&Q.renderedView==Q.view&&(Q.updateLineNumbers==null||Q.updateLineNumbers>=Q.viewTo))return!1;var Gt=Os(L);return zt>4&&(Q.lineDiv.style.display="none"),ts(L,Q.updateLineNumbers,M.dims),zt>4&&(Q.lineDiv.style.display=""),Q.renderedView=Q.view,Fa(Gt),C(Q.cursorDiv),C(Q.selectionDiv),Q.gutters.style.height=Q.sizer.style.minHeight=0,Nt&&(Q.lastWrapHeight=M.wrapperHeight,Q.lastWrapWidth=M.wrapperWidth,ps(L,400)),Q.updateLineNumbers=null,!0}function _o(L,M){for(var Q=M.viewport,J=!0;;J=!1){if(!J||!L.options.lineWrapping||M.oldDisplayWidth==Dr(L)){if(Q&&Q.top!=null&&(Q={top:Math.min(L.doc.height+sr(L.display)-rn(L),Q.top)}),M.visible=ja(L.display,L.doc,Q),M.visible.from>=L.display.viewFrom&&M.visible.to<=L.display.viewTo)break}else J&&(M.visible=ja(L.display,L.doc,Q));if(!Oa(L,M))break;So(L);var re=fo(L);Ki(L),Ra(L,re),rs(L,re),M.force=!1}M.signal(L,"update",L),(L.display.viewFrom!=L.display.reportedViewFrom||L.display.viewTo!=L.display.reportedViewTo)&&(M.signal(L,"viewportChange",L,L.display.viewFrom,L.display.viewTo),L.display.reportedViewFrom=L.display.viewFrom,L.display.reportedViewTo=L.display.viewTo)}function Lo(L,M){var Q=new Xo(L,M);if(Oa(L,Q)){So(L),_o(L,Q);var J=fo(L);Ki(L),Ra(L,J),rs(L,J),Q.finish()}}function ts(L,M,Q){var J=L.display,re=L.options.lineNumbers,De=J.lineDiv,mt=De.firstChild;function Nt(xn){var Bn=xn.nextSibling;return i&&w&&L.display.currentWheelTarget==xn?xn.style.display="none":xn.parentNode.removeChild(xn),Bn}for(var zt=J.view,Gt=J.viewFrom,Cr=0;Cr-1&&(nn=!1),Wr(L,Ur,Gt,Q)),nn&&(C(Ur.lineNumber),Ur.lineNumber.appendChild(document.createTextNode($t(L.options,Gt)))),mt=Ur.node.nextSibling}Gt+=Ur.size}for(;mt;)mt=Nt(mt)}function Bo(L){var M=L.gutters.offsetWidth;L.sizer.style.marginLeft=M+"px"}function rs(L,M){L.display.sizer.style.minHeight=M.docHeight+"px",L.display.heightForcer.style.top=M.docHeight+"px",L.display.gutters.style.height=M.docHeight+L.display.barHeight+Mr(L)+"px"}function ms(L){var M=L.display,Q=M.view;if(!M.alignWidgets&&(!M.gutters.firstChild||!L.options.fixedGutter))return;for(var J=Xi(M)-M.scroller.scrollLeft+L.doc.scrollLeft,re=M.gutters.offsetWidth,De=J+"px",mt=0;mtmt.clientWidth,zt=mt.scrollHeight>mt.clientHeight;if(!(J&&Nt||re&&zt))return;if(re&&w&&i){e:for(var Gt=M.target,Cr=De.view;Gt!=mt;Gt=Gt.parentNode)for(var Ur=0;Ur=0&&Kt(L,J.to())<=0)return Q}return-1};var oe=function(M,Q){this.anchor=M,this.head=Q};oe.prototype.from=function(){return dr(this.anchor,this.head)},oe.prototype.to=function(){return Mt(this.anchor,this.head)},oe.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function we(L,M,Q){var J=L&&L.options.selectionsMayTouch,re=M[Q];M.sort(function(en,nn){return Kt(en.from(),nn.from())}),Q=z(M,re);for(var De=1;De0:zt>=0){var Gt=dr(Nt.from(),mt.from()),Cr=Mt(Nt.to(),mt.to()),Ur=Nt.empty()?mt.from()==mt.head:Nt.from()==Nt.head;De<=Q&&--Q,M.splice(--De,2,new oe(Ur?Cr:Gt,Ur?Gt:Cr))}}return new Pt(M,Q)}function Ee(L,M){return new Pt([new oe(L,M||L)],0)}function We(L){return L.text?Dt(L.from.line+L.text.length-1,Ge(L.text).length+(L.text.length==1?L.from.ch:0)):L.to}function Et(L,M){if(Kt(L,M.from)<0)return L;if(Kt(L,M.to)<=0)return We(M);var Q=L.line+M.text.length-(M.to.line-M.from.line)-1,J=L.ch;return L.line==M.to.line&&(J+=We(M).ch-M.to.ch),Dt(Q,J)}function Ut(L,M){for(var Q=[],J=0;J1&&L.remove(Nt.line+1,xn-1),L.insert(Nt.line+1,Jn)}Tr(L,"change",L,M)}function Cn(L,M,Q){function J(re,De,mt){if(re.linked)for(var Nt=0;Nt1&&!L.done[L.done.length-2].ranges)return L.done.pop(),Ge(L.done)}function Wa(L,M,Q,J){var re=L.history;re.undone.length=0;var De=+new Date,mt,Nt;if((re.lastOp==J||re.lastOrigin==M.origin&&M.origin&&(M.origin.charAt(0)=="+"&&re.lastModTime>De-(L.cm?L.cm.options.historyEventDelay:500)||M.origin.charAt(0)=="*"))&&(mt=lo(re,re.lastOp==J)))Nt=Ge(mt.changes),Kt(M.from,M.to)==0&&Kt(M.from,Nt.to)==0?Nt.to=We(M):mt.changes.push(ji(L,M));else{var zt=Ge(re.done);for((!zt||!zt.ranges)&&$a(L.sel,re.done),mt={changes:[ji(L,M)],generation:re.generation},re.done.push(mt);re.done.length>re.undoDepth;)re.done.shift(),re.done[0].ranges||re.done.shift()}re.done.push(Q),re.generation=++re.maxGeneration,re.lastModTime=re.lastSelTime=De,re.lastOp=re.lastSelOp=J,re.lastOrigin=re.lastSelOrigin=M.origin,Nt||wt(L,"historyAdded")}function yo(L,M,Q,J){var re=M.charAt(0);return re=="*"||re=="+"&&Q.ranges.length==J.ranges.length&&Q.somethingSelected()==J.somethingSelected()&&new Date-L.history.lastSelTime<=(L.cm?L.cm.options.historyEventDelay:500)}function Ao(L,M,Q,J){var re=L.history,De=J&&J.origin;Q==re.lastSelOp||De&&re.lastSelOrigin==De&&(re.lastModTime==re.lastSelTime&&re.lastOrigin==De||yo(L,De,Ge(re.done),M))?re.done[re.done.length-1]=M:$a(M,re.done),re.lastSelTime=+new Date,re.lastSelOrigin=De,re.lastSelOp=Q,J&&J.clearRedo!==!1&&Sa(re.undone)}function $a(L,M){var Q=Ge(M);Q&&Q.ranges&&Q.equals(L)||M.push(L)}function Fo(L,M,Q,J){var re=M["spans_"+L.id],De=0;L.iter(Math.max(L.first,Q),Math.min(L.first+L.size,J),function(mt){mt.markedSpans&&((re||(re=M["spans_"+L.id]={}))[De]=mt.markedSpans),++De})}function No(L){if(!L)return null;for(var M,Q=0;Q-1&&(Ge(Nt)[Ur]=Gt[Ur],delete Gt[Ur]))}}return J}function Qo(L,M,Q,J){if(J){var re=L.anchor;if(Q){var De=Kt(M,re)<0;De!=Kt(Q,re)<0?(re=M,M=Q):De!=Kt(M,Q)<0&&(M=Q)}return new oe(re,M)}else return new oe(Q||M,M)}function wo(L,M,Q,J,re){re==null&&(re=L.cm&&(L.cm.display.shift||L.extend)),Eo(L,new Pt([Qo(L.sel.primary(),M,Q,re)],0),J)}function us(L,M,Q){for(var J=[],re=L.cm&&(L.cm.display.shift||L.extend),De=0;De=M.ch:Nt.to>M.ch))){if(re&&(wt(zt,"beforeCursorEnter"),zt.explicitlyCleared))if(De.markedSpans){--mt;continue}else break;if(!zt.atomic)continue;if(Q){var Ur=zt.find(J<0?1:-1),en=void 0;if((J<0?Cr:Gt)&&(Ur=As(L,Ur,-J,Ur&&Ur.line==M.line?De:null)),Ur&&Ur.line==M.line&&(en=Kt(Ur,Q))&&(J<0?en<0:en>0))return ys(L,Ur,M,J,re)}var nn=zt.find(J<0?-1:1);return(J<0?Gt:Cr)&&(nn=As(L,nn,J,nn.line==M.line?De:null)),nn?ys(L,nn,M,J,re):null}}return M}function Ms(L,M,Q,J,re){var De=J||1,mt=ys(L,M,Q,De,re)||!re&&ys(L,M,Q,De,!0)||ys(L,M,Q,-De,re)||!re&&ys(L,M,Q,-De,!0);return mt||(L.cantEdit=!0,Dt(L.first,0))}function As(L,M,Q,J){return Q<0&&M.ch==0?M.line>L.first?ot(L,Dt(M.line-1)):null:Q>0&&M.ch==(J||te(L,M.line)).text.length?M.line=0;--re)ua(L,{from:J[re].from,to:J[re].to,text:re?[""]:M.text,origin:M.origin});else ua(L,M)}function ua(L,M){if(M.text.length==1&&M.text[0]==""&&Kt(M.from,M.to)==0)return;var Q=Ut(L,M);Wa(L,M,Q,L.cm?L.cm.curOp.id:NaN),Wn(L,M,Q,Nn(L,M));var J=[];Cn(L,function(re,De){!De&&z(J,re.history)==-1&&(Zo(re.history,M),J.push(re.history)),Wn(re,M,null,Nn(re,M))})}function ui(L,M,Q){var J=L.cm&&L.cm.state.suppressEdits;if(J&&!Q)return;for(var re=L.history,De,mt=L.sel,Nt=M=="undo"?re.done:re.undone,zt=M=="undo"?re.undone:re.done,Gt=0;Gt=0;--nn){var xn=en(nn);if(xn)return xn.v}}function Bi(L,M){if(M==0)return;if(L.first+=M,L.sel=new Pt(pt(L.sel.ranges,function(re){return new oe(Dt(re.anchor.line+M,re.anchor.ch),Dt(re.head.line+M,re.head.ch))}),L.sel.primIndex),L.cm){gi(L.cm,L.first,L.first-M,M);for(var Q=L.cm.display,J=Q.viewFrom;JL.lastLine())return;if(M.from.lineDe&&(M={from:M.from,to:Dt(De,te(L,De).text.length),text:[M.text[0]],origin:M.origin}),M.removed=be(L,M.from,M.to),Q||(Q=Ut(L,M)),L.cm?io(L.cm,M,J):yn(L,M,J),ds(L,Q,fe),L.cantEdit&&Ms(L,Dt(L.firstLine(),0))&&(L.cantEdit=!1)}function io(L,M,Q){var J=L.doc,re=L.display,De=M.from,mt=M.to,Nt=!1,zt=De.line;L.options.lineWrapping||(zt=$e(ta(te(J,De.line))),J.iter(zt,mt.line+1,function(nn){if(nn==re.maxLine)return Nt=!0,!0})),J.sel.contains(M.from,M.to)>-1&&et(L),yn(J,M,Q,bi(L)),L.options.lineWrapping||(J.iter(zt,De.line+M.text.length,function(nn){var xn=In(nn);xn>re.maxLineLength&&(re.maxLine=nn,re.maxLineLength=xn,re.maxLineChanged=!0,Nt=!1)}),Nt&&(L.curOp.updateMaxLine=!0)),qr(J,De.line),ps(L,400);var Gt=M.text.length-(mt.line-De.line)-1;M.full?gi(L):De.line==mt.line&&M.text.length==1&&!ln(L.doc,M)?Pa(L,De.line,"text"):gi(L,De.line,mt.line+1,Gt);var Cr=rt(L,"changes"),Ur=rt(L,"change");if(Ur||Cr){var en={from:De,to:mt,text:M.text,removed:M.removed,origin:M.origin};Ur&&Tr(L,"change",L,en),Cr&&(L.curOp.changeObjs||(L.curOp.changeObjs=[])).push(en)}L.display.selForContextMenu=null}function qo(L,M,Q,J,re){var De;J||(J=Q),Kt(J,Q)<0&&(De=[J,Q],Q=De[0],J=De[1]),typeof M=="string"&&(M=L.splitLines(M)),bs(L,{from:Q,to:J,text:M,origin:re})}function gs(L,M,Q,J){Q1||!(this.children[0]instanceof ws))){var zt=[];this.collapse(zt),this.children=[new ws(zt)],this.children[0].parent=this}},collapse:function(M){for(var Q=0;Q50){for(var Nt=De.lines.length%25+25,zt=Nt;zt10);M.parent.maybeSpill()},iterN:function(M,Q,J){for(var re=0;reL.display.maxLineLength&&(L.display.maxLine=Gt,L.display.maxLineLength=Cr,L.display.maxLineChanged=!0)}J!=null&&L&&this.collapsed&&gi(L,J,re+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,L&&Rs(L.doc)),L&&Tr(L,"markerCleared",L,this,J,re),M&&xo(L),this.parent&&this.parent.clear()},Ls.prototype.find=function(L,M){L==null&&this.type=="bookmark"&&(L=1);for(var Q,J,re=0;re0||mt==0&&De.clearWhenEmpty!==!1)return De;if(De.replacedWith&&(De.collapsed=!0,De.widgetNode=F("span",[De.replacedWith],"CodeMirror-widget"),J.handleMouseEvents||De.widgetNode.setAttribute("cm-ignore-events","true"),J.insertLeft&&(De.widgetNode.insertLeft=!0)),De.collapsed){if(xa(L,M.line,M,Q,De)||M.line!=Q.line&&xa(L,Q.line,M,Q,De))throw new Error("Inserting collapsed marker partially overlapping an existing one");ur()}De.addToHistory&&Wa(L,{from:M,to:Q,origin:"markText"},L.sel,NaN);var Nt=M.line,zt=L.cm,Gt;if(L.iter(Nt,Q.line+1,function(Ur){zt&&De.collapsed&&!zt.options.lineWrapping&&ta(Ur)==zt.display.maxLine&&(Gt=!0),De.collapsed&&Nt!=M.line&&Re(Ur,0),xr(Ur,new pr(De,Nt==M.line?M.ch:null,Nt==Q.line?Q.ch:null)),++Nt}),De.collapsed&&L.iter(M.line,Q.line+1,function(Ur){mn(L,Ur)&&Re(Ur,0)}),De.clearOnEnter&&Be(De,"beforeCursorEnter",function(){return De.clear()}),De.readOnly&&(Ir(),(L.history.done.length||L.history.undone.length)&&L.clearHistory()),De.collapsed&&(De.id=++Nl,De.atomic=!0),zt){if(Gt&&(zt.curOp.updateMaxLine=!0),De.collapsed)gi(zt,M.line,Q.line+1);else if(De.className||De.startStyle||De.endStyle||De.css||De.attributes||De.title)for(var Cr=M.line;Cr<=Q.line;Cr++)Pa(zt,Cr,"text");De.atomic&&Rs(zt.doc),Tr(zt,"markerAdded",zt,De)}return De}var el=function(M,Q){this.markers=M,this.primary=Q;for(var J=0;J=0;zt--)bs(this,J[zt]);Nt?Go(this,Nt):this.cm&&La(this.cm)}),undo:so(function(){ui(this,"undo")}),redo:so(function(){ui(this,"redo")}),undoSelection:so(function(){ui(this,"undo",!0)}),redoSelection:so(function(){ui(this,"redo",!0)}),setExtending:function(M){this.extend=M},getExtending:function(){return this.extend},historySize:function(){for(var M=this.history,Q=0,J=0,re=0;re=M.ch)&&Q.push(De.marker.parent||De.marker)}return Q},findMarks:function(M,Q,J){M=ot(this,M),Q=ot(this,Q);var re=[],De=M.line;return this.iter(M.line,Q.line+1,function(mt){var Nt=mt.markedSpans;if(Nt)for(var zt=0;zt=Gt.to||Gt.from==null&&De!=M.line||Gt.from!=null&&De==Q.line&&Gt.from>=Q.ch)&&(!J||J(Gt.marker))&&re.push(Gt.marker.parent||Gt.marker)}++De}),re},getAllMarks:function(){var M=[];return this.iter(function(Q){var J=Q.markedSpans;if(J)for(var re=0;reM)return Q=M,!0;M-=mt,++J}),ot(this,Dt(J,Q))},indexFromPos:function(M){M=ot(this,M);var Q=M.ch;if(M.lineQ&&(Q=M.from),M.to!=null&&M.to-1){M.state.draggingText(L),setTimeout(function(){return M.display.input.focus()},20);return}try{var Cr=L.dataTransfer.getData("Text");if(Cr){var Ur;if(M.state.draggingText&&!M.state.draggingText.copy&&(Ur=M.listSelections()),ds(M.doc,Ee(Q,Q)),Ur)for(var en=0;en=0;Nt--)qo(L.doc,"",J[Nt].from,J[Nt].to,"+delete");La(L)})}function hl(L,M,Q){var J=ze(L.text,M+Q,Q);return J<0||J>L.text.length?null:J}function il(L,M,Q){var J=hl(L,M.ch,Q);return J==null?null:new Dt(M.line,J,Q<0?"after":"before")}function fl(L,M,Q,J,re){if(L){M.doc.direction=="rtl"&&(re=-re);var De=vt(Q,M.doc.direction);if(De){var mt=re<0?Ge(De):De[0],Nt=re<0==(mt.level==1),zt=Nt?"after":"before",Gt;if(mt.level>0||M.doc.direction=="rtl"){var Cr=Mn(M,Q);Gt=re<0?Q.text.length-1:0;var Ur=vn(M,Cr,Gt).top;Gt=_e(function(en){return vn(M,Cr,en).top==Ur},re<0==(mt.level==1)?mt.from:mt.to-1,Gt),zt=="before"&&(Gt=hl(Q,Gt,1))}else Gt=re<0?mt.to:mt.from;return new Dt(J,Gt,zt)}}return new Dt(J,re<0?Q.text.length:0,re<0?"before":"after")}function El(L,M,Q,J){var re=vt(M,L.doc.direction);if(!re)return il(M,Q,J);Q.ch>=M.text.length?(Q.ch=M.text.length,Q.sticky="before"):Q.ch<=0&&(Q.ch=0,Q.sticky="after");var De=Oe(re,Q.ch,Q.sticky),mt=re[De];if(L.doc.direction=="ltr"&&mt.level%2==0&&(J>0?mt.to>Q.ch:mt.from=mt.from&&en>=Cr.begin)){var nn=Ur?"before":"after";return new Dt(Q.line,en,nn)}}var xn=function(oi,li,qe){for(var Z=function(vr,Lr){return Lr?new Dt(Q.line,Nt(vr,1),"before"):new Dt(Q.line,vr,"after")};oi>=0&&oi0==(Me.level!=1),Ot=Je?qe.begin:Nt(qe.end,-1);if(Me.from<=Ot&&Ot0?Cr.end:Nt(Cr.begin,-1);return Zn!=null&&!(J>0&&Zn==M.text.length)&&(Bn=xn(J>0?0:re.length-1,J,Gt(Zn)),Bn)?Bn:null}var zs={selectAll:Fs,singleSelection:function(M){return M.setSelection(M.getCursor("anchor"),M.getCursor("head"),fe)},killLine:function(M){return Qs(M,function(Q){if(Q.empty()){var J=te(M.doc,Q.head.line).text.length;return Q.head.ch==J&&Q.head.line0)De=new Dt(De.line,De.ch+1),M.replaceRange(mt.charAt(De.ch-1)+mt.charAt(De.ch-2),Dt(De.line,De.ch-2),De,"+transpose");else if(De.line>M.doc.first){var Nt=te(M.doc,De.line-1).text;Nt&&(De=new Dt(De.line,1),M.replaceRange(mt.charAt(0)+M.doc.lineSeparator()+Nt.charAt(Nt.length-1),Dt(De.line-1,Nt.length-1),De,"+transpose"))}}J.push(new oe(De,De))}M.setSelections(J)})},newlineAndIndent:function(M){return bo(M,function(){for(var Q=M.listSelections(),J=Q.length-1;J>=0;J--)M.replaceRange(M.doc.lineSeparator(),Q[J].anchor,Q[J].head,"+input");Q=M.listSelections();for(var re=0;reL&&Kt(M,this.pos)==0&&Q==this.button};var ol,Zs;function Pl(L,M){var Q=+new Date;return Zs&&Zs.compare(Q,L,M)?(ol=Zs=null,"triple"):ol&&ol.compare(Q,L,M)?(Zs=new xs(Q,L,M),ol=null,"double"):(ol=new xs(Q,L,M),Zs=null,"single")}function Ol(L){var M=this,Q=M.display;if(Ye(M,L)||Q.activeTouch&&Q.input.supportsTouch())return;if(Q.input.ensurePolled(),Q.shift=L.shiftKey,St(Q,L)){i||(Q.scroller.draggable=!1,setTimeout(function(){return Q.scroller.draggable=!0},100));return}if(_l(M,L))return;var J=ca(M,L),re=ye(L),De=J?Pl(J,re):"single";if(window.focus(),re==1&&M.state.selectingText&&M.state.selectingText(L),J&&vl(M,re,J,De,L))return;re==1?J?Bl(M,J,De,L):Qe(L)==Q.scroller&&Ve(L):re==2?(J&&wo(M.doc,J),setTimeout(function(){return Q.input.focus()},20)):re==3&&(T?M.display.input.onContextMenu(L):Ka(M))}function vl(L,M,Q,J,re){var De="Click";return J=="double"?De="Double"+De:J=="triple"&&(De="Triple"+De),De=(M==1?"Left":M==2?"Middle":"Right")+De,ml(L,Fl(De,re),re,function(mt){if(typeof mt=="string"&&(mt=zs[mt]),!mt)return!1;var Nt=!1;try{L.isReadOnly()&&(L.state.suppressEdits=!0),Nt=mt(L,Q)!=q}finally{L.state.suppressEdits=!1}return Nt})}function ql(L,M,Q){var J=L.getOption("configureMouse"),re=J?J(L,M,Q):{};if(re.unit==null){var De=b?Q.shiftKey&&Q.metaKey:Q.altKey;re.unit=De?"rectangle":M=="single"?"char":M=="double"?"word":"line"}return(re.extend==null||L.doc.extend)&&(re.extend=L.doc.extend||Q.shiftKey),re.addNew==null&&(re.addNew=w?Q.metaKey:Q.ctrlKey),re.moveOnDrag==null&&(re.moveOnDrag=!(w?Q.altKey:Q.ctrlKey)),re}function Bl(L,M,Q,J){c?setTimeout(U(Ga,L),0):L.curOp.focus=j();var re=ql(L,Q,J),De=L.doc.sel,mt;L.options.dragDrop&&Zt&&!L.isReadOnly()&&Q=="single"&&(mt=De.contains(M))>-1&&(Kt((mt=De.ranges[mt]).from(),M)<0||M.xRel>0)&&(Kt(mt.to(),M)>0||M.xRel<0)?yl(L,J,M,re):lc(L,J,M,re)}function yl(L,M,Q,J){var re=L.display,De=!1,mt=Za(L,function(Gt){i&&(re.scroller.draggable=!1),L.state.draggingText=!1,He(re.wrapper.ownerDocument,"mouseup",mt),He(re.wrapper.ownerDocument,"mousemove",Nt),He(re.scroller,"dragstart",zt),He(re.scroller,"drop",mt),De||(Ve(Gt),J.addNew||wo(L.doc,Q,null,null,J.extend),i&&!r||c&&o==9?setTimeout(function(){re.wrapper.ownerDocument.body.focus({preventScroll:!0}),re.input.focus()},20):re.input.focus())}),Nt=function(Cr){De=De||Math.abs(M.clientX-Cr.clientX)+Math.abs(M.clientY-Cr.clientY)>=10},zt=function(){return De=!0};i&&(re.scroller.draggable=!0),L.state.draggingText=mt,mt.copy=!J.moveOnDrag,re.scroller.dragDrop&&re.scroller.dragDrop(),Be(re.wrapper.ownerDocument,"mouseup",mt),Be(re.wrapper.ownerDocument,"mousemove",Nt),Be(re.scroller,"dragstart",zt),Be(re.scroller,"drop",mt),Ka(L),setTimeout(function(){return re.input.focus()},20)}function Jl(L,M,Q){if(Q=="char")return new oe(M,M);if(Q=="word")return L.findWordAt(M);if(Q=="line")return new oe(Dt(M.line,0),ot(L.doc,Dt(M.line+1,0)));var J=Q(L,M);return new oe(J.from,J.to)}function lc(L,M,Q,J){var re=L.display,De=L.doc;Ve(M);var mt,Nt,zt=De.sel,Gt=zt.ranges;if(J.addNew&&!J.extend?(Nt=De.sel.contains(Q),Nt>-1?mt=Gt[Nt]:mt=new oe(Q,Q)):(mt=De.sel.primary(),Nt=De.sel.primIndex),J.unit=="rectangle")J.addNew||(mt=new oe(Q,Q)),Q=ca(L,M,!0,!0),Nt=-1;else{var Cr=Jl(L,Q,J.unit);J.extend?mt=Qo(mt,Cr.anchor,Cr.head,J.extend):mt=Cr}J.addNew?Nt==-1?(Nt=Gt.length,Eo(De,we(L,Gt.concat([mt]),Nt),{scroll:!1,origin:"*mouse"})):Gt.length>1&&Gt[Nt].empty()&&J.unit=="char"&&!J.extend?(Eo(De,we(L,Gt.slice(0,Nt).concat(Gt.slice(Nt+1)),0),{scroll:!1,origin:"*mouse"}),zt=De.sel):ns(De,Nt,mt,G):(Nt=0,Eo(De,new Pt([mt],0),G),zt=De.sel);var Ur=Q;function en(li){if(Kt(Ur,li)==0)return;if(Ur=li,J.unit=="rectangle"){for(var qe=[],Z=L.options.tabSize,Me=W(te(De,Q.line).text,Q.ch,Z),Je=W(te(De,li.line).text,li.ch,Z),Ot=Math.min(Me,Je),tr=Math.max(Me,Je),vr=Math.min(Q.line,li.line),Lr=Math.min(L.lastLine(),Math.max(Q.line,li.line));vr<=Lr;vr++){var Hr=te(De,vr).text,Kr=Se(Hr,Ot,Z);Ot==tr?qe.push(new oe(Dt(vr,Kr),Dt(vr,Kr))):Hr.length>Kr&&qe.push(new oe(Dt(vr,Kr),Dt(vr,Se(Hr,tr,Z))))}qe.length||qe.push(new oe(Q,Q)),Eo(De,we(L,zt.ranges.slice(0,Nt).concat(qe),Nt),{origin:"*mouse",scroll:!1}),L.scrollIntoView(li)}else{var cn=mt,sn=Jl(L,li,J.unit),Fn=cn.anchor,si;Kt(sn.anchor,Fn)>0?(si=sn.head,Fn=dr(cn.from(),sn.anchor)):(si=sn.anchor,Fn=Mt(cn.to(),sn.head));var Kn=zt.ranges.slice(0);Kn[Nt]=Zl(L,new oe(ot(De,Fn),si)),Eo(De,we(L,Kn,Nt),G)}}var nn=re.wrapper.getBoundingClientRect(),xn=0;function Bn(li){var qe=++xn,Z=ca(L,li,!0,J.unit=="rectangle");if(!Z)return;if(Kt(Z,Ur)!=0){L.curOp.focus=j(),en(Z);var Me=ja(re,De);(Z.line>=Me.to||Z.linenn.bottom?20:0;Je&&setTimeout(Za(L,function(){if(xn!=qe)return;re.scroller.scrollTop+=Je,Bn(li)}),50)}}function Zn(li){L.state.selectingText=!1,xn=Infinity,li&&(Ve(li),re.input.focus()),He(re.wrapper.ownerDocument,"mousemove",Jn),He(re.wrapper.ownerDocument,"mouseup",oi),De.history.lastSelOrigin=null}var Jn=Za(L,function(li){li.buttons===0||!ye(li)?Zn(li):Bn(li)}),oi=Za(L,Zn);L.state.selectingText=oi,Be(re.wrapper.ownerDocument,"mousemove",Jn),Be(re.wrapper.ownerDocument,"mouseup",oi)}function Zl(L,M){var Q=M.anchor,J=M.head,re=te(L.doc,Q.line);if(Kt(Q,J)==0&&Q.sticky==J.sticky)return M;var De=vt(re);if(!De)return M;var mt=Oe(De,Q.ch,Q.sticky),Nt=De[mt];if(Nt.from!=Q.ch&&Nt.to!=Q.ch)return M;var zt=mt+(Nt.from==Q.ch==(Nt.level!=1)?0:1);if(zt==0||zt==De.length)return M;var Gt;if(J.line!=Q.line)Gt=(J.line-Q.line)*(L.doc.direction=="ltr"?1:-1)>0;else{var Cr=Oe(De,J.ch,J.sticky),Ur=Cr-mt||(J.ch-Q.ch)*(Nt.level==1?-1:1);Cr==zt-1||Cr==zt?Gt=Ur<0:Gt=Ur>0}var en=De[zt+(Gt?-1:0)],nn=Gt==(en.level==1),xn=nn?en.from:en.to,Bn=nn?"after":"before";return Q.ch==xn&&Q.sticky==Bn?M:new oe(new Dt(Q.line,xn,Bn),J)}function $l(L,M,Q,J){var re,De;if(M.touches)re=M.touches[0].clientX,De=M.touches[0].clientY;else try{re=M.clientX,De=M.clientY}catch(en){return!1}if(re>=Math.floor(L.display.gutters.getBoundingClientRect().right))return!1;J&&Ve(M);var mt=L.display,Nt=mt.lineDiv.getBoundingClientRect();if(De>Nt.bottom||!rt(L,Q))return $(M);De-=Nt.top-mt.viewOffset;for(var zt=0;zt=re){var Cr=gt(L.doc,De),Ur=L.display.gutterSpecs[zt];return wt(L,Q,L,Cr,Ur.className,M),$(M)}}}function _l(L,M){return $l(L,M,"gutterClick",!0)}function ec(L,M){if(St(L.display,M)||cc(L,M))return;if(Ye(L,M,"contextmenu"))return;T||L.display.input.onContextMenu(M)}function cc(L,M){return rt(L,"gutterContextMenu")?$l(L,M,"gutterContextMenu",!1):!1}function Ll(L){L.display.wrapper.className=L.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+L.options.theme.replace(/(^|\s)\s*/g," cm-s-"),yi(L)}var js={toString:function(){return"CodeMirror.Init"}},Il={},Al={};function uc(L){var M=L.optionHandlers;function Q(J,re,De,mt){L.defaults[J]=re,De&&(M[J]=mt?function(Nt,zt,Gt){Gt!=js&&De(Nt,zt,Gt)}:De)}L.defineOption=Q,L.Init=js,Q("value","",function(J,re){return J.setValue(re)},!0),Q("mode",null,function(J,re){J.doc.modeOption=re,Rr(J)},!0),Q("indentUnit",2,Rr,!0),Q("indentWithTabs",!1),Q("smartIndent",!0),Q("tabSize",4,function(J){$r(J),yi(J),gi(J)},!0),Q("lineSeparator",null,function(J,re){if(J.doc.lineSep=re,!re)return;var De=[],mt=J.doc.first;J.doc.iter(function(zt){for(var Gt=0;;){var Cr=zt.text.indexOf(re,Gt);if(Cr==-1)break;Gt=Cr+re.length,De.push(Dt(mt,Cr))}mt++});for(var Nt=De.length-1;Nt>=0;Nt--)qo(J.doc,re,De[Nt],Dt(De[Nt].line,De[Nt].ch+re.length))}),Q("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(J,re,De){J.state.specialChars=new RegExp(re.source+(re.test(" ")?"":"| "),"g"),De!=js&&J.refresh()}),Q("specialCharPlaceholder",Wi,function(J){return J.refresh()},!0),Q("electricChars",!0),Q("inputStyle",m?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),Q("spellcheck",!1,function(J,re){return J.getInputField().spellcheck=re},!0),Q("autocorrect",!1,function(J,re){return J.getInputField().autocorrect=re},!0),Q("autocapitalize",!1,function(J,re){return J.getInputField().autocapitalize=re},!0),Q("rtlMoveVisually",!E),Q("wholeLineUpdateBefore",!0),Q("theme","default",function(J){Ll(J),as(J)},!0),Q("keyMap","default",function(J,re,De){var mt=xl(re),Nt=De!=js&&xl(De);Nt&&Nt.detach&&Nt.detach(J,mt),mt.attach&&mt.attach(J,Nt||null)}),Q("extraKeys",null),Q("configureMouse",null),Q("lineWrapping",!1,sl,!0),Q("gutters",[],function(J,re){J.display.gutterSpecs=Ns(re,J.options.lineNumbers),as(J)},!0),Q("fixedGutter",!0,function(J,re){J.display.gutters.style.left=re?Xi(J.display)+"px":"0",J.refresh()},!0),Q("coverGutterNextToScrollbar",!1,function(J){return Ra(J)},!0),Q("scrollbarStyle","native",function(J){vo(J),Ra(J),J.display.scrollbars.setScrollTop(J.doc.scrollTop),J.display.scrollbars.setScrollLeft(J.doc.scrollLeft)},!0),Q("lineNumbers",!1,function(J,re){J.display.gutterSpecs=Ns(J.options.gutters,re),as(J)},!0),Q("firstLineNumber",1,as,!0),Q("lineNumberFormatter",function(J){return J},as,!0),Q("showCursorWhenSelecting",!1,Ki,!0),Q("resetSelectionOnContextMenu",!0),Q("lineWiseCopyCut",!0),Q("pasteLinesPerSelection",!0),Q("selectionsMayTouch",!1),Q("readOnly",!1,function(J,re){re=="nocursor"&&(_i(J),J.display.input.blur()),J.display.input.readOnlyChanged(re)}),Q("screenReaderLabel",null,function(J,re){re=re===""?null:re,J.display.input.screenReaderLabelChanged(re)}),Q("disableInput",!1,function(J,re){re||J.display.input.reset()},!0),Q("dragDrop",!0,dc),Q("allowDropFileTypes",null),Q("cursorBlinkRate",530),Q("cursorScrollMargin",0),Q("cursorHeight",1,Ki,!0),Q("singleCursorHeightPerLine",!0,Ki,!0),Q("workTime",100),Q("workDelay",100),Q("flattenSpans",!0,$r,!0),Q("addModeClass",!1,$r,!0),Q("pollInterval",100),Q("undoDepth",200,function(J,re){return J.doc.history.undoDepth=re}),Q("historyEventDelay",1250),Q("viewportMargin",10,function(J){return J.refresh()},!0),Q("maxHighlightLength",1e4,$r,!0),Q("moveInputWithCursor",!0,function(J,re){re||J.display.input.resetPosition()}),Q("tabindex",null,function(J,re){return J.display.input.getField().tabIndex=re||""}),Q("autofocus",null),Q("direction","ltr",function(J,re){return J.doc.setDirection(re)},!0),Q("phrases",null)}function dc(L,M,Q){var J=Q&&Q!=js;if(!M!=!J){var re=L.display.dragFunctions,De=M?Be:He;De(L.display.scroller,"dragstart",re.start),De(L.display.scroller,"dragenter",re.enter),De(L.display.scroller,"dragover",re.over),De(L.display.scroller,"dragleave",re.leave),De(L.display.scroller,"drop",re.drop)}}function sl(L){L.options.lineWrapping?(K(L.display.wrapper,"CodeMirror-wrap"),L.display.sizer.style.minWidth="",L.display.sizerWidth=null):(x(L.display.wrapper,"CodeMirror-wrap"),jn(L)),Aa(L),gi(L),yi(L),setTimeout(function(){return Ra(L)},100)}function at(L,M){var Q=this;if(!(this instanceof at))return new at(L,M);this.options=M=M?H(M):{},H(Il,M,!1);var J=M.value;typeof J=="string"?J=new es(J,M.mode,null,M.lineSeparator,M.direction):M.mode&&(J.modeOption=M.mode),this.doc=J;var re=new at.inputStyles[M.inputStyle](this),De=this.display=new $s(L,J,re,M);De.wrapper.CodeMirror=this,Ll(this),M.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),vo(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new V,keySeq:null,specialChars:null},M.autofocus&&!m&&De.input.focus(),c&&o<11&&setTimeout(function(){return Q.display.input.reset(!0)},20),ce(this),Wl(),Zi(this),this.curOp.forceUpdate=!0,Qn(this,J),M.autofocus&&!m||this.hasFocus()?setTimeout(function(){Q.hasFocus()&&!Q.state.focused&&pa(Q)},20):_i(this);for(var mt in Al)Al.hasOwnProperty(mt)&&Al[mt](this,M[mt],js);ls(this),M.finishInit&&M.finishInit(this);for(var Nt=0;Nt20*20}Be(M.scroller,"touchstart",function(zt){if(!Ye(L,zt)&&!De(zt)&&!_l(L,zt)){M.input.ensurePolled(),clearTimeout(Q);var Gt=+new Date;M.activeTouch={start:Gt,moved:!1,prev:Gt-J.end<=300?J:null},zt.touches.length==1&&(M.activeTouch.left=zt.touches[0].pageX,M.activeTouch.top=zt.touches[0].pageY)}}),Be(M.scroller,"touchmove",function(){M.activeTouch&&(M.activeTouch.moved=!0)}),Be(M.scroller,"touchend",function(zt){var Gt=M.activeTouch;if(Gt&&!St(M,zt)&&Gt.left!=null&&!Gt.moved&&new Date-Gt.start<300){var Cr=L.coordsChar(M.activeTouch,"page"),Ur;!Gt.prev||mt(Gt,Gt.prev)?Ur=new oe(Cr,Cr):!Gt.prev.prev||mt(Gt,Gt.prev.prev)?Ur=L.findWordAt(Cr):Ur=new oe(Dt(Cr.line,0),ot(L.doc,Dt(Cr.line+1,0))),L.setSelection(Ur.anchor,Ur.head),L.focus(),Ve(zt)}re()}),Be(M.scroller,"touchcancel",re),Be(M.scroller,"scroll",function(){M.scroller.clientHeight&&(Yi(L,M.scroller.scrollTop),go(L,M.scroller.scrollLeft,!0),wt(L,"scroll",L))}),Be(M.scroller,"mousewheel",function(zt){return _s(L,zt)}),Be(M.scroller,"DOMMouseScroll",function(zt){return _s(L,zt)}),Be(M.wrapper,"scroll",function(){return M.wrapper.scrollTop=M.wrapper.scrollLeft=0}),M.dragFunctions={enter:function(Gt){Ye(L,Gt)||it(Gt)},over:function(Gt){Ye(L,Gt)||(Ml(L,Gt),it(Gt))},start:function(Gt){return Rl(L,Gt)},drop:Za(L,ac),leave:function(Gt){Ye(L,Gt)||bl(L)}};var Nt=M.input.getField();Be(Nt,"keyup",function(zt){return Bs.call(L,zt)}),Be(Nt,"keydown",Za(L,Ws)),Be(Nt,"keypress",Za(L,Us)),Be(Nt,"focus",function(zt){return pa(L,zt)}),Be(Nt,"blur",function(zt){return _i(L,zt)})}var Ue=[];at.defineInitHook=function(L){return Ue.push(L)};function bt(L,M,Q,J){var re=L.doc,De;Q==null&&(Q="add"),Q=="smart"&&(re.mode.indent?De=Ht(L,M).state:Q="prev");var mt=L.options.tabSize,Nt=te(re,M),zt=W(Nt.text,null,mt);Nt.stateAfter&&(Nt.stateAfter=null);var Gt=Nt.text.match(/^\s*/)[0],Cr;if(!J&&!/\S/.test(Nt.text))Cr=0,Q="not";else if(Q=="smart"&&(Cr=re.mode.indent(De,Nt.text.slice(Gt.length),Nt.text),Cr==q||Cr>150)){if(!J)return;Q="prev"}Q=="prev"?M>re.first?Cr=W(te(re,M-1).text,null,mt):Cr=0:Q=="add"?Cr=zt+L.options.indentUnit:Q=="subtract"?Cr=zt-L.options.indentUnit:typeof Q=="number"&&(Cr=zt+Q),Cr=Math.max(0,Cr);var Ur="",en=0;if(L.options.indentWithTabs)for(var nn=Math.floor(Cr/mt);nn;--nn)en+=mt,Ur+=" ";if(enmt,zt=or(M),Gt=null;if(Nt&&J.ranges.length>1)if(kt&&kt.text.join(` `)==M){if(J.ranges.length%kt.text.length==0){Gt=[];for(var Cr=0;Cr=0;en--){var nn=J.ranges[en],xn=nn.from(),Bn=nn.to();nn.empty()&&(Q&&Q>0?xn=Dt(xn.line,xn.ch-Q):L.state.overwrite&&!Nt?Bn=Dt(Bn.line,Math.min(te(De,Bn.line).text.length,Bn.ch+Ge(zt).length)):Nt&&kt&&kt.lineWise&&kt.text.join(` `)==zt.join(` `)&&(xn=Bn=Dt(xn.line,0)));var Zn={from:xn,to:Bn,text:Gt?Gt[en%Gt.length]:zt,origin:re||(Nt?"paste":L.state.cutIncoming>mt?"cut":"+input")};bs(L.doc,Zn),Tr(L,"inputRead",L,Zn)}M&&!Nt&&yr(L,M),La(L),L.curOp.updateInput<2&&(L.curOp.updateInput=Ur),L.curOp.typing=!0,L.state.pasteIncoming=L.state.cutIncoming=-1}function lr(L,M){var Q=L.clipboardData&&L.clipboardData.getData("Text");if(Q)return L.preventDefault(),!M.isReadOnly()&&!M.options.disableInput&&bo(M,function(){return ar(M,Q,0,null,"paste")}),!0}function yr(L,M){if(!L.options.electricChars||!L.options.smartIndent)return;for(var Q=L.doc.sel,J=Q.ranges.length-1;J>=0;J--){var re=Q.ranges[J];if(re.head.ch>100||J&&Q.ranges[J-1].head.line==re.head.line)continue;var De=L.getModeAt(re.head),mt=!1;if(De.electricChars){for(var Nt=0;Nt-1){mt=bt(L,re.head.line,"smart");break}}else De.electricInput&&(De.electricInput.test(te(L.doc,re.head.line).text.slice(0,re.head.ch))&&(mt=bt(L,re.head.line,"smart")));mt&&Tr(L,"electricInput",L,re.head.line)}}function Vr(L){for(var M=[],Q=[],J=0;JDe&&(bt(this,Nt.head.line,J,!0),De=Nt.head.line,mt==this.doc.sel.primIndex&&La(this));else{var zt=Nt.from(),Gt=Nt.to(),Cr=Math.max(De,zt.line);De=Math.min(this.lastLine(),Gt.line-(Gt.ch?0:1))+1;for(var Ur=Cr;Ur0&&ns(this.doc,mt,new oe(zt,en[mt].to()),fe)}}}),getTokenAt:function(re,De){return Ar(this,re,De)},getLineTokens:function(re,De){return Ar(this,Dt(re),De,!0)},getTokenTypeAt:function(re){re=ot(this.doc,re);var De=ht(this,te(this.doc,re.line)),mt=0,Nt=(De.length-1)/2,zt=re.ch,Gt;if(zt==0)Gt=De[2];else for(;;){var Cr=mt+Nt>>1;if((Cr?De[Cr*2-1]:0)>=zt)Nt=Cr;else if(De[Cr*2+1]Gt&&(re=Gt,Nt=!0),zt=te(this.doc,re)}else zt=re;return Ri(this,zt,{top:0,left:0},De||"page",mt||Nt).top+(Nt?this.doc.height-On(zt):0)},defaultTextHeight:function(){return Ai(this.display)},defaultCharWidth:function(){return Li(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(re,De,mt,Nt,zt){var Gt=this.display;re=Mi(this,ot(this.doc,re));var Cr=re.bottom,Ur=re.left;if(De.style.position="absolute",De.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(De),Gt.sizer.appendChild(De),Nt=="over")Cr=re.top;else if(Nt=="above"||Nt=="near"){var en=Math.max(Gt.wrapper.clientHeight,this.doc.height),nn=Math.max(Gt.sizer.clientWidth,Gt.lineSpace.clientWidth);(Nt=="above"||re.bottom+De.offsetHeight>en)&&re.top>De.offsetHeight?Cr=re.top-De.offsetHeight:re.bottom+De.offsetHeight<=en&&(Cr=re.bottom),Ur+De.offsetWidth>nn&&(Ur=nn-De.offsetWidth)}De.style.top=Cr+"px",De.style.left=De.style.right="",zt=="right"?(Ur=Gt.sizer.clientWidth-De.offsetWidth,De.style.right="0px"):(zt=="left"?Ur=0:zt=="middle"&&(Ur=(Gt.sizer.clientWidth-De.offsetWidth)/2),De.style.left=Ur+"px"),mt&&Ca(this,{left:Ur,top:Cr,right:Ur+De.offsetWidth,bottom:Cr+De.offsetHeight})},triggerOnKeyDown:Ya(Ws),triggerOnKeyPress:Ya(Us),triggerOnKeyUp:Bs,triggerOnMouseDown:Ya(Ol),execCommand:function(re){if(zs.hasOwnProperty(re))return zs[re].call(null,this)},triggerElectric:Ya(function(J){yr(this,J)}),findPosH:function(re,De,mt,Nt){var zt=1;De<0&&(zt=-1,De=-De);for(var Gt=ot(this.doc,re),Cr=0;Cr0&&Ur(mt.charAt(Nt-1));)--Nt;for(;zt.5||this.options.lineWrapping)&&Aa(this),wt(this,"refresh",this)}),swapDoc:Ya(function(J){var re=this.doc;return re.cm=null,this.state.selectingText&&this.state.selectingText(),Qn(this,J),yi(this),this.display.input.reset(),Fi(this,J.scrollLeft,J.scrollTop),this.curOp.forceScroll=!0,Tr(this,"swapDoc",this,re),re}),phrase:function(re){var De=this.options.phrases;return De&&Object.prototype.hasOwnProperty.call(De,re)?De[re]:re},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},st(L),L.registerHelper=function(J,re,De){Q.hasOwnProperty(J)||(Q[J]=L[J]={_global:[]}),Q[J][re]=De},L.registerGlobalHelper=function(J,re,De,mt){L.registerHelper(J,re,mt),Q[J]._global.push({pred:De,val:mt})}}function Yr(L,M,Q,J,re){var De=M,mt=Q,Nt=te(L,M.line),zt=re&&L.direction=="rtl"?-Q:Q;function Gt(){var oi=M.line+zt;return oi=L.first+L.size?!1:(M=new Dt(oi,M.ch,M.sticky),Nt=te(L,oi))}function Cr(oi){var li;if(J=="codepoint"){var qe=Nt.text.charCodeAt(M.ch+(J>0?0:-1));isNaN(qe)?li=null:li=new Dt(M.line,Math.max(0,Math.min(Nt.text.length,M.ch+Q*(qe>=55296&&qe<56320?2:1))),-Q)}else re?li=El(L.cm,Nt,M,Q):li=il(Nt,M,Q);if(li==null)if(!oi&&Gt())M=fl(re,L.cm,Nt,M.line,zt);else return!1;else M=li;return!0}if(J=="char"||J=="codepoint")Cr();else if(J=="column")Cr(!0);else if(J=="word"||J=="group")for(var Ur=null,en=J=="group",nn=L.cm&&L.cm.getHelper(M,"wordChars"),xn=!0;!(Q<0&&!Cr(!xn));xn=!1){var Bn=Nt.text.charAt(M.ch)||` `,Zn=ee(Bn,nn)?"w":en&&Bn==` `?"n":!en||/\s/.test(Bn)?null:"p";if(en&&!xn&&!Zn&&(Zn="s"),Ur&&Ur!=Zn){Q<0&&(Q=1,Cr(),M.sticky="after");break}if(Zn&&(Ur=Zn),Q>0&&!Cr(!xn))break}var Jn=Ms(L,M,De,mt,!0);return Yt(De,Jn)&&(Jn.hitSide=!0),Jn}function dn(L,M,Q,J){var re=L.doc,De=M.left,mt;if(J=="page"){var Nt=Math.min(L.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),zt=Math.max(Nt-.5*Ai(L.display),3);mt=(Q>0?M.bottom:M.top)+Q*zt}else J=="line"&&(mt=Q>0?M.bottom+3:M.top-3);for(var Gt;!(Gt=qi(L,De,mt),!Gt.outside);){if(Q<0?mt<=0:mt>=re.height){Gt.hitSide=!0;break}mt+=Q*5}return Gt}var pn=function(M){this.cm=M,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};pn.prototype.init=function(L){var M=this,Q=this,J=Q.cm,re=Q.div=L.lineDiv;Xr(re,J.options.spellcheck,J.options.autocorrect,J.options.autocapitalize);function De(Nt){for(var zt=Nt.target;zt;zt=zt.parentNode){if(zt==re)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(zt.className))break}return!1}Be(re,"paste",function(Nt){if(!De(Nt)||Ye(J,Nt)||lr(Nt,J))return;o<=11&&setTimeout(Za(J,function(){return M.updateFromDOM()}),20)}),Be(re,"compositionstart",function(Nt){M.composing={data:Nt.data,done:!1}}),Be(re,"compositionupdate",function(Nt){M.composing||(M.composing={data:Nt.data,done:!1})}),Be(re,"compositionend",function(Nt){M.composing&&(Nt.data!=M.composing.data&&M.readFromDOMSoon(),M.composing.done=!0)}),Be(re,"touchstart",function(){return Q.forceCompositionEnd()}),Be(re,"input",function(){M.composing||M.readFromDOMSoon()});function mt(Nt){if(!De(Nt)||Ye(J,Nt))return;if(J.somethingSelected())qt({lineWise:!1,text:J.getSelections()}),Nt.type=="cut"&&J.replaceSelection("",null,"cut");else if(J.options.lineWiseCopyCut){var zt=Vr(J);qt({lineWise:!0,text:zt.text}),Nt.type=="cut"&&J.operation(function(){J.setSelections(zt.ranges,0,fe),J.replaceSelection("",null,"cut")})}else return;if(Nt.clipboardData){Nt.clipboardData.clearData();var Gt=kt.text.join(` `);if(Nt.clipboardData.setData("Text",Gt),Nt.clipboardData.getData("Text")==Gt){Nt.preventDefault();return}}var Cr=Br(),Ur=Cr.firstChild;J.display.lineSpace.insertBefore(Cr,J.display.lineSpace.firstChild),Ur.value=kt.text.join(` `);var en=document.activeElement;B(Ur),setTimeout(function(){J.display.lineSpace.removeChild(Cr),en.focus(),en==re&&Q.showPrimarySelection()},50)}Be(re,"copy",mt),Be(re,"cut",mt)},pn.prototype.screenReaderLabelChanged=function(L){L?this.div.setAttribute("aria-label",L):this.div.removeAttribute("aria-label")},pn.prototype.prepareSelection=function(){var L=zi(this.cm,!1);return L.focus=document.activeElement==this.div,L},pn.prototype.showSelection=function(L,M){if(!L||!this.cm.display.view.length)return;(L.focus||M)&&this.showPrimarySelection(),this.showMultipleSelections(L)},pn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},pn.prototype.showPrimarySelection=function(){var L=this.getSelection(),M=this.cm,Q=M.doc.sel.primary(),J=Q.from(),re=Q.to();if(M.display.viewTo==M.display.viewFrom||J.line>=M.display.viewTo||re.line=M.display.viewFrom&&ei(M,J)||{node:Nt[0].measure.map[2],offset:0},Gt=re.lineL.firstLine()&&(J=Dt(J.line-1,te(L.doc,J.line-1).length)),re.ch==te(L.doc,re.line).text.length&&re.lineM.viewTo-1)return!1;var De,mt,Nt;J.line==M.viewFrom||(De=la(L,J.line))==0?(mt=$e(M.view[0].line),Nt=M.view[0].node):(mt=$e(M.view[De].line),Nt=M.view[De-1].node.nextSibling);var zt=la(L,re.line),Gt,Cr;if(zt==M.view.length-1?(Gt=M.viewTo-1,Cr=M.lineDiv.lastChild):(Gt=$e(M.view[zt+1].line)-1,Cr=M.view[zt+1].node.previousSibling),!Nt)return!1;for(var Ur=L.doc.splitLines(Ji(L,Nt,Cr,mt,Gt)),en=be(L.doc,Dt(mt,0),Dt(Gt,te(L.doc,Gt).text.length));Ur.length>1&&en.length>1;)if(Ge(Ur)==Ge(en))Ur.pop(),en.pop(),Gt--;else if(Ur[0]==en[0])Ur.shift(),en.shift(),mt++;else break;for(var nn=0,xn=0,Bn=Ur[0],Zn=en[0],Jn=Math.min(Bn.length,Zn.length);nnJ.ch&&oi.charCodeAt(oi.length-xn-1)==li.charCodeAt(li.length-xn-1);)nn--,xn++;Ur[Ur.length-1]=oi.slice(0,oi.length-xn).replace(/^\u200b+/,""),Ur[0]=Ur[0].slice(nn).replace(/\u200b+$/,"");var Z=Dt(mt,nn),Me=Dt(Gt,en.length?Ge(en).length-xn:0);if(Ur.length>1||Ur[0]||Kt(Z,Me))return qo(L.doc,Ur,Z,Me,"+input"),!0},pn.prototype.ensurePolled=function(){this.forceCompositionEnd()},pn.prototype.reset=function(){this.forceCompositionEnd()},pn.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},pn.prototype.readFromDOMSoon=function(){var L=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(L.readDOMTimeout=null,L.composing)if(L.composing.done)L.composing=null;else return;L.updateFromDOM()},80)},pn.prototype.updateFromDOM=function(){var L=this;(this.cm.isReadOnly()||!this.pollContent())&&bo(this.cm,function(){return gi(L.cm)})},pn.prototype.setUneditable=function(L){L.contentEditable="false"},pn.prototype.onKeyPress=function(L){if(L.charCode==0||this.composing)return;L.preventDefault(),this.cm.isReadOnly()||Za(this.cm,ar)(this.cm,String.fromCharCode(L.charCode==null?L.keyCode:L.charCode),0)},pn.prototype.readOnlyChanged=function(L){this.div.contentEditable=String(L!="nocursor")},pn.prototype.onContextMenu=function(){},pn.prototype.resetPosition=function(){},pn.prototype.needsContentAttribute=!0;function ei(L,M){var Q=bn(L,M.line);if(!Q||Q.hidden)return null;var J=te(L.doc,M.line),re=wn(Q,J,M.line),De=vt(J,L.doc.direction),mt="left";if(De){var Nt=Oe(De,M.ch);mt=Nt%2?"right":"left"}var zt=En(re.map,M.ch,mt);return zt.offset=zt.collapse=="right"?zt.end:zt.start,zt}function ci(L){for(var M=L;M;M=M.parentNode)if(/CodeMirror-gutter-wrapper/.test(M.className))return!0;return!1}function ii(L,M){return M&&(L.bad=!0),L}function Ji(L,M,Q,J,re){var De="",mt=!1,Nt=L.doc.lineSeparator(),zt=!1;function Gt(nn){return function(xn){return xn.id==nn}}function Cr(){mt&&(De+=Nt,zt&&(De+=Nt),mt=zt=!1)}function Ur(nn){nn&&(Cr(),De+=nn)}function en(nn){if(nn.nodeType==1){var xn=nn.getAttribute("cm-text");if(xn){Ur(xn);return}var Bn=nn.getAttribute("cm-marker"),Zn;if(Bn){var Jn=L.findMarks(Dt(J,0),Dt(re+1,0),Gt(+Bn));Jn.length&&(Zn=Jn[0].find(0))&&Ur(be(L.doc,Zn.from,Zn.to).join(Nt));return}if(nn.getAttribute("contenteditable")=="false")return;var oi=/^(pre|div|p|li|table|br)$/i.test(nn.nodeName);if(!/^br$/i.test(nn.nodeName)&&nn.textContent.length==0)return;oi&&Cr();for(var li=0;li=9&&M.hasSelection&&(M.hasSelection=null),Q.poll()}),Be(re,"paste",function(mt){if(Ye(J,mt)||lr(mt,J))return;J.state.pasteIncoming=+new Date,Q.fastPoll()});function De(mt){if(Ye(J,mt))return;if(J.somethingSelected())qt({lineWise:!1,text:J.getSelections()});else if(J.options.lineWiseCopyCut){var Nt=Vr(J);qt({lineWise:!0,text:Nt.text}),mt.type=="cut"?J.setSelections(Nt.ranges,null,fe):(Q.prevInput="",re.value=Nt.text.join(` `),B(re))}else return;mt.type=="cut"&&(J.state.cutIncoming=+new Date)}Be(re,"cut",De),Be(re,"copy",De),Be(L.scroller,"paste",function(mt){if(St(L,mt)||Ye(J,mt))return;if(!re.dispatchEvent){J.state.pasteIncoming=+new Date,Q.focus();return}var Nt=new Event("paste");Nt.clipboardData=mt.clipboardData,re.dispatchEvent(Nt)}),Be(L.lineSpace,"selectstart",function(mt){St(L,mt)||Ve(mt)}),Be(re,"compositionstart",function(){var mt=J.getCursor("from");Q.composing&&Q.composing.range.clear(),Q.composing={start:mt,range:J.markText(mt,J.getCursor("to"),{className:"CodeMirror-composing"})}}),Be(re,"compositionend",function(){Q.composing&&(Q.poll(),Q.composing.range.clear(),Q.composing=null)})},Ei.prototype.createField=function(L){this.wrapper=Br(),this.textarea=this.wrapper.firstChild},Ei.prototype.screenReaderLabelChanged=function(L){L?this.textarea.setAttribute("aria-label",L):this.textarea.removeAttribute("aria-label")},Ei.prototype.prepareSelection=function(){var L=this.cm,M=L.display,Q=L.doc,J=zi(L);if(L.options.moveInputWithCursor){var re=Mi(L,Q.sel.primary().head,"div"),De=M.wrapper.getBoundingClientRect(),mt=M.lineDiv.getBoundingClientRect();J.teTop=Math.max(0,Math.min(M.wrapper.clientHeight-10,re.top+mt.top-De.top)),J.teLeft=Math.max(0,Math.min(M.wrapper.clientWidth-10,re.left+mt.left-De.left))}return J},Ei.prototype.showSelection=function(L){var M=this.cm,Q=M.display;_(Q.cursorDiv,L.cursors),_(Q.selectionDiv,L.selection),L.teTop!=null&&(this.wrapper.style.top=L.teTop+"px",this.wrapper.style.left=L.teLeft+"px")},Ei.prototype.reset=function(L){if(this.contextMenuPending||this.composing)return;var M=this.cm;if(M.somethingSelected()){this.prevInput="";var Q=M.getSelection();this.textarea.value=Q,M.state.focused&&B(this.textarea),c&&o>=9&&(this.hasSelection=Q)}else L||(this.prevInput=this.textarea.value="",c&&o>=9&&(this.hasSelection=null))},Ei.prototype.getField=function(){return this.textarea},Ei.prototype.supportsTouch=function(){return!1},Ei.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!m||j()!=this.textarea))try{this.textarea.focus()}catch(L){}},Ei.prototype.blur=function(){this.textarea.blur()},Ei.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ei.prototype.receivedFocus=function(){this.slowPoll()},Ei.prototype.slowPoll=function(){var L=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){L.poll(),L.cm.state.focused&&L.slowPoll()})},Ei.prototype.fastPoll=function(){var L=!1,M=this;M.pollingFast=!0;function Q(){var J=M.poll();!J&&!L?(L=!0,M.polling.set(60,Q)):(M.pollingFast=!1,M.slowPoll())}M.polling.set(20,Q)},Ei.prototype.poll=function(){var L=this,M=this.cm,Q=this.textarea,J=this.prevInput;if(this.contextMenuPending||!M.state.focused||Bt(Q)&&!J&&!this.composing||M.isReadOnly()||M.options.disableInput||M.state.keySeq)return!1;var re=Q.value;if(re==J&&!M.somethingSelected())return!1;if(c&&o>=9&&this.hasSelection===re||w&&/[\uf700-\uf7ff]/.test(re))return M.display.input.reset(),!1;if(M.doc.sel==M.display.selForContextMenu){var De=re.charCodeAt(0);if(De==8203&&!J&&(J="\u200B"),De==8666)return this.reset(),this.cm.execCommand("undo")}for(var mt=0,Nt=Math.min(J.length,re.length);mt1e3||re.indexOf(` `)>-1?Q.value=L.prevInput="":L.prevInput=re,L.composing&&(L.composing.range.clear(),L.composing.range=M.markText(L.composing.start,M.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ei.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ei.prototype.onKeyPress=function(){c&&o>=9&&(this.hasSelection=null),this.fastPoll()},Ei.prototype.onContextMenu=function(L){var M=this,Q=M.cm,J=Q.display,re=M.textarea;M.contextMenuPending&&M.contextMenuPending();var De=ca(Q,L),mt=J.scroller.scrollTop;if(!De||u)return;var Nt=Q.options.resetSelectionOnContextMenu;Nt&&Q.doc.sel.contains(De)==-1&&Za(Q,Eo)(Q.doc,Ee(De),fe);var zt=re.style.cssText,Gt=M.wrapper.style.cssText,Cr=M.wrapper.offsetParent.getBoundingClientRect();M.wrapper.style.cssText="position: static",re.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(L.clientY-Cr.top-5)+"px; left: "+(L.clientX-Cr.left-5)+`px; z-index: 1000; background: `+(c?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ur;i&&(Ur=window.scrollY),J.input.focus(),i&&window.scrollTo(null,Ur),J.input.reset(),Q.somethingSelected()||(re.value=M.prevInput=" "),M.contextMenuPending=nn,J.selForContextMenu=Q.doc.sel,clearTimeout(J.detectingSelectAll);function en(){if(re.selectionStart!=null){var Bn=Q.somethingSelected(),Zn="\u200B"+(Bn?re.value:"");re.value="\u21DA",re.value=Zn,M.prevInput=Bn?"":"\u200B",re.selectionStart=1,re.selectionEnd=Zn.length,J.selForContextMenu=Q.doc.sel}}function nn(){if(M.contextMenuPending!=nn)return;if(M.contextMenuPending=!1,M.wrapper.style.cssText=Gt,re.style.cssText=zt,c&&o<9&&J.scrollbars.setScrollTop(J.scroller.scrollTop=mt),re.selectionStart!=null){(!c||c&&o<9)&&en();var Bn=0,Zn=function Jn(){J.selForContextMenu==Q.doc.sel&&re.selectionStart==0&&re.selectionEnd>0&&M.prevInput=="\u200B"?Za(Q,Fs)(Q):Bn++<10?J.detectingSelectAll=setTimeout(Jn,500):(J.selForContextMenu=null,J.input.reset())};J.detectingSelectAll=setTimeout(Zn,200)}}if(c&&o>=9&&en(),T){it(L);var xn=function Bn(){He(window,"mouseup",Bn),setTimeout(nn,20)};Be(window,"mouseup",xn)}else setTimeout(nn,50)},Ei.prototype.readOnlyChanged=function(L){L||this.reset(),this.textarea.disabled=L=="nocursor",this.textarea.readOnly=!!L},Ei.prototype.setUneditable=function(){},Ei.prototype.needsContentAttribute=!1;function co(L,M){if(M=M?H(M):{},M.value=L.value,!M.tabindex&&L.tabIndex&&(M.tabindex=L.tabIndex),!M.placeholder&&L.placeholder&&(M.placeholder=L.placeholder),M.autofocus==null){var Q=j();M.autofocus=Q==L||L.getAttribute("autofocus")!=null&&Q==document.body}function J(){L.value=Nt.getValue()}var re;if(L.form&&(Be(L.form,"submit",J),!M.leaveSubmitMethodAlone)){var De=L.form;re=De.submit;try{var mt=De.submit=function(){J(),De.submit=re,De.submit(),De.submit=mt}}catch(zt){}}M.finishInit=function(zt){zt.save=J,zt.getTextArea=function(){return L},zt.toTextArea=function(){zt.toTextArea=isNaN,J(),L.parentNode.removeChild(zt.getWrapperElement()),L.style.display="",L.form&&(He(L.form,"submit",J),!M.leaveSubmitMethodAlone&&typeof L.form.submit=="function"&&(L.form.submit=re))}},L.style.display="none";var Nt=at(function(zt){return L.parentNode.insertBefore(zt,L.nextSibling)},M);return Nt}function Ko(L){L.off=He,L.on=Be,L.wheelEventPixels=Vs,L.Doc=es,L.splitLines=or,L.countColumn=W,L.findColumn=Se,L.isWordChar=de,L.Pass=q,L.signal=wt,L.Line=ni,L.changeEnd=We,L.scrollbarModel=ro,L.Pos=Dt,L.cmpPos=Kt,L.modes=le,L.mimeModes=Ne,L.resolveMode=Xe,L.getMode=Fe,L.modeExtensions=nt,L.extendMode=At,L.copyState=_t,L.startState=ue,L.innerMode=ne,L.commands=zs,L.keyMap=Ss,L.keyName=Vl,L.isModifierKey=Sl,L.lookupKey=Ps,L.normalizeKeyMap=nl,L.StringStream=Y,L.SharedTextMarker=el,L.TextMarker=Ls,L.LineWidget=ll,L.e_preventDefault=Ve,L.e_stopPropagation=ie,L.e_stop=it,L.addClass=K,L.contains=P,L.rmClass=x,L.keyNames=ks}uc(at),kr(at);var ao="iter insert remove copy getEditor constructor".split(" ");for(var Uo in es.prototype)es.prototype.hasOwnProperty(Uo)&&z(ao,Uo)<0&&(at.prototype[Uo]=function(L){return function(){return L.apply(this.doc,arguments)}}(es.prototype[Uo]));return st(es),at.inputStyles={textarea:Ei,contenteditable:pn},at.defineMode=function(L){!at.defaults.mode&&L!="null"&&(at.defaults.mode=L),je.apply(this,arguments)},at.defineMIME=Ke,at.defineMode("null",function(){return{token:function(M){return M.skipToEnd()}}}),at.defineMIME("text/plain","null"),at.defineExtension=function(L,M){at.prototype[L]=M},at.defineDocExtension=function(L,M){es.prototype[L]=M},at.fromTextArea=co,Ko(at),at.version="5.58.2",at})},Vy0f:function(D,I,e){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var g=f(e("iYpf"));function f(p){return p&&p.__esModule?p:{default:p}}var y=g;I.default=y,D.exports=y},W2nI:function(D,I,e){var g=e("IwbS"),f=e("ProS"),y=e("bYtY"),p=["itemStyle","opacity"],v=["emphasis","itemStyle","opacity"],h=["lineStyle","opacity"],c=["emphasis","lineStyle","opacity"];function o(l,t){return l.getVisual("opacity")||l.getModel().get(t)}function i(l,t,s){var d=l.getGraphicEl(),m=o(l,t);s!=null&&(m==null&&(m=1),m*=s),d.downplay&&d.downplay(),d.traverse(function(w){w.type!=="group"&&w.setStyle("opacity",m)})}function n(l,t){var s=o(l,t),d=l.getGraphicEl();d.traverse(function(m){m.type!=="group"&&m.setStyle("opacity",s)}),d.highlight&&d.highlight()}var a=g.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(l,t){var s=t.extent;l.moveTo(t.x1,t.y1),l.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient==="vertical"?(l.lineTo(t.x2+s,t.y2),l.bezierCurveTo(t.cpx2+s,t.cpy2,t.cpx1+s,t.cpy1,t.x1+s,t.y1)):(l.lineTo(t.x2,t.y2+s),l.bezierCurveTo(t.cpx2,t.cpy2+s,t.cpx1,t.cpy1+s,t.x1,t.y1+s)),l.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),u=f.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(l,t,s){var d=this,m=l.getGraph(),w=this.group,b=l.layoutInfo,E=b.width,A=b.height,S=l.getData(),T=l.getData("edge"),O=l.get("orient");this._model=l,w.removeAll(),w.attr("position",[b.x,b.y]),m.eachEdge(function(x){var C=new a;C.dataIndex=x.dataIndex,C.seriesIndex=l.seriesIndex,C.dataType="edge";var _=x.getModel("lineStyle"),N=_.get("curveness"),F=x.node1.getLayout(),k=x.node1.getModel(),P=k.get("localX"),j=k.get("localY"),K=x.node2.getLayout(),R=x.node2.getModel(),B=R.get("localX"),U=R.get("localY"),H=x.getLayout(),W,V,z,X,q,fe,G,ve;C.shape.extent=Math.max(1,H.dy),C.shape.orient=O,O==="vertical"?(W=(P!=null?P*E:F.x)+H.sy,V=(j!=null?j*A:F.y)+F.dy,z=(B!=null?B*E:K.x)+H.ty,X=U!=null?U*A:K.y,q=W,fe=V*(1-N)+X*N,G=z,ve=V*N+X*(1-N)):(W=(P!=null?P*E:F.x)+F.dx,V=(j!=null?j*A:F.y)+H.sy,z=B!=null?B*E:K.x,X=(U!=null?U*A:K.y)+H.ty,q=W*(1-N)+z*N,fe=V,G=W*N+z*(1-N),ve=X),C.setShape({x1:W,y1:V,x2:z,y2:X,cpx1:q,cpy1:fe,cpx2:G,cpy2:ve}),C.setStyle(_.getItemStyle());switch(C.style.fill){case"source":C.style.fill=x.node1.getVisual("color");break;case"target":C.style.fill=x.node2.getVisual("color");break}g.setHoverStyle(C,x.getModel("emphasis.lineStyle").getItemStyle()),w.add(C),T.setItemGraphicEl(x.dataIndex,C)}),m.eachNode(function(x){var C=x.getLayout(),_=x.getModel(),N=_.get("localX"),F=_.get("localY"),k=_.getModel("label"),P=_.getModel("emphasis.label"),j=new g.Rect({shape:{x:N!=null?N*E:C.x,y:F!=null?F*A:C.y,width:C.dx,height:C.dy},style:_.getModel("itemStyle").getItemStyle()}),K=x.getModel("emphasis.itemStyle").getItemStyle();g.setLabelStyle(j.style,K,k,P,{labelFetcher:l,labelDataIndex:x.dataIndex,defaultText:x.id,isRectText:!0}),j.setStyle("fill",x.getVisual("color")),g.setHoverStyle(j,K),w.add(j),S.setItemGraphicEl(x.dataIndex,j),j.dataType="node"}),S.eachItemGraphicEl(function(x,C){var _=S.getItemModel(C);_.get("draggable")&&(x.drift=function(N,F){d._focusAdjacencyDisabled=!0,this.shape.x+=N,this.shape.y+=F,this.dirty(),s.dispatchAction({type:"dragNode",seriesId:l.id,dataIndex:S.getRawIndex(C),localX:this.shape.x/E,localY:this.shape.y/A})},x.ondragend=function(){d._focusAdjacencyDisabled=!1},x.draggable=!0,x.cursor="move"),x.highlight=function(){this.trigger("emphasis")},x.downplay=function(){this.trigger("normal")},x.focusNodeAdjHandler&&x.off("mouseover",x.focusNodeAdjHandler),x.unfocusNodeAdjHandler&&x.off("mouseout",x.unfocusNodeAdjHandler),_.get("focusNodeAdjacency")&&(x.on("mouseover",x.focusNodeAdjHandler=function(){d._focusAdjacencyDisabled||(d._clearTimer(),s.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,dataIndex:x.dataIndex}))}),x.on("mouseout",x.unfocusNodeAdjHandler=function(){d._focusAdjacencyDisabled||d._dispatchUnfocus(s)}))}),T.eachItemGraphicEl(function(x,C){var _=T.getItemModel(C);x.focusNodeAdjHandler&&x.off("mouseover",x.focusNodeAdjHandler),x.unfocusNodeAdjHandler&&x.off("mouseout",x.unfocusNodeAdjHandler),_.get("focusNodeAdjacency")&&(x.on("mouseover",x.focusNodeAdjHandler=function(){d._focusAdjacencyDisabled||(d._clearTimer(),s.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,edgeDataIndex:x.dataIndex}))}),x.on("mouseout",x.unfocusNodeAdjHandler=function(){d._focusAdjacencyDisabled||d._dispatchUnfocus(s)}))}),!this._data&&l.get("animation")&&w.setClipPath(r(w.getBoundingRect(),l,function(){w.removeClipPath()})),this._data=l.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(l){var t=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){t._unfocusDelayTimer=null,l.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(l,t,s,d){var m=l.getData(),w=m.graph,b=d.dataIndex,E=m.getItemModel(b),A=d.edgeDataIndex;if(b==null&&A==null)return;var S=w.getNodeByIndex(b),T=w.getEdgeByIndex(A);if(w.eachNode(function(x){i(x,p,.1)}),w.eachEdge(function(x){i(x,h,.1)}),S){n(S,v);var O=E.get("focusNodeAdjacency");O==="outEdges"?y.each(S.outEdges,function(x){if(x.dataIndex<0)return;n(x,c),n(x.node2,v)}):O==="inEdges"?y.each(S.inEdges,function(x){if(x.dataIndex<0)return;n(x,c),n(x.node1,v)}):O==="allEdges"&&y.each(S.edges,function(x){if(x.dataIndex<0)return;n(x,c),x.node1!==S&&n(x.node1,v),x.node2!==S&&n(x.node2,v)})}T&&(n(T,c),n(T.node1,v),n(T.node2,v))},unfocusNodeAdjacency:function(l,t,s,d){var m=l.getGraph();m.eachNode(function(w){i(w,p)}),m.eachEdge(function(w){i(w,h)})}});function r(l,t,s){var d=new g.Rect({shape:{x:l.x-10,y:l.y-10,width:0,height:l.height+20}});return g.initProps(d,{shape:{width:l.width+20}},t,s),d}D.exports=u},W4dC:function(D,I,e){var g=e("Tghj"),f=g.__DEV__,y=e("bYtY"),p=y.each,v=y.createHashMap,h=e("7DRL"),c=e("TIY9"),o=e("yS9w"),i=e("mFDi"),n={geoJSON:c,svg:o},a={load:function(t,s,d){var m=[],w=v(),b=v(),E,A=l(t);return p(A,function(S){var T=n[S.type].load(t,S,d);p(T.regions,function(x){var C=x.name;s&&s.hasOwnProperty(C)&&(x=x.cloneShallow(C=s[C])),m.push(x),w.set(C,x),b.set(C,x.center)});var O=T.boundingRect;O&&(E?E.union(O):E=O.clone())}),{regions:m,regionsMap:w,nameCoordMap:b,boundingRect:E||new i(0,0,0,0)}},makeGraphic:u("makeGraphic"),removeGraphic:u("removeGraphic")};function u(t){return function(s,d){var m=l(s),w=[];return p(m,function(b){var E=n[b.type][t];E&&w.push(E(s,b,d))}),w}}function r(t){}function l(t){var s=h.retrieveMap(t)||[];return s}D.exports=a},WGYa:function(D,I,e){var g=e("7yuC"),f=g.forceLayout,y=e("HF/U"),p=y.simpleLayout,v=e("lOQZ"),h=v.circularLayout,c=e("OELB"),o=c.linearMap,i=e("QBsz"),n=e("bYtY");function a(u){u.eachSeriesByType("graph",function(r){var l=r.coordinateSystem;if(l&&l.type!=="view")return;if(r.get("layout")==="force"){var t=r.preservedPoints||{},s=r.getGraph(),d=s.data,m=s.edgeData,w=r.getModel("force"),b=w.get("initLayout");r.preservedPoints?d.each(function(k){var P=d.getId(k);d.setItemLayout(k,t[P]||[NaN,NaN])}):!b||b==="none"?p(r):b==="circular"&&h(r,"value");var E=d.getDataExtent("value"),A=m.getDataExtent("value"),S=w.get("repulsion"),T=w.get("edgeLength");n.isArray(S)||(S=[S,S]),n.isArray(T)||(T=[T,T]),T=[T[1],T[0]];var O=d.mapArray("value",function(k,P){var j=d.getItemLayout(P),K=o(k,E,S);return isNaN(K)&&(K=(S[0]+S[1])/2),{w:K,rep:K,fixed:d.getItemModel(P).get("fixed"),p:!j||isNaN(j[0])||isNaN(j[1])?null:j}}),x=m.mapArray("value",function(k,P){var j=s.getEdgeByIndex(P),K=o(k,A,T);isNaN(K)&&(K=(T[0]+T[1])/2);var R=j.getModel();return{n1:O[j.node1.dataIndex],n2:O[j.node2.dataIndex],d:K,curveness:R.get("lineStyle.curveness")||0,ignoreForceLayout:R.get("ignoreForceLayout")}}),l=r.coordinateSystem,C=l.getBoundingRect(),_=f(O,x,{rect:C,gravity:w.get("gravity"),friction:w.get("friction")}),N=_.step;_.step=function(k){for(var P=0,j=O.length;P=0&&n[r].disabled;r-=1);var l=null;return r!==-1&&(l=u[r],u.splice(r,1)),{values:u,removedValue:l}}var h=typeof window!="undefined"&&window.document&&window.document.documentElement,c=h,o=0;function i(){var n;return c?(n=o,o+=1):n="TEST_OR_SSR",n}},"WN+l":function(D,I,e){var g=e("bYtY"),f=e("IwbS");function y(v,h,c,o){var i=c.axis;if(i.scale.isBlank())return;var n=c.getModel("splitArea"),a=n.getModel("areaStyle"),u=a.get("color"),r=o.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:n,clamp:!0});if(!l.length)return;var t=u.length,s=v.__splitAreaColors,d=g.createHashMap(),m=0;if(s)for(var w=0;w=0;N--)x[N]==null&&(delete C[O[N]],O.pop())}function u(T,O){var x=T.visual,C=[];g.isObject(x)?v(x,function(N){C.push(N)}):x!=null&&C.push(x);var _={color:1,symbol:1};!O&&C.length===1&&!_.hasOwnProperty(T.type)&&(C[1]=C[0]),b(T,C)}function r(T){return{applyVisual:function(O,x,C){O=this.mapValueToVisual(O),C("color",T(x("color"),O))},_doMap:m([0,1])}}function l(T){var O=this.option.visual;return O[Math.round(p(T,[0,1],[0,O.length-1],!0))]||{}}function t(T){return function(O,x,C){C(T,this.mapValueToVisual(O))}}function s(T){var O=this.option.visual;return O[this.option.loop&&T!==c?T%O.length:T]}function d(){return this.option.visual[0]}function m(T){return{linear:function(O){return p(O,T,this.option.visual,!0)},category:s,piecewise:function(O,x){var C=w.call(this,x);return C==null&&(C=p(O,T,this.option.visual,!0)),C},fixed:d}}function w(T){var O=this.option,x=O.pieceList;if(O.hasSpecialVisual){var C=o.findPieceIndex(T,x),_=x[C];if(_&&_.visual)return _.visual[this.type]}}function b(T,O){return T.visual=O,T.type==="color"&&(T.parsedVisual=g.map(O,function(x){return f.parse(x)})),O}var E={linear:function(T){return p(T,this.option.dataExtent,[0,1],!0)},piecewise:function(T){var O=this.option.pieceList,x=o.findPieceIndex(T,O,!0);if(x!=null)return p(x,[0,O.length-1],[0,1],!0)},category:function(T){var O=this.option.categories?this.option.categoryMap[T]:T;return O==null?c:O},fixed:g.noop};o.listVisualTypes=function(){var T=[];return g.each(i,function(O,x){T.push(x)}),T},o.addVisualHandler=function(T,O){i[T]=O},o.isValidType=function(T){return i.hasOwnProperty(T)},o.eachVisual=function(T,O,x){g.isObject(T)?g.each(T,O,x):O.call(x,T)},o.mapVisual=function(T,O,x){var C,_=g.isArray(T)?[]:g.isObject(T)?{}:(C=!0,null);return o.eachVisual(T,function(N,F){var k=O.call(x,N,F);C?_=k:_[F]=k}),_},o.retrieveVisuals=function(T){var O={},x;return T&&v(i,function(C,_){T.hasOwnProperty(_)&&(O[_]=T[_],x=!0)}),x?O:null},o.prepareVisualTypes=function(T){if(h(T)){var O=[];v(T,function(x,C){O.push(C)}),T=O}else if(g.isArray(T))T=T.slice();else return[];return T.sort(function(x,C){return C==="color"&&x!=="color"&&x.indexOf("color")===0?1:-1}),T},o.dependsOn=function(T,O){return O==="color"?!!(T&&T.indexOf(O)===0):T===O},o.findPieceIndex=function(T,O,x){for(var C,_=Infinity,N=0,F=O.length;N1&&arguments[1]!==void 0?arguments[1]:!1,k=N.getAttribute("id")||N.getAttribute("data-reactid")||N.getAttribute("name");if(F&&l[k])return l[k];var P=window.getComputedStyle(N),j=P.getPropertyValue("box-sizing")||P.getPropertyValue("-moz-box-sizing")||P.getPropertyValue("-webkit-box-sizing"),K=parseFloat(P.getPropertyValue("padding-bottom"))+parseFloat(P.getPropertyValue("padding-top")),R=parseFloat(P.getPropertyValue("border-bottom-width"))+parseFloat(P.getPropertyValue("border-top-width")),B=r.map(function(H){return"".concat(H,":").concat(P.getPropertyValue(H))}).join(";"),U={sizingStyle:B,paddingSize:K,borderSize:R,boxSizing:j};return F&&k&&(l[k]=U),U}function d(N){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;t||(t=document.createElement("textarea"),t.setAttribute("tab-index","-1"),t.setAttribute("aria-hidden","true"),document.body.appendChild(t)),N.getAttribute("wrap")?t.setAttribute("wrap",N.getAttribute("wrap")):t.removeAttribute("wrap");var j=s(N,F),K=j.paddingSize,R=j.borderSize,B=j.boxSizing,U=j.sizingStyle;t.setAttribute("style","".concat(U,";").concat(u)),t.value=N.value||N.placeholder||"";var H=Number.MIN_SAFE_INTEGER,W=Number.MAX_SAFE_INTEGER,V=t.scrollHeight,z;if(B==="border-box"?V+=R:B==="content-box"&&(V-=K),k!==null||P!==null){t.value=" ";var X=t.scrollHeight-K;k!==null&&(H=X*k,B==="border-box"&&(H=H+K+R),V=Math.max(H,V)),P!==null&&(W=X*P,B==="border-box"&&(W=W+K+R),z=V>W?"":"hidden",V=Math.min(W,V))}return{height:V,minHeight:H,maxHeight:W,overflowY:z}}function m(N,F){var k=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);F&&(P=P.filter(function(j){return Object.getOwnPropertyDescriptor(N,j).enumerable})),k.push.apply(k,P)}return k}function w(N){for(var F=1;F=0;if(!A)i(m,w,w,b),w.zrDelta=w.wheelDelta?w.wheelDelta/120:-(w.detail||0)/3;else{var S=E!=="touchend"?w.targetTouches[0]:w.changedTouches[0];S&&i(m,S,w,b)}var T=w.button;return w.which==null&&T!==void 0&&c.test(w.type)&&(w.which=T&1?1:T&2?3:T&4?2:0),w}function r(m,w,b,E){h?m.addEventListener(w,b,E):m.attachEvent("on"+w,b)}function l(m,w,b,E){h?m.removeEventListener(w,b,E):m.detachEvent("on"+w,b)}var t=h?function(m){m.preventDefault(),m.stopPropagation(),m.cancelBubble=!0}:function(m){m.returnValue=!1,m.cancelBubble=!0};function s(m){return m.which===2||m.which===3}function d(m){return m.which>1}I.clientToLocal=i,I.getNativeEvent=a,I.normalizeEvent=u,I.addEventListener=r,I.removeEventListener=l,I.stop=t,I.isMiddleOrRightButtonOnMouseUpDown=s,I.notLeftMouse=d},YJ9k:function(D,I,e){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;function g(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function f(v,h){for(var c=0;c0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[me].sort(E)}}]),_e}();function E(_e,ae){var me=_e.node.sortableInfo.index,Oe=ae.node.sortableInfo.index;return me-Oe}function A(_e,ae,me){return _e=_e.slice(),_e.splice(me<0?_e.length+me:me,0,_e.splice(ae,1)[0]),_e}function S(_e,ae){return Object.keys(_e).reduce(function(me,Oe){return ae.indexOf(Oe)===-1&&(me[Oe]=_e[Oe]),me},{})}var T={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},O=function(){if(typeof window=="undefined"||typeof document=="undefined")return"";var _e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],ae=(Array.prototype.slice.call(_e).join("").match(/-(moz|webkit|ms)-/)||_e.OLink===""&&["","o"])[1];switch(ae){case"ms":return"ms";default:return ae&&ae.length?ae[0].toUpperCase()+ae.substr(1):""}}();function x(_e,ae){Object.keys(ae).forEach(function(me){_e.style[me]=ae[me]})}function C(_e,ae){_e.style["".concat(O,"Transform")]=ae==null?"":"translate3d(".concat(ae.x,"px,").concat(ae.y,"px,0)")}function _(_e,ae){_e.style["".concat(O,"TransitionDuration")]=ae==null?"":"".concat(ae,"ms")}function N(_e,ae){for(;_e;){if(ae(_e))return _e;_e=_e.parentNode}return null}function F(_e,ae,me){return Math.max(_e,Math.min(me,ae))}function k(_e){return _e.substr(-2)==="px"?parseFloat(_e):0}function P(_e){var ae=window.getComputedStyle(_e);return{bottom:k(ae.marginBottom),left:k(ae.marginLeft),right:k(ae.marginRight),top:k(ae.marginTop)}}function j(_e,ae){var me=ae.displayName||ae.name;return me?"".concat(_e,"(").concat(me,")"):_e}function K(_e,ae){var me=_e.getBoundingClientRect();return{top:me.top+ae.top,left:me.left+ae.left}}function R(_e){return _e.touches&&_e.touches.length?{x:_e.touches[0].pageX,y:_e.touches[0].pageY}:_e.changedTouches&&_e.changedTouches.length?{x:_e.changedTouches[0].pageX,y:_e.changedTouches[0].pageY}:{x:_e.pageX,y:_e.pageY}}function B(_e){return _e.touches&&_e.touches.length||_e.changedTouches&&_e.changedTouches.length}function U(_e,ae){var me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!_e)return;var Oe={left:me.left+_e.offsetLeft,top:me.top+_e.offsetTop};return _e.parentNode===ae?Oe:U(_e.parentNode,ae,Oe)}function H(_e,ae,me){return _eae?_e-1:_e>me&&_e0&&me[Ct].height>0){var Be=vt.getContext("2d");Be.drawImage(me[Ct],0,0)}}),Oe}function Se(_e){var ae,me,Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return me=ae=function(Ze){Object(o.a)(vt,Ze);function vt(){return Object(p.a)(this,vt),Object(h.a)(this,Object(c.a)(vt).apply(this,arguments))}return Object(v.a)(vt,[{key:"componentDidMount",value:function(){var Be=Object(t.findDOMNode)(this);Be.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return m()(Oe.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var Be=Oe.withRef?"wrappedInstance":null;return Object(a.createElement)(_e,Object(g.a)({ref:Be},this.props))}}]),vt}(a.Component),Object(n.a)(ae,"displayName",j("sortableHandle",_e)),me}function ge(_e){return _e.sortableHandle!=null}var Pe=function(){function _e(ae,me){Object(p.a)(this,_e),this.container=ae,this.onScrollCallback=me}return Object(v.a)(_e,[{key:"clear",value:function(){if(this.interval==null)return;clearInterval(this.interval),this.interval=null}},{key:"update",value:function(me){var Oe=this,Ze=me.translate,vt=me.minTranslate,Ct=me.maxTranslate,Be=me.width,Rt=me.height,He={x:0,y:0},wt={x:1,y:1},Ye={x:10,y:10},et=this.container,rt=et.scrollTop,st=et.scrollLeft,Ve=et.scrollHeight,ie=et.scrollWidth,$=et.clientHeight,it=et.clientWidth,Qe=rt===0,ye=Ve-rt-$===0,Zt=st===0,dt=ie-st-it===0;Ze.y>=Ct.y-Rt/2&&!ye?(He.y=1,wt.y=Ye.y*Math.abs((Ct.y-Rt/2-Ze.y)/Rt)):Ze.x>=Ct.x-Be/2&&!dt?(He.x=1,wt.x=Ye.x*Math.abs((Ct.x-Be/2-Ze.x)/Be)):Ze.y<=vt.y+Rt/2&&!Qe?(He.y=-1,wt.y=Ye.y*Math.abs((Ze.y-Rt/2-vt.y)/Rt)):Ze.x<=vt.x+Be/2&&!Zt&&(He.x=-1,wt.x=Ye.x*Math.abs((Ze.x-Be/2-vt.x)/Be)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(He.x!==0||He.y!==0)&&(this.interval=setInterval(function(){Oe.isAutoScrolling=!0;var ct={left:wt.x*He.x,top:wt.y*He.y};Oe.container.scrollTop+=ct.top,Oe.container.scrollLeft+=ct.left,Oe.onScrollCallback(ct)},5))}}]),_e}();function Ge(_e){var ae=_e.node;return{height:ae.offsetHeight,width:ae.offsetWidth}}function pt(_e){var ae=[G.Input,G.Textarea,G.Select,G.Option,G.Button];return ae.indexOf(_e.target.tagName)!==-1?!0:!!N(_e.target,function(me){return me.contentEditable==="true"})}var Te={axis:l.a.oneOf(["x","y","xy"]),contentWindow:l.a.any,disableAutoscroll:l.a.bool,distance:l.a.number,getContainer:l.a.func,getHelperDimensions:l.a.func,helperClass:l.a.string,helperContainer:l.a.oneOfType([l.a.func,typeof HTMLElement=="undefined"?l.a.any:l.a.instanceOf(HTMLElement)]),hideSortableGhost:l.a.bool,keyboardSortingTransitionDuration:l.a.number,lockAxis:l.a.string,lockOffset:l.a.oneOfType([l.a.number,l.a.string,l.a.arrayOf(l.a.oneOfType([l.a.number,l.a.string]))]),lockToContainerEdges:l.a.bool,onSortEnd:l.a.func,onSortMove:l.a.func,onSortOver:l.a.func,onSortStart:l.a.func,pressDelay:l.a.number,pressThreshold:l.a.number,keyCodes:l.a.shape({lift:l.a.arrayOf(l.a.number),drop:l.a.arrayOf(l.a.number),cancel:l.a.arrayOf(l.a.number),up:l.a.arrayOf(l.a.number),down:l.a.arrayOf(l.a.number)}),shouldCancelStart:l.a.func,transitionDuration:l.a.number,updateBeforeSortStart:l.a.func,useDragHandle:l.a.bool,useWindowAsScrollContainer:l.a.bool},xe={lift:[fe.SPACE],drop:[fe.SPACE],cancel:[fe.ESC],up:[fe.UP,fe.LEFT],down:[fe.DOWN,fe.RIGHT]},lt={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:Ge,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:xe,shouldCancelStart:pt,transitionDuration:300,useWindowAsScrollContainer:!1},Ie=Object.keys(Te);function de(_e){m()(!(_e.distance&&_e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function ee(_e,ae){try{var me=_e()}catch(Oe){return ae(!0,Oe)}return me&&me.then?me.then(ae.bind(null,!1),ae.bind(null,!0)):ae(!1,value)}function se(_e){var ae,me,Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return me=ae=function(Ze){Object(o.a)(vt,Ze);function vt(Ct){var Be;return Object(p.a)(this,vt),Be=Object(h.a)(this,Object(c.a)(vt).call(this,Ct)),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"state",{}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"handleStart",function(Rt){var He=Be.props,wt=He.distance,Ye=He.shouldCancelStart;if(Rt.button===2||Ye(Rt))return;Be.touched=!0,Be.position=R(Rt);var et=N(Rt.target,function(it){return it.sortableInfo!=null});if(et&&et.sortableInfo&&Be.nodeIsChild(et)&&!Be.state.sorting){var rt=Be.props.useDragHandle,st=et.sortableInfo,Ve=st.index,ie=st.collection,$=st.disabled;if($)return;if(rt&&!N(Rt.target,ge))return;Be.manager.active={collection:ie,index:Ve},!B(Rt)&&Rt.target.tagName===G.Anchor&&Rt.preventDefault(),wt||(Be.props.pressDelay===0?Be.handlePress(Rt):Be.pressTimer=setTimeout(function(){return Be.handlePress(Rt)},Be.props.pressDelay))}}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"nodeIsChild",function(Rt){return Rt.sortableInfo.manager===Be.manager}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"handleMove",function(Rt){var He=Be.props,wt=He.distance,Ye=He.pressThreshold;if(!Be.state.sorting&&Be.touched&&!Be._awaitingUpdateBeforeSortStart){var et=R(Rt),rt={x:Be.position.x-et.x,y:Be.position.y-et.y},st=Math.abs(rt.x)+Math.abs(rt.y);Be.delta=rt,!wt&&(!Ye||st>=Ye)?(clearTimeout(Be.cancelTimer),Be.cancelTimer=setTimeout(Be.cancel,0)):wt&&st>=wt&&Be.manager.isActive()&&Be.handlePress(Rt)}}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"handleEnd",function(){Be.touched=!1,Be.cancel()}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"cancel",function(){var Rt=Be.props.distance,He=Be.state.sorting;He||(Rt||clearTimeout(Be.pressTimer),Be.manager.active=null)}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"handlePress",function(Rt){try{var He=Be.manager.getActive(),wt=function(){if(He){var Ye=function(){var It=ye.sortableInfo.index,or=P(ye),Bt=q(Be.container),Ae=Be.scrollContainer.getBoundingClientRect(),pe=st({index:It,node:ye,collection:Zt});if(Be.node=ye,Be.margin=or,Be.gridGap=Bt,Be.width=pe.width,Be.height=pe.height,Be.marginOffset={x:Be.margin.left+Be.margin.right+Be.gridGap.x,y:Math.max(Be.margin.top,Be.margin.bottom,Be.gridGap.y)},Be.boundingClientRect=ye.getBoundingClientRect(),Be.containerBoundingRect=Ae,Be.index=It,Be.newIndex=It,Be.axis={x:rt.indexOf("x")>=0,y:rt.indexOf("y")>=0},Be.offsetEdge=U(ye,Be.container),dt?Be.initialOffset=R(Object(y.a)({},Rt,{pageX:Be.boundingClientRect.left,pageY:Be.boundingClientRect.top})):Be.initialOffset=R(Rt),Be.initialScroll={left:Be.scrollContainer.scrollLeft,top:Be.scrollContainer.scrollTop},Be.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},Be.helper=Be.helperContainer.appendChild(ve(ye)),x(Be.helper,{boxSizing:"border-box",height:"".concat(Be.height,"px"),left:"".concat(Be.boundingClientRect.left-or.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(Be.boundingClientRect.top-or.top,"px"),width:"".concat(Be.width,"px")}),dt&&Be.helper.focus(),ie&&(Be.sortableGhost=ye,x(ye,{opacity:0,visibility:"hidden"})),Be.minTranslate={},Be.maxTranslate={},dt){var he=Qe?{top:0,left:0,width:Be.contentWindow.innerWidth,height:Be.contentWindow.innerHeight}:Be.containerBoundingRect,le=he.top,Ne=he.left,je=he.width,Ke=he.height,Xe=le+Ke,Fe=Ne+je;Be.axis.x&&(Be.minTranslate.x=Ne-Be.boundingClientRect.left,Be.maxTranslate.x=Fe-(Be.boundingClientRect.left+Be.width)),Be.axis.y&&(Be.minTranslate.y=le-Be.boundingClientRect.top,Be.maxTranslate.y=Xe-(Be.boundingClientRect.top+Be.height))}else Be.axis.x&&(Be.minTranslate.x=(Qe?0:Ae.left)-Be.boundingClientRect.left-Be.width/2,Be.maxTranslate.x=(Qe?Be.contentWindow.innerWidth:Ae.left+Ae.width)-Be.boundingClientRect.left-Be.width/2),Be.axis.y&&(Be.minTranslate.y=(Qe?0:Ae.top)-Be.boundingClientRect.top-Be.height/2,Be.maxTranslate.y=(Qe?Be.contentWindow.innerHeight:Ae.top+Ae.height)-Be.boundingClientRect.top-Be.height/2);Ve&&Ve.split(" ").forEach(function(nt){return Be.helper.classList.add(nt)}),Be.listenerNode=Rt.touches?ye:Be.contentWindow,dt?(Be.listenerNode.addEventListener("wheel",Be.handleKeyEnd,!0),Be.listenerNode.addEventListener("mousedown",Be.handleKeyEnd,!0),Be.listenerNode.addEventListener("keydown",Be.handleKeyDown)):(T.move.forEach(function(nt){return Be.listenerNode.addEventListener(nt,Be.handleSortMove,!1)}),T.end.forEach(function(nt){return Be.listenerNode.addEventListener(nt,Be.handleSortEnd,!1)})),Be.setState({sorting:!0,sortingIndex:It}),it&&it({node:ye,index:It,collection:Zt,isKeySorting:dt,nodes:Be.manager.getOrderedRefs(),helper:Be.helper},Rt),dt&&Be.keyMove(0)},et=Be.props,rt=et.axis,st=et.getHelperDimensions,Ve=et.helperClass,ie=et.hideSortableGhost,$=et.updateBeforeSortStart,it=et.onSortStart,Qe=et.useWindowAsScrollContainer,ye=He.node,Zt=He.collection,dt=Be.manager.isKeySorting,ct=function(){if(typeof $=="function"){Be._awaitingUpdateBeforeSortStart=!0;var yt=ee(function(){var It=ye.sortableInfo.index;return Promise.resolve($({collection:Zt,index:It,node:ye,isKeySorting:dt},Rt)).then(function(){})},function(It,or){if(Be._awaitingUpdateBeforeSortStart=!1,It)throw or;return or});if(yt&&yt.then)return yt.then(function(){})}}();return ct&&ct.then?ct.then(Ye):Ye(ct)}}();return Promise.resolve(wt&&wt.then?wt.then(function(){}):void 0)}catch(Ye){return Promise.reject(Ye)}}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"handleSortMove",function(Rt){var He=Be.props.onSortMove;typeof Rt.preventDefault=="function"&&Rt.preventDefault(),Be.updateHelperPosition(Rt),Be.animateNodes(),Be.autoscroll(),He&&He(Rt)}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"handleSortEnd",function(Rt){var He=Be.props,wt=He.hideSortableGhost,Ye=He.onSortEnd,et=Be.manager,rt=et.active.collection,st=et.isKeySorting,Ve=Be.manager.getOrderedRefs();Be.listenerNode&&(st?(Be.listenerNode.removeEventListener("wheel",Be.handleKeyEnd,!0),Be.listenerNode.removeEventListener("mousedown",Be.handleKeyEnd,!0),Be.listenerNode.removeEventListener("keydown",Be.handleKeyDown)):(T.move.forEach(function(ye){return Be.listenerNode.removeEventListener(ye,Be.handleSortMove)}),T.end.forEach(function(ye){return Be.listenerNode.removeEventListener(ye,Be.handleSortEnd)}))),Be.helper.parentNode.removeChild(Be.helper),wt&&Be.sortableGhost&&x(Be.sortableGhost,{opacity:"",visibility:""});for(var ie=0,$=Ve.length;ie<$;ie++){var it=Ve[ie],Qe=it.node;it.edgeOffset=null,it.boundingClientRect=null,C(Qe,null),_(Qe,null),it.translate=null}Be.autoScroller.clear(),Be.manager.active=null,Be.manager.isKeySorting=!1,Be.setState({sorting:!1,sortingIndex:null}),typeof Ye=="function"&&Ye({collection:rt,newIndex:Be.newIndex,oldIndex:Be.index,isKeySorting:st,nodes:Ve},Rt),Be.touched=!1}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"autoscroll",function(){var Rt=Be.props.disableAutoscroll,He=Be.manager.isKeySorting;if(Rt){Be.autoScroller.clear();return}if(He){var wt=Object(y.a)({},Be.translate),Ye=0,et=0;Be.axis.x&&(wt.x=Math.min(Be.maxTranslate.x,Math.max(Be.minTranslate.x,Be.translate.x)),Ye=Be.translate.x-wt.x),Be.axis.y&&(wt.y=Math.min(Be.maxTranslate.y,Math.max(Be.minTranslate.y,Be.translate.y)),et=Be.translate.y-wt.y),Be.translate=wt,C(Be.helper,Be.translate),Be.scrollContainer.scrollLeft+=Ye,Be.scrollContainer.scrollTop+=et;return}Be.autoScroller.update({height:Be.height,maxTranslate:Be.maxTranslate,minTranslate:Be.minTranslate,translate:Be.translate,width:Be.width})}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"onAutoScroll",function(Rt){Be.translate.x+=Rt.left,Be.translate.y+=Rt.top,Be.animateNodes()}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"handleKeyDown",function(Rt){var He=Rt.keyCode,wt=Be.props,Ye=wt.shouldCancelStart,et=wt.keyCodes,rt=et===void 0?{}:et,st=Object(y.a)({},xe,rt);if(Be.manager.active&&!Be.manager.isKeySorting||!Be.manager.active&&(!st.lift.includes(He)||Ye(Rt)||!Be.isValidSortingTarget(Rt)))return;Rt.stopPropagation(),Rt.preventDefault(),st.lift.includes(He)&&!Be.manager.active?Be.keyLift(Rt):st.drop.includes(He)&&Be.manager.active?Be.keyDrop(Rt):st.cancel.includes(He)?(Be.newIndex=Be.manager.active.index,Be.keyDrop(Rt)):st.up.includes(He)?Be.keyMove(-1):st.down.includes(He)&&Be.keyMove(1)}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"keyLift",function(Rt){var He=Rt.target,wt=N(He,function(st){return st.sortableInfo!=null}),Ye=wt.sortableInfo,et=Ye.index,rt=Ye.collection;Be.initialFocusedNode=He,Be.manager.isKeySorting=!0,Be.manager.active={index:et,collection:rt},Be.handlePress(Rt)}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"keyMove",function(Rt){var He=Be.manager.getOrderedRefs(),wt=He[He.length-1].node.sortableInfo.index,Ye=Be.newIndex+Rt,et=Be.newIndex;if(Ye<0||Ye>wt)return;Be.prevIndex=et,Be.newIndex=Ye;var rt=H(Be.newIndex,Be.prevIndex,Be.index),st=He.find(function(dt){var ct=dt.node;return ct.sortableInfo.index===rt}),Ve=st.node,ie=Be.containerScrollDelta,$=st.boundingClientRect||K(Ve,ie),it=st.translate||{x:0,y:0},Qe={top:$.top+it.y-ie.top,left:$.left+it.x-ie.left},ye=etdt?dt/2:this.height/2,width:this.width>Zt?Zt/2:this.width/2},yt=Ve&&ye>this.index&&ye<=ie,It=Ve&&ye=ie,or={x:0,y:0},Bt=rt[$].edgeOffset;Bt||(Bt=U(Qe,this.container),rt[$].edgeOffset=Bt,Ve&&(rt[$].boundingClientRect=K(Qe,Ye)));var Ae=$0&&rt[$-1];if(Ae&&!Ae.edgeOffset&&(Ae.edgeOffset=U(Ae.node,this.container),Ve&&(Ae.boundingClientRect=K(Ae.node,Ye))),ye===this.index){He&&(this.sortableGhost=Qe,x(Qe,{opacity:0,visibility:"hidden"}));continue}Rt&&_(Qe,Rt),this.axis.x?this.axis.y?It||yethis.containerBoundingRect.width-ct.width&&(Ae&&(or.x=Ae.edgeOffset.left-Bt.left,or.y=Ae.edgeOffset.top-Bt.top)),this.newIndex===null&&(this.newIndex=ye)):(yt||ye>this.index&&(st.left+et.left+ct.width>=Bt.left&&st.top+et.top+ct.height>=Bt.top||st.top+et.top+ct.height>=Bt.top+dt))&&(or.x=-(this.width+this.marginOffset.x),Bt.left+or.xthis.index&&st.left+et.left+ct.width>=Bt.left?(or.x=-(this.width+this.marginOffset.x),this.newIndex=ye):(It||yethis.index&&st.top+et.top+ct.height>=Bt.top?(or.y=-(this.height+this.marginOffset.y),this.newIndex=ye):(It||ye1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return me=ae=function(Ze){Object(o.a)(vt,Ze);function vt(){return Object(p.a)(this,vt),Object(h.a)(this,Object(c.a)(vt).apply(this,arguments))}return Object(v.a)(vt,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(Be){this.node&&(Be.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),Be.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),Be.collection!==this.props.collection&&(this.unregister(Be.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var Be=this.props,Rt=Be.collection,He=Be.disabled,wt=Be.index,Ye=Object(t.findDOMNode)(this);Ye.sortableInfo={collection:Rt,disabled:He,index:wt,manager:this.context.manager},this.node=Ye,this.ref={node:Ye},this.context.manager.add(Rt,this.ref)}},{key:"unregister",value:function(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(Be,this.ref)}},{key:"getWrappedInstance",value:function(){return m()(Oe.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var Be=Oe.withRef?"wrappedInstance":null;return Object(a.createElement)(_e,Object(g.a)({ref:Be},S(this.props,Ce)))}}]),vt}(a.Component),Object(n.a)(ae,"displayName",j("sortableElement",_e)),Object(n.a)(ae,"contextTypes",{manager:l.a.object.isRequired}),Object(n.a)(ae,"propTypes",ke),Object(n.a)(ae,"defaultProps",{collection:0}),me}},YNAk:function(D,I,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var y=f(e("q1tI")),p=g(e("QyFq")),v=g(e("KQxl")),h=function(i,n){return y.createElement(v.default,Object.assign({},i,{ref:n,icon:p.default}))};h.displayName="CaretDownFilled";var c=y.forwardRef(h);I.default=c},YNf1:function(D,I,e){var g=e("IwbS"),f=e("6Ic6"),y=.3,p=f.extend({type:"parallel",init:function(){this._dataGroup=new g.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(u,r,l,t){var s=this._dataGroup,d=u.getData(),m=this._data,w=u.coordinateSystem,b=w.dimensions,E=o(u);d.diff(m).add(A).update(S).remove(T).execute();function A(x){var C=c(d,s,x,b,w);i(C,d,x,E)}function S(x,C){var _=m.getItemGraphicEl(C),N=h(d,x,b,w);d.setItemGraphicEl(x,_);var F=t&&t.animation===!1?null:u;g.updateProps(_,{shape:{points:N}},F,x),i(_,d,x,E)}function T(x){var C=m.getItemGraphicEl(x);s.remove(C)}if(!this._initialized){this._initialized=!0;var O=v(w,u,function(){setTimeout(function(){s.removeClipPath()})});s.setClipPath(O)}this._data=d},incrementalPrepareRender:function(u,r,l){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(u,r,l){for(var t=r.getData(),s=r.coordinateSystem,d=s.dimensions,m=o(r),w=u.start;w65535?m:b}function A(z){var X=z.constructor;return X===Array?z.slice():new X(z)}var S=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],T=["_extent","_approximateExtent","_rawExtent"];function O(z,X){y.each(S.concat(X.__wrappedMethods||[]),function(q){X.hasOwnProperty(q)&&(z[q]=X[q])}),z.__wrappedMethods=X.__wrappedMethods,y.each(T,function(q){z[q]=y.clone(X[q])}),z._calculationInfo=y.extend(X._calculationInfo)}var x=function(z,X){z=z||["x","y"];for(var q={},fe=[],G={},ve=0;veCe[1]&&(Ce[1]=ke)}X&&(this._nameList[lt]=X[Ie])}this._rawCount=this._count=Pe,this._extent={},N(this)},C._initDataFromProvider=function(z,X){if(z>=X)return;for(var q=this._chunkSize,fe=this._rawData,G=this._storage,ve=this.dimensions,Se=ve.length,ge=this._dimensionInfos,Pe=this._nameList,Ge=this._idList,pt=this._rawExtent,Te=this._nameRepeatCount={},xe,lt=this._chunkCount,Ie=0;IeOe[1]&&(Oe[1]=me)}if(!fe.pure){var Ze=Pe[ke];if(se&&Ze==null){if(se.name!=null)Pe[ke]=Ze=se.name;else if(xe!=null){var vt=ve[xe],Ct=G[vt][Ce];if(Ct){Ze=Ct[ze];var Be=ge[vt].ordinalMeta;Be&&Be.categories.length&&(Ze=Be.categories[Ze])}}}var Rt=se==null?null:se.id;Rt==null&&Ze!=null&&(Te[Ze]=Te[Ze]||0,Rt=Ze,Te[Ze]>0&&(Rt+="__ec__"+Te[Ze]),Te[Ze]++),Rt!=null&&(Ge[ke]=Rt)}}!fe.persistent&&fe.clean&&fe.clean(),this._rawCount=this._count=X,this._extent={},N(this)};function _(z,X,q,fe,G){var ve=d[X.type],Se=fe-1,ge=X.name,Pe=z[ge][Se];if(Pe&&Pe.length=0&&X=0&&Xge&&(ge=Ge)}return ve=[Se,ge],this._extent[z]=ve,ve},C.getApproximateExtent=function(z){return z=this.getDimension(z),this._approximateExtent[z]||this.getDataExtent(z)},C.setApproximateExtent=function(z,X){X=this.getDimension(X),this._approximateExtent[X]=z.slice()},C.getCalculationInfo=function(z){return this._calculationInfo[z]},C.setCalculationInfo=function(z,X){r(z)?y.extend(this._calculationInfo,z):this._calculationInfo[z]=X},C.getSum=function(z){var X=this._storage[z],q=0;if(X)for(var fe=0,G=this.count();fe=this._rawCount||z<0)return-1;if(!this._indices)return z;var X=this._indices,q=X[z];if(q!=null&&qz)G=ve-1;else return ve}return-1},C.indicesOfNearest=function(z,X,q){var fe=this._storage,G=fe[z],ve=[];if(!G)return ve;q==null&&(q=Infinity);for(var Se=Infinity,ge=-1,Pe=0,Ge=0,pt=this.count();Ge=0&&ge<0)&&(Se=xe,ge=Te,Pe=0),Te===ge&&(ve[Pe++]=Ge))}return ve.length=Pe,ve},C.getRawIndex=k;function k(z){return z}function P(z){return z=0?this._indices[z]:-1}C.getRawDataItem=function(z){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(z));for(var X=[],q=0;q=Ge&&ke<=pt||isNaN(ke))&&(Se[ge++]=xe),xe++}Te=!0}else if(fe===2){for(var lt=this._storage[Pe],Ce=this._storage[X[1]],ze=z[X[1]][0],_e=z[X[1]][1],Ie=0;Ie=Ge&&ke<=pt||isNaN(ke))&&(me>=ze&&me<=_e||isNaN(me))&&(Se[ge++]=xe),xe++}Te=!0}}if(!Te)if(fe===1)for(var se=0;se=Ge&&ke<=pt||isNaN(ke))&&(Se[ge++]=Oe)}else for(var se=0;sez[vt][1])&&(Ze=!1)}Ze&&(Se[ge++]=this.getRawIndex(se))}return ge=0?(G[ge]=U(ve[ge]),fe._rawExtent[ge]=H(),fe._extent[ge]=null):G[ge]=ve[ge])}return fe}function U(z){for(var X=new Array(z.length),q=0;q_e[1]&&(_e[1]=ze)}}}return G},C.downSample=function(z,X,q,fe){for(var G=B(this,[z]),ve=G._storage,Se=[],ge=Math.floor(1/X),Pe=ve[z],Ge=this.count(),pt=this._chunkSize,Te=G._rawExtent[z],xe=new(E(this))(Ge),lt=0,Ie=0;IeGe-Ie&&(ge=Ge-Ie,Se.length=ge);for(var de=0;deTe[1]&&(Te[1]=Ce),xe[lt++]=ze}return G._count=lt,G._indices=xe,G.getRawIndex=P,G},C.getItemModel=function(z){var X=this.hostModel;return new p(this.getRawDataItem(z),X,X&&X.ecModel)},C.diff=function(z){var X=this;return new v(z?z.getIndices():[],this.getIndices(),function(q){return j(z,q)},function(q){return j(X,q)})},C.getVisual=function(z){var X=this._visual;return X&&X[z]},C.setVisual=function(z,X){if(r(z)){for(var q in z)z.hasOwnProperty(q)&&this.setVisual(q,z[q]);return}this._visual=this._visual||{},this._visual[z]=X},C.setLayout=function(z,X){if(r(z)){for(var q in z)z.hasOwnProperty(q)&&this.setLayout(q,z[q]);return}this._layout[z]=X},C.getLayout=function(z){return this._layout[z]},C.getItemLayout=function(z){return this._itemLayouts[z]},C.setItemLayout=function(z,X,q){this._itemLayouts[z]=q?y.extend(this._itemLayouts[z]||{},X):X},C.clearItemLayouts=function(){this._itemLayouts.length=0},C.getItemVisual=function(z,X,q){var fe=this._itemVisuals[z],G=fe&&fe[X];return G==null&&!q?this.getVisual(X):G},C.setItemVisual=function(z,X,q){var fe=this._itemVisuals[z]||{},G=this.hasItemVisual;if(this._itemVisuals[z]=fe,r(X)){for(var ve in X)X.hasOwnProperty(ve)&&(fe[ve]=X[ve],G[ve]=!0);return}fe[X]=q,G[X]=!0},C.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var W=function(z){z.seriesIndex=this.seriesIndex,z.dataIndex=this.dataIndex,z.dataType=this.dataType};C.setItemGraphicEl=function(z,X){var q=this.hostModel;X&&(X.dataIndex=z,X.dataType=this.dataType,X.seriesIndex=q&&q.seriesIndex,X.type==="group"&&X.traverse(W,X)),this._graphicEls[z]=X},C.getItemGraphicEl=function(z){return this._graphicEls[z]},C.eachItemGraphicEl=function(z,X){y.each(this._graphicEls,function(q,fe){q&&(z&&z.call(X,q,fe))})},C.cloneShallow=function(z){if(!z){var X=y.map(this.dimensions,this.getDimensionInfo,this);z=new x(X,this.hostModel)}if(z._storage=this._storage,O(z,this),this._indices){var q=this._indices.constructor;z._indices=new q(this._indices)}else z._indices=null;return z.getRawIndex=z._indices?P:k,z},C.wrapMethod=function(z,X){var q=this[z];if(typeof q!="function")return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(z),this[z]=function(){var fe=q.apply(this,arguments);return X.apply(this,[fe].concat(y.slice(arguments)))}},C.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],C.CHANGABLE_METHODS=["filterSelf","selectRange"];var V=x;D.exports=V},YgsL:function(D,I,e){var g=e("QBsz"),f=g.distance;function y(v,h,c,o,i,n,a){var u=(c-v)*.5,r=(o-h)*.5;return(2*(h-c)+u+r)*a+(-3*(h-c)-2*u-r)*n+u*i+h}function p(v,h){for(var c=v.length,o=[],i=0,n=1;nc-2?c-1:r+1],m=v[r>c-3?c-1:r+2]);var w=l*l,b=l*w;o.push([y(t[0],s[0],d[0],m[0],l,w,b),y(t[1],s[1],d[1],m[1],l,w,b)])}return o}D.exports=p},Yl7c:function(D,I,e){var g=e("Tghj"),f=g.__DEV__,y=e("bYtY"),p=".",v="___EC__COMPONENT__CONTAINER___";function h(t){var s={main:"",sub:""};return t&&(t=t.split(p),s.main=t[0]||"",s.sub=t[1]||""),s}function c(t){y.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function o(t,s){t.$constructor=t,t.extend=function(d){var m=this,w=function(){d.$constructor?d.$constructor.apply(this,arguments):m.apply(this,arguments)};return y.extend(w.prototype,d),w.extend=this.extend,w.superCall=a,w.superApply=u,y.inherits(w,this),w.superClass=m,w}}var i=0;function n(t){var s=["__\0is_clz",i++,Math.random().toFixed(3)].join("_");t.prototype[s]=!0,t.isInstance=function(d){return!!(d&&d[s])}}function a(t,s){var d=y.slice(arguments,2);return this.superClass.prototype[s].apply(t,d)}function u(t,s,d){return this.superClass.prototype[s].apply(t,d)}function r(t,s){s=s||{};var d={};t.registerClass=function(b,E){if(E){if(c(E),E=h(E),!E.sub)d[E.main]=b;else if(E.sub!==v){var A=m(E);A[E.sub]=b}}return b},t.getClass=function(b,E,A){var S=d[b];if(S&&S[v]&&(S=E?S[E]:null),A&&!S)throw new Error(E?"Component "+b+"."+(E||"")+" not exists. Load it first.":b+".type should be specified.");return S},t.getClassesByMainType=function(b){b=h(b);var E=[],A=d[b.main];return A&&A[v]?y.each(A,function(S,T){T!==v&&E.push(S)}):E.push(A),E},t.hasClass=function(b){return b=h(b),!!d[b.main]},t.getAllClassMainTypes=function(){var b=[];return y.each(d,function(E,A){b.push(A)}),b},t.hasSubTypes=function(b){b=h(b);var E=d[b.main];return E&&E[v]},t.parseClassType=h;function m(b){var E=d[b.main];return(!E||!E[v])&&(E=d[b.main]={},E[v]=!0),E}if(s.registerWhenExtend){var w=t.extend;w&&(t.extend=function(b){var E=w.call(this,b);return t.registerClass(E,b.type)})}return t}function l(t,s){}I.parseClassType=h,I.enableClassExtend=o,I.enableClassCheck=n,I.enableClassManagement=r,I.setReadOnly=l},Ynxi:function(D,I,e){var g=e("bYtY"),f=e("ProS"),y=e("IwbS"),p=e("+TT/"),v=p.getLayoutRect,h=e("7aKB"),c=h.windowOpen;f.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),f.extendComponentView({type:"title",render:function(o,i,n){if(this.group.removeAll(),!o.get("show"))return;var a=this.group,u=o.getModel("textStyle"),r=o.getModel("subtextStyle"),l=o.get("textAlign"),t=g.retrieve2(o.get("textBaseline"),o.get("textVerticalAlign")),s=new y.Text({style:y.setTextStyle({},u,{text:o.get("text"),textFill:u.getTextColor()},{disableBox:!0}),z2:10}),d=s.getBoundingRect(),m=o.get("subtext"),w=new y.Text({style:y.setTextStyle({},r,{text:m,textFill:r.getTextColor(),y:d.height+o.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),b=o.get("link"),E=o.get("sublink"),A=o.get("triggerEvent",!0);s.silent=!b&&!A,w.silent=!E&&!A,b&&s.on("click",function(){c(b,"_"+o.get("target"))}),E&&w.on("click",function(){c(b,"_"+o.get("subtarget"))}),s.eventData=w.eventData=A?{componentType:"title",componentIndex:o.componentIndex}:null,a.add(s),m&&a.add(w);var S=a.getBoundingRect(),T=o.getBoxLayoutParams();T.width=S.width,T.height=S.height;var O=v(T,{width:n.getWidth(),height:n.getHeight()},o.get("padding"));l||(l=o.get("left")||o.get("right"),l==="middle"&&(l="center"),l==="right"?O.x+=O.width:l==="center"&&(O.x+=O.width/2)),t||(t=o.get("top")||o.get("bottom"),t==="center"&&(t="middle"),t==="bottom"?O.y+=O.height:t==="middle"&&(O.y+=O.height/2),t=t||"top"),a.attr("position",[O.x,O.y]);var x={textAlign:l,textVerticalAlign:t};s.setStyle(x),w.setStyle(x),S=a.getBoundingRect();var C=O.margin,_=o.getItemStyle(["color","opacity"]);_.fill=o.get("backgroundColor");var N=new y.Rect({shape:{x:S.x-C[3],y:S.y-C[0],width:S.width+C[1]+C[3],height:S.height+C[0]+C[2],r:o.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});a.add(N)}})},YrtM:function(D,I,e){"use strict";e.d(I,"a",function(){return y});var g=e("q1tI"),f=e.n(g);function y(p,v,h){var c=g.useRef({});return(!("value"in c.current)||h(c.current.condition,v))&&(c.current.value=p(),c.current.condition=v),c.current.value}},Ywus:function(D,I,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var y=f(e("q1tI")),p=g(e("DO2E")),v=g(e("KQxl")),h=function(i,n){return y.createElement(v.default,Object.assign({},i,{ref:n,icon:p.default}))};h.displayName="DeleteOutlined";var c=y.forwardRef(h);I.default=c},Z0Lh:function(D,I,e){"use strict";var g=e("TqRt");Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var f=g(e("pVnL")),y=g(e("HjOm")),p=g(e("Z6rY")),v={lang:(0,f.default)({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},y.default),timePickerLocale:(0,f.default)({},p.default)};v.lang.ok="\u786E \u5B9A";var h=v;I.default=h},Z0cm:function(D,I){var e=Array.isArray;D.exports=e},Z1HP:function(D,I,e){var g=e("ycre"),f=e("quyA"),y=e("q4HE");function p(v){return f(v)?y(v):g(v)}D.exports=p},Z1r0:function(D,I){function e(g){var f=g.findComponents({mainType:"legend"});if(!f||!f.length)return;g.eachSeriesByType("graph",function(y){var p=y.getCategoriesData(),v=y.getGraph(),h=v.data,c=p.mapArray(p.getName);h.filterSelf(function(o){var i=h.getItemModel(o),n=i.getShallow("category");if(n!=null){typeof n=="number"&&(n=c[n]);for(var a=0;a0?1:-1,G=X.height>0?1:-1;return{x:X.x+fe*q/2,y:X.y+G*q/2,width:X.width-fe*q,height:X.height-G*q}},polar:function(W,V,z){var X=W.getItemLayout(V);return{cx:X.cx,cy:X.cy,r0:X.r0,r:X.r,startAngle:X.startAngle,endAngle:X.endAngle}}};function _(W){return W.startAngle!=null&&W.endAngle!=null&&W.startAngle===W.endAngle}function N(W,V,z,X,q,fe,G,ve){var Se=V.getItemVisual(z,"color"),ge=V.getItemVisual(z,"opacity"),Pe=V.getVisual("borderColor"),Ge=X.getModel("itemStyle"),pt=X.getModel("emphasis.itemStyle").getBarItemStyle();ve||W.setShape("r",Ge.get("barBorderRadius")||0),W.useStyle(p.defaults({stroke:_(q)?"none":Pe,fill:_(q)?"none":Se,opacity:ge},Ge.getBarItemStyle()));var Te=X.getShallow("cursor");Te&&W.attr("cursor",Te);var xe=G?q.height>0?"bottom":"top":q.width>0?"left":"right";ve||c(W.style,pt,X,Se,fe,z,xe),_(q)&&(pt.fill=pt.stroke="none"),v.setHoverStyle(W,pt)}function F(W,V){var z=W.get(d)||0,X=isNaN(V.width)?Number.MAX_VALUE:Math.abs(V.width),q=isNaN(V.height)?Number.MAX_VALUE:Math.abs(V.height);return Math.min(z,X,q)}var k=n.extend({type:"largeBar",shape:{points:[]},buildPath:function(W,V){for(var z=V.points,X=this.__startPoint,q=this.__baseDimIdx,fe=0;fe=0?z:null},30,!1);function K(W,V,z){var X=W.__baseDimIdx,q=1-X,fe=W.shape.points,G=W.__largeDataIndices,ve=Math.abs(W.__barWidth/2),Se=W.__startPoint[q];m[0]=V,m[1]=z;for(var ge=m[X],Pe=m[1-X],Ge=ge-ve,pt=ge+ve,Te=0,xe=fe.length/2;Te=Ge&&Ie<=pt&&(Se<=de?Pe>=Se&&Pe<=de:Pe>=de&&Pe<=Se))return G[Te]}return-1}function R(W,V,z){var X=z.getVisual("borderColor")||z.getVisual("color"),q=V.getModel("itemStyle").getItemStyle(["color","borderColor"]);W.useStyle(q),W.style.fill=null,W.style.stroke=X,W.style.lineWidth=z.getLayout("barWidth")}function B(W,V,z){var X=V.get("borderColor")||V.get("color"),q=V.getItemStyle(["color","borderColor"]);W.useStyle(q),W.style.fill=null,W.style.stroke=X,W.style.lineWidth=z.getLayout("barWidth")}function U(W,V,z){var X,q=z.type==="polar";return q?X=z.getArea():X=z.grid.getRect(),q?{cx:X.cx,cy:X.cy,r0:W?X.r0:V.r0,r:W?X.r:V.r,startAngle:W?V.startAngle:0,endAngle:W?V.endAngle:Math.PI*2}:{x:W?V.x:X.x,y:W?X.y:V.y,width:W?V.width:X.width,height:W?X.height:V.height}}function H(W,V,z){var X=W.type==="polar"?v.Sector:v.Rect;return new X({shape:U(V,z,W),silent:!0,z2:0})}D.exports=b},ZCgT:function(D,I,e){var g=e("tLB3"),f=1/0,y=17976931348623157e292;function p(v){if(!v)return v===0?v:0;if(v=g(v),v===f||v===-f){var h=v<0?-1:1;return h*y}return v===v?v:0}D.exports=p},ZLWo:function(D,I,e){"use strict";Object.defineProperty(I,"__esModule",{value:!0});var g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};I.default=g},ZMnZ:function(D,I,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var y=f(e("q1tI")),p=g(e("2oIt")),v=g(e("KQxl")),h=function(i,n){return y.createElement(v.default,Object.assign({},i,{ref:n,icon:p.default}))};h.displayName="UpOutlined";var c=y.forwardRef(h);I.default=c},ZTPi:function(D,I,e){"use strict";var g=e("pVnL"),f=e.n(g),y=e("lSNA"),p=e.n(y),v=e("q1tI"),h=e("ODXe"),c=e("Ff2n"),o=e("rePB"),i=e("TSYQ"),n=e.n(i),a=e("Zm9Q"),u=e("6cGi"),r=e("KQm4"),l=e("xEkU"),t=e.n(l),s=e("t23M");function d(He){var wt=Object(v.useRef)(),Ye=Object(v.useRef)(!1);function et(){for(var rt=arguments.length,st=new Array(rt),Ve=0;Veye&&(ct=ye-dt),Object(v.useMemo)(function(){if(!st.length)return[0,0];for(var yt=st.length,It=yt,or=0;orQe+ct){It=or-1;break}}for(var Ae=0,pe=yt-1;pe>=0;pe-=1){var he=He.get(st[pe].key)||x;if(he[it]ue?(_t=nt,je.current="x"):(_t=At,je.current="y");var Y=Date.now();Y-le.current>100&&(Ne.current=!1),(wt(-_t,-_t)||Ne.current)&&(Fe.preventDefault(),Ne.current=!0),le.current=Y}var Xe=Object(v.useRef)(null);Xe.current={onTouchStart:Ae,onTouchMove:pe,onTouchEnd:he,onWheel:Ke},v.useEffect(function(){function Fe(ne){Xe.current.onTouchStart(ne)}function nt(ne){Xe.current.onTouchMove(ne)}function At(ne){Xe.current.onTouchEnd(ne)}function _t(ne){Xe.current.onWheel(ne)}return document.addEventListener("touchmove",nt,{passive:!1}),document.addEventListener("touchend",At,{passive:!1}),He.current.addEventListener("touchstart",Fe,{passive:!1}),He.current.addEventListener("wheel",_t),function(){document.removeEventListener("touchmove",nt),document.removeEventListener("touchend",At)}},[])}function z(){var He=Object(v.useRef)(new Map);function wt(et){return He.current.has(et)||He.current.set(et,v.createRef()),He.current.get(et)}function Ye(et){He.current.delete(et)}return[wt,Ye]}function X(He,wt){var Ye=v.useRef(He),et=v.useState({}),rt=Object(h.a)(et,2),st=rt[1];function Ve(ie){var $=typeof ie=="function"?ie(Ye.current):ie;$!==Ye.current&&wt($,Ye.current),Ye.current=$,st({})}return[Ye.current,Ve]}function q(He,wt){var Ye=Object.keys(He);if(Object.getOwnPropertySymbols){var et=Object.getOwnPropertySymbols(He);wt&&(et=et.filter(function(rt){return Object.getOwnPropertyDescriptor(He,rt).enumerable})),Ye.push.apply(Ye,et)}return Ye}function fe(He){for(var wt=1;wtHi?"left":"right"})}),_t=Object(h.a)(At,2),ne=_t[0],ue=_t[1],Y=X(0,function(aa,Hi){!nt&&Ae&&Ae({direction:aa>Hi?"top":"bottom"})}),te=Object(h.a)(Y,2),be=te[0],Le=te[1],Re=Object(v.useState)(0),$e=Object(h.a)(Re,2),gt=$e[0],Wt=$e[1],$t=Object(v.useState)(0),Dt=Object(h.a)($t,2),Kt=Dt[0],Yt=Dt[1],Qt=Object(v.useState)(0),Mt=Object(h.a)(Qt,2),dr=Mt[0],er=Mt[1],ot=Object(v.useState)(0),xt=Object(h.a)(ot,2),ut=xt[0],ft=xt[1],Lt=Object(v.useState)(null),Tt=Object(h.a)(Lt,2),ht=Tt[0],Ht=Tt[1],Ft=Object(v.useState)(null),ir=Object(h.a)(Ft,2),Xt=ir[0],mr=ir[1],Ar=Object(v.useState)(0),Nr=Object(h.a)(Ar,2),Fr=Nr[0],tn=Nr[1],qr=Object(v.useState)(0),Or=Object(h.a)(qr,2),Qr=Or[0],Ir=Or[1],ur=m(new Map),pr=Object(h.a)(ur,2),cr=pr[0],fr=pr[1],xr=O(st,cr,gt),Gr="".concat(rt,"-nav-operations-hidden"),un=0,Nn=0;nt?ye?(un=0,Nn=Math.max(0,gt-ht)):(un=Math.min(0,ht-gt),Nn=0):(un=Math.min(0,Xt-Kt),Nn=0);function jr(aa){return aaNn?[Nn,!1]:[aa,!0]}var Tn=Object(v.useRef)(),gn=Object(v.useState)(),Pn=Object(h.a)(gn,2),zn=Pn[0],qn=Pn[1];function Gn(){qn(Date.now())}function Vn(){window.clearTimeout(Tn.current)}V(pe,function(aa,Hi){var ga=!1;function ha(mo,kn){mo(function($i){var eo=jr($i+kn),To=Object(h.a)(eo,2),uo=To[0],rr=To[1];return ga=rr,uo})}if(nt){if(ht>=gt)return ga;ha(ue,aa)}else{if(Xt>=Kt)return ga;ha(Le,Hi)}return Vn(),Gn(),ga}),Object(v.useEffect)(function(){return Vn(),zn&&(Tn.current=window.setTimeout(function(){qn(0)},100)),Vn},[zn]);function An(){var aa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qe,Hi=xr.get(aa);if(!Hi)return;if(nt){var ga=ne;ye?Hi.rightne+ht&&(ga=Hi.right+Hi.width-ht):Hi.left<-ne?ga=-Hi.left:Hi.left+Hi.width>-ne+ht&&(ga=-(Hi.left+Hi.width-ht)),Le(0),ue(jr(ga)[0])}else{var ha=be;Hi.top<-be?ha=-Hi.top:Hi.top+Hi.height>-be+Xt&&(ha=-(Hi.top+Hi.height-Xt)),ue(0),Le(jr(ha)[0])}}var on=C(xr,{width:ht,height:Xt,left:ne,top:be},{width:dr,height:ut},{width:Fr,height:Qr},fe(fe({},He),{},{tabs:st})),ia=Object(h.a)(on,2),xa=ia[0],ta=ia[1],Ii=st.map(function(aa){var Hi=aa.key;return v.createElement(E,{id:$,prefixCls:rt,key:Hi,rtl:ye,tab:aa,closable:aa.closable,editable:dt,active:Hi===Qe,tabPosition:yt,tabBarGutter:It,renderWrapper:or,removeAriaLabel:ct==null?void 0:ct.removeAriaLabel,ref:Xe(Hi),onClick:function(ha){Bt(Hi,ha)},onRemove:function(){Fe(Hi)},onFocus:function(){An(Hi),Gn(),ye||(pe.current.scrollLeft=0),pe.current.scrollTop=0}})}),Ci=d(function(){var aa,Hi,ga,ha,mo,kn,$i,eo,To,uo=((aa=pe.current)===null||aa===void 0?void 0:aa.offsetWidth)||0,rr=((Hi=pe.current)===null||Hi===void 0?void 0:Hi.offsetHeight)||0,Tr=((ga=Ne.current)===null||ga===void 0?void 0:ga.offsetWidth)||0,Pr=((ha=Ne.current)===null||ha===void 0?void 0:ha.offsetHeight)||0,Wr=((mo=le.current)===null||mo===void 0?void 0:mo.offsetWidth)||0,hn=((kn=le.current)===null||kn===void 0?void 0:kn.offsetHeight)||0;Ht(uo),mr(rr),tn(Tr),Ir(Pr);var tt=((($i=he.current)===null||$i===void 0?void 0:$i.offsetWidth)||0)-Tr,jt=(((eo=he.current)===null||eo===void 0?void 0:eo.offsetHeight)||0)-Pr;Wt(tt),Yt(jt);var Jt=(To=le.current)===null||To===void 0?void 0:To.className.includes(Gr);er(tt-(Jt?0:Wr)),ft(jt-(Jt?0:hn)),fr(function(){var nr=new Map;return st.forEach(function(_r){var wr=_r.key,Er=Xe(wr).current;Er&&nr.set(wr,{width:Er.offsetWidth,height:Er.offsetHeight,left:Er.offsetLeft,top:Er.offsetTop})}),nr})}),Yn=st.slice(0,xa),_a=st.slice(ta+1),mn=[].concat(Object(r.a)(Yn),Object(r.a)(_a)),_n=Object(v.useState)(),On=Object(h.a)(_n,2),In=On[0],jn=On[1],ni=xr.get(Qe),di=Object(v.useRef)();function Na(){t.a.cancel(di.current)}Object(v.useEffect)(function(){var aa={};return ni&&(nt?(ye?aa.right=ni.right:aa.left=ni.left,aa.width=ni.width):(aa.top=ni.top,aa.height=ni.height)),Na(),di.current=t()(function(){jn(aa)}),Na},[ni,nt,ye]),Object(v.useEffect)(function(){An()},[Qe,ni,xr,nt]),Object(v.useEffect)(function(){Ci()},[ye,It,Qe,st.map(function(aa){return aa.key}).join("_")]);var Qi=!!mn.length,ma="".concat(rt,"-nav-wrap"),Ba,Qa,Wi,Co;return nt?ye?(Qa=ne>0,Ba=ne+ht0&&arguments[0]!==void 0?arguments[0]:"";return j+=1,"".concat(K).concat(j)}}(),k=function(j){n()(R,j);var K=u()(R);function R(B){var U;h()(this,R),U=K.call(this,B),U.responsiveHandler=function(V){U.setState({below:V.matches});var z=U.props.onBreakpoint,X=U.state.collapsed;z&&z(V.matches),X!==V.matches&&U.setCollapsed(V.matches,"responsive")},U.setCollapsed=function(V,z){"collapsed"in U.props||U.setState({collapsed:V});var X=U.props.onCollapse;X&&X(V,z)},U.toggle=function(){var V=!U.state.collapsed;U.setCollapsed(V,"clickTrigger")},U.renderSider=function(V){var z,X=V.getPrefixCls,q=U.props,fe=q.prefixCls,G=q.className,ve=q.theme,Se=q.collapsible,ge=q.reverseArrow,Pe=q.trigger,Ge=q.style,pt=q.width,Te=q.collapsedWidth,xe=q.zeroWidthTriggerStyle,lt=q.children,Ie=C(q,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle","children"]),de=U.state,ee=de.collapsed,se=de.below,ke=X("layout-sider",fe),Ce=Object(s.default)(Ie,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),ze=ee?Te:pt,_e=x(ze)?"".concat(ze,"px"):String(ze),ae=parseFloat(String(Te||0))===0?r.createElement("span",{onClick:U.toggle,className:t()("".concat(ke,"-zero-width-trigger"),"".concat(ke,"-zero-width-trigger-").concat(ge?"right":"left")),style:xe},Pe||r.createElement(m.a,null)):null,me={expanded:ge?r.createElement(b.a,null):r.createElement(A.a,null),collapsed:ge?r.createElement(A.a,null):r.createElement(b.a,null)},Oe=ee?"collapsed":"expanded",Ze=me[Oe],vt=Pe!==null?ae||r.createElement("div",{className:"".concat(ke,"-trigger"),onClick:U.toggle,style:{width:_e}},Pe||Ze):null,Ct=p()(p()({},Ge),{flex:"0 0 ".concat(_e),maxWidth:_e,minWidth:_e,width:_e}),Be=t()(G,ke,"".concat(ke,"-").concat(ve),(z={},f()(z,"".concat(ke,"-collapsed"),!!ee),f()(z,"".concat(ke,"-has-trigger"),Se&&Pe!==null&&!ae),f()(z,"".concat(ke,"-below"),!!se),f()(z,"".concat(ke,"-zero-width"),parseFloat(_e)===0),z));return r.createElement("aside",p()({className:Be},Ce,{style:Ct}),r.createElement("div",{className:"".concat(ke,"-children")},lt),Se||se&&ae?vt:null)},U.uniqueId=F("ant-sider-");var H;typeof window!="undefined"&&(H=window.matchMedia),H&&B.breakpoint&&B.breakpoint in _&&(U.mql=H("(max-width: ".concat(_[B.breakpoint],")")));var W;return"collapsed"in B?W=B.collapsed:W=B.defaultCollapsed,U.state={collapsed:W,below:!1},U}return o()(R,[{key:"componentDidMount",value:function(){var U;this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),(U=this.props)===null||U===void 0||U.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){var U,H;(U=this===null||this===void 0?void 0:this.mql)===null||U===void 0||U.removeListener(this.responsiveHandler),(H=this.props)===null||H===void 0||H.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var U=this.state.collapsed,H=this.props.collapsedWidth;return r.createElement(N.Provider,{value:{siderCollapsed:U,collapsedWidth:H}},r.createElement(T.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(U){return"collapsed"in U?{collapsed:U.collapsed}:null}}]),R}(r.Component);k.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var P=function(j){n()(R,j);var K=u()(R);function R(){return h()(this,R),K.apply(this,arguments)}return o()(R,[{key:"render",value:function(){var U=this;return r.createElement(S.a.Consumer,null,function(H){return r.createElement(k,p()({},H,U.props))})}}]),R}(r.Component)},ZYIC:function(D,I,e){var g=e("zM3Q"),f={seriesType:"lines",plan:g(),reset:function(y){var p=y.coordinateSystem,v=y.get("polyline"),h=y.pipelineContext.large;function c(o,i){var n=[];if(h){var a,u=o.end-o.start;if(v){for(var r=0,l=o.start;l>1)%2;m.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",l[w]+":0",t[b]+":0",l[1-w]+":auto",t[1-b]+":auto",""].join("!important;"),a.appendChild(d),r.push(d)}return r}function i(a,u,r){for(var l=r?"invTrans":"trans",t=u[l],s=u.srcCoords,d=!0,m=[],w=[],b=0;b<4;b++){var E=a[b].getBoundingClientRect(),A=2*b,S=E.left,T=E.top;m.push(S,T),d=d&&s&&S===s[A]&&T===s[A+1],w.push(a[b].offsetLeft,a[b].offsetTop)}return d&&t?t:(u.srcCoords=m,u[l]=r?y(w,m):y(m,w))}function n(a){return a.nodeName.toUpperCase()==="CANVAS"}I.transformLocalCoord=h,I.transformCoordWithViewport=c,I.isCanvasEl=n},Znkb:function(D,I,e){var g=e("Tghj"),f=g.__DEV__,y=e("ProS"),p=e("zTMp"),v=y.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(n,a,u,r){this.axisPointerClass&&p.fixValue(n),v.superApply(this,"render",arguments),h(this,n,a,u,r,!0)},updateAxisPointer:function(n,a,u,r,l){h(this,n,a,u,r,!1)},remove:function(n,a){var u=this._axisPointer;u&&u.remove(a),v.superApply(this,"remove",arguments)},dispose:function(n,a){c(this,a),v.superApply(this,"dispose",arguments)}});function h(n,a,u,r,l,t){var s=v.getAxisPointerClass(n.axisPointerClass);if(!s)return;var d=p.getAxisPointerModel(a);d?(n._axisPointer||(n._axisPointer=new s)).render(a,d,r,t):c(n,r)}function c(n,a,u){var r=n._axisPointer;r&&r.dispose(a,u),n._axisPointer=null}var o=[];v.registerAxisPointerClass=function(n,a){o[n]=a},v.getAxisPointerClass=function(n){return n&&o[n]};var i=v;D.exports=i},"Znn+":function(D,I,e){"use strict";var g=e("cIOH"),f=e.n(g),y=e("9ama"),p=e.n(y)},ZqQs:function(D,I,e){var g=e("bYtY");function f(h){var c=h&&h.timeline;g.isArray(c)||(c=c?[c]:[]),g.each(c,function(o){if(!o)return;y(o)})}function y(h){var c=h.type,o={number:"value",time:"time"};if(o[c]&&(h.axisType=o[c],delete h.type),p(h),v(h,"controlPosition")){var i=h.controlStyle||(h.controlStyle={});v(i,"position")||(i.position=h.controlPosition),i.position==="none"&&!v(i,"show")&&(i.show=!1,delete i.position),delete h.controlPosition}g.each(h.data||[],function(n){g.isObject(n)&&!g.isArray(n)&&(!v(n,"value")&&v(n,"name")&&(n.value=n.name),p(n))})}function p(h){var c=h.itemStyle||(h.itemStyle={}),o=c.emphasis||(c.emphasis={}),i=h.label||h.label||{},n=i.normal||(i.normal={}),a={normal:1,emphasis:1};g.each(i,function(u,r){!a[r]&&!v(n,r)&&(n[r]=u)}),o.label&&!v(i,"emphasis")&&(i.emphasis=o.label,delete o.label)}function v(h,c){return h.hasOwnProperty(c)}D.exports=f},Zvw2:function(D,I,e){var g=e("bYtY"),f=e("hM6l"),y=function(v,h,c,o,i){f.call(this,v,h,c),this.type=o||"value",this.position=i||"bottom",this.orient=null};y.prototype={constructor:y,model:null,isHorizontal:function(){var v=this.position;return v==="top"||v==="bottom"},pointToData:function(v,h){return this.coordinateSystem.pointToData(v,h)[0]},toGlobalCoord:null,toLocalCoord:null},g.inherits(y,f);var p=y;D.exports=p},a7Wl:function(D,I,e){"use strict";Object.defineProperty(I,"__esModule",{value:!0});var g={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};I.default=g},a9QJ:function(D,I){var e={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function g(f,y){if(f==="world"){var p=e[y.name];if(p){var v=y.center;v[0]=p[0],v[1]=p[1]}}}D.exports=g},aCH8:function(D,I,e){(function(){var g=e("ANhw"),f=e("mmNF").utf8,y=e("BEtg"),p=e("mmNF").bin,v=function h(c,o){c.constructor==String?o&&o.encoding==="binary"?c=p.stringToBytes(c):c=f.stringToBytes(c):y(c)?c=Array.prototype.slice.call(c,0):!Array.isArray(c)&&c.constructor!==Uint8Array&&(c=c.toString());for(var i=g.bytesToWords(c),n=c.length*8,a=1732584193,u=-271733879,r=-1732584194,l=271733878,t=0;t>>24)&16711935|(i[t]<<24|i[t]>>>8)&4278255360;i[n>>>5]|=128<>>9<<4)+14]=n;for(var s=h._ff,d=h._gg,m=h._hh,w=h._ii,t=0;t>>0,u=u+E>>>0,r=r+A>>>0,l=l+S>>>0}return g.endian([a,u,r,l])};v._ff=function(h,c,o,i,n,a,u){var r=h+(c&o|~c&i)+(n>>>0)+u;return(r<>>32-a)+c},v._gg=function(h,c,o,i,n,a,u){var r=h+(c&i|o&~i)+(n>>>0)+u;return(r<>>32-a)+c},v._hh=function(h,c,o,i,n,a,u){var r=h+(c^o^i)+(n>>>0)+u;return(r<>>32-a)+c},v._ii=function(h,c,o,i,n,a,u){var r=h+(o^(c|~i))+(n>>>0)+u;return(r<>>32-a)+c},v._blocksize=16,v._digestsize=16,D.exports=function(h,c){if(h==null)throw new Error("Illegal argument "+h);var o=g.wordsToBytes(v(h,c));return c&&c.asBytes?o:c&&c.asString?p.bytesToString(o):g.bytesToHex(o)}})()},aHsQ:function(D,I,e){"use strict";var g=e("cIOH"),f=e.n(g),y=e("6D9b"),p=e.n(y)},aKvl:function(D,I,e){var g=e("Sj9i"),f=g.quadraticProjectPoint;function y(p,v,h,c,o,i,n,a,u){if(n===0)return!1;var r=n;if(u>v+r&&u>c+r&&u>i+r||up+r&&a>h+r&&a>o+r||a0&&_>0&&!j&&(C=0),C<0&&_<0&&!K&&(_=0));var R=O.ecModel;if(R&&x==="time"){var B=i("bar",R),U;if(y.each(B,function(V){U|=V.getBaseAxis()===O.axis}),U){var H=n(B),W=l(C,_,O,H);C=W.min,_=W.max}}return{extent:[C,_],fixMin:j,fixMax:K}}function l(T,O,x,C){var _=x.axis.getExtent(),N=_[1]-_[0],F=a(C,x.axis);if(F===void 0)return{min:T,max:O};var k=Infinity;y.each(F,function(U){k=Math.min(U.offset,k)});var P=-Infinity;y.each(F,function(U){P=Math.max(U.offset+U.width,P)}),k=Math.abs(k),P=Math.abs(P);var j=k+P,K=O-T,R=1-(k+P)/N,B=K/R-K;return O+=B*(P/j),T-=B*(k/j),{min:T,max:O}}function t(T,O){var x=r(T,O),C=x.extent,_=O.get("splitNumber");T.type==="log"&&(T.base=O.get("logBase"));var N=T.type;T.setExtent(C[0],C[1]),T.niceExtent({splitNumber:_,fixMin:x.fixMin,fixMax:x.fixMax,minInterval:N==="interval"||N==="time"?O.get("minInterval"):null,maxInterval:N==="interval"||N==="time"?O.get("maxInterval"):null});var F=O.get("interval");F!=null&&(T.setInterval&&T.setInterval(F))}function s(T,O){if(O=O||T.get("type"),O)switch(O){case"category":return new p(T.getOrdinalMeta?T.getOrdinalMeta():T.getCategories(),[Infinity,-Infinity]);case"value":return new v;default:return(h.getClass(O)||v).create(T)}}function d(T){var O=T.scale.getExtent(),x=O[0],C=O[1];return!(x>0&&C>0||x<0&&C<0)}function m(T){var O=T.getLabelModel().get("formatter"),x=T.type==="category"?T.scale.getExtent()[0]:null;return typeof O=="string"?(O=function(C){return function(_){return _=T.scale.getLabel(_),C.replace("{value}",_!=null?_:"")}}(O),O):typeof O=="function"?function(C,_){return x!=null&&(_=C-x),O(w(T,C),_)}:function(C){return T.scale.getLabel(C)}}function w(T,O){return T.type==="category"?T.scale.getLabel(O):O}function b(T){var O=T.model,x=T.scale;if(!O.get("axisLabel.show")||x.isBlank())return;var C=T.type==="category",_,N,F=x.getExtent();C?N=x.count():(_=x.getTicks(),N=_.length);var k=T.getLabelModel(),P=m(T),j,K=1;N>40&&(K=Math.ceil(N/40));for(var R=0;RW.blockIndex,X=z?W.step:null,q=V&&V.modDataCount,fe=q!=null?Math.ceil(q/X):null;return{step:X,modBy:fe,modDataCount:q}},s.getPipeline=function(U){return this._pipelineMap.get(U)},s.updateStreamModes=function(U,H){var W=this._pipelineMap.get(U.uid),V=U.getData(),z=V.count(),X=W.progressiveEnabled&&H.incrementalPrepareRender&&z>=W.threshold,q=U.get("large")&&z>=U.get("largeThreshold"),fe=U.get("progressiveChunkMode")==="mod"?z:null;U.pipelineContext=W.context={progressiveRender:X,modDataCount:fe,large:q}},s.restorePipelines=function(U){var H=this,W=H._pipelineMap=v();U.eachSeries(function(V){var z=V.getProgressive(),X=V.uid;W.set(X,{id:X,head:null,tail:null,threshold:V.getProgressiveThreshold(),progressiveEnabled:z&&!(V.preventIncremental&&V.preventIncremental()),blockIndex:-1,step:Math.round(z||700),count:0}),F(H,V,V.dataTask)})},s.prepareStageTasks=function(){var U=this._stageTaskMap,H=this.ecInstance.getModel(),W=this.api;f(this._allHandlers,function(V){var z=U.get(V.uid)||U.set(V.uid,[]);V.reset&&w(this,V,z,H,W),V.overallReset&&b(this,V,z,H,W)},this)},s.prepareView=function(U,H,W,V){var z=U.renderTask,X=z.context;X.model=H,X.ecModel=W,X.api=V,z.__block=!U.incrementalPrepareRender,F(this,H,z)},s.performDataProcessorTasks=function(U,H){d(this,this._dataProcessorHandlers,U,H,{block:!0})},s.performVisualTasks=function(U,H,W){d(this,this._visualHandlers,U,H,W)};function d(U,H,W,V,z){z=z||{};var X;f(H,function(fe,G){if(z.visualType&&z.visualType!==fe.visualType)return;var ve=U._stageTaskMap.get(fe.uid),Se=ve.seriesTaskMap,ge=ve.overallTask;if(ge){var Pe,Ge=ge.agentStubMap;Ge.each(function(Te){q(z,Te)&&(Te.dirty(),Pe=!0)}),Pe&&ge.dirty(),m(ge,V);var pt=U.getPerformArgs(ge,z.block);Ge.each(function(Te){Te.perform(pt)}),X|=ge.perform(pt)}else Se&&Se.each(function(Te,xe){q(z,Te)&&Te.dirty();var lt=U.getPerformArgs(Te,z.block);lt.skip=!fe.performRawSeries&&W.isSeriesFiltered(Te.context.model),m(Te,V),X|=Te.perform(lt)})});function q(fe,G){return fe.setDirty&&(!fe.dirtyMap||fe.dirtyMap.get(G.__pipeline.id))}U.unfinished|=X}s.performSeriesTasks=function(U){var H;U.eachSeries(function(W){H|=W.dataTask.perform()}),this.unfinished|=H},s.plan=function(){this._pipelineMap.each(function(U){var H=U.tail;do{if(H.__block){U.blockIndex=H.__idxInPipeline;break}H=H.getUpstream()}while(H)})};var m=s.updatePayload=function(U,H){H!=="remain"&&(U.context.payload=H)};function w(U,H,W,V,z){var X=W.seriesTaskMap||(W.seriesTaskMap=v()),q=H.seriesType,fe=H.getTargetSeries;H.createOnAllSeries?V.eachRawSeries(G):q?V.eachRawSeriesByType(q,G):fe&&fe(V,z).each(G);function G(Se){var ge=Se.uid,Pe=X.get(ge)||X.set(ge,o({plan:O,reset:x,count:N}));Pe.context={model:Se,ecModel:V,api:z,useClearVisual:H.isVisual&&!H.isLayout,plan:H.plan,reset:H.reset,scheduler:U},F(U,Se,Pe)}var ve=U._pipelineMap;X.each(function(Se,ge){ve.get(ge)||(Se.dispose(),X.removeKey(ge))})}function b(U,H,W,V,z){var X=W.overallTask=W.overallTask||o({reset:E});X.context={ecModel:V,api:z,overallReset:H.overallReset,scheduler:U};var q=X.agentStubMap=X.agentStubMap||v(),fe=H.seriesType,G=H.getTargetSeries,ve=!0,Se=H.modifyOutputEnd;fe?V.eachRawSeriesByType(fe,ge):G?G(V,z).each(ge):(ve=!1,f(V.getSeries(),ge));function ge(Ge){var pt=Ge.uid,Te=q.get(pt);Te||(Te=q.set(pt,o({reset:A,onDirty:T})),X.dirty()),Te.context={model:Ge,overallProgress:ve,modifyOutputEnd:Se},Te.agent=X,Te.__block=ve,F(U,Ge,Te)}var Pe=U._pipelineMap;q.each(function(Ge,pt){Pe.get(pt)||(Ge.dispose(),X.dirty(),q.removeKey(pt))})}function E(U){U.overallReset(U.ecModel,U.api,U.payload)}function A(U,H){return U.overallProgress&&S}function S(){this.agent.dirty(),this.getDownstream().dirty()}function T(){this.agent&&this.agent.dirty()}function O(U){return U.plan&&U.plan(U.model,U.ecModel,U.api,U.payload)}function x(U){U.useClearVisual&&U.data.clearAllVisual();var H=U.resetDefines=l(U.reset(U.model,U.ecModel,U.api,U.payload));return H.length>1?y(H,function(W,V){return _(V)}):C}var C=_(0);function _(U){return function(H,W){var V=W.data,z=W.resetDefines[U];if(z&&z.dataEach)for(var X=H.start;X=0&&!(a[l]<=i);l--);l=Math.min(l,u-2)}else{for(var l=r;li);l++);l=Math.min(l-1,u-2)}p.lerp(o.position,n[l],n[l+1],(i-a[l])/(a[l+1]-a[l]));var s=n[l+1][0]-n[l][0],d=n[l+1][1]-n[l][1];o.rotation=-Math.atan2(d,s)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=i,o.ignore=!1},f.inherits(v,y);var c=v;D.exports=c},apAg:function(D,I,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var y=f(e("q1tI")),p=g(e("bsht")),v=g(e("KQxl")),h=function(i,n){return y.createElement(v.default,Object.assign({},i,{ref:n,icon:p.default}))};h.displayName="SearchOutlined";var c=y.forwardRef(h);I.default=c},as94:function(D,I,e){var g=e("7aKB"),f=e("3LNs"),y=e("IwbS"),p=e("/y7N"),v=e("Fofx"),h=e("+rIm"),c=e("Znkb"),o=f.extend({makeElOption:function(u,r,l,t,s){var d=l.axis;d.dim==="angle"&&(this.animationThreshold=Math.PI/18);var m=d.polar,w=m.getOtherAxis(d),b=w.getExtent(),E;E=d["dataTo"+g.capitalFirst(d.dim)](r);var A=t.get("type");if(A&&A!=="none"){var S=p.buildElStyle(t),T=n[A](d,m,E,b,S);T.style=S,u.graphicKey=T.type,u.pointer=T}var O=t.get("label.margin"),x=i(r,l,t,m,O);p.buildLabelElOption(u,l,t,s,x)}});function i(u,r,l,t,s){var d=r.axis,m=d.dataToCoord(u),w=t.getAngleAxis().getExtent()[0];w=w/180*Math.PI;var b=t.getRadiusAxis().getExtent(),E,A,S;if(d.dim==="radius"){var T=v.create();v.rotate(T,T,w),v.translate(T,T,[t.cx,t.cy]),E=y.applyTransform([m,-s],T);var O=r.getModel("axisLabel").get("rotate")||0,x=h.innerTextLayout(w,O*Math.PI/180,-1);A=x.textAlign,S=x.textVerticalAlign}else{var C=b[1];E=t.coordToPoint([C+s,m]);var _=t.cx,N=t.cy;A=Math.abs(E[0]-_)/C<.3?"center":E[0]>_?"left":"right",S=Math.abs(E[1]-N)/C<.3?"middle":E[1]>N?"top":"bottom"}return{position:E,align:A,verticalAlign:S}}var n={line:function(u,r,l,t,s){return u.dim==="angle"?{type:"Line",shape:p.makeLineShape(r.coordToPoint([t[0],l]),r.coordToPoint([t[1],l]))}:{type:"Circle",shape:{cx:r.cx,cy:r.cy,r:l}}},shadow:function(u,r,l,t,s){var d=Math.max(1,u.getBandWidth()),m=Math.PI/180;return u.dim==="angle"?{type:"Sector",shape:p.makeSectorShape(r.cx,r.cy,t[0],t[1],(-l-d/2)*m,(-l+d/2)*m)}:{type:"Sector",shape:p.makeSectorShape(r.cx,r.cy,l-d/2,l+d/2,0,Math.PI*2)}}};c.registerAxisPointerClass("PolarAxisPointer",o);var a=o;D.exports=a},b56q:function(D,I,e){},b80T:function(D,I,e){var g=e("UNi/"),f=e("03A+"),y=e("Z0cm"),p=e("DSRE"),v=e("wJg7"),h=e("c6wG"),c=Object.prototype,o=c.hasOwnProperty;function i(n,a){var u=y(n),r=!u&&f(n),l=!u&&!r&&p(n),t=!u&&!r&&!l&&h(n),s=u||r||l||t,d=s?g(n.length,String):[],m=d.length;for(var w in n)(a||o.call(n,w))&&!(s&&(w=="length"||l&&(w=="offset"||w=="parent")||t&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||v(w,m)))&&d.push(w);return d}D.exports=i},b80e:function(D,I,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var y=f(e("q1tI")),p=g(e("gKaM")),v=g(e("KQxl")),h=function(i,n){return y.createElement(v.default,Object.assign({},i,{ref:n,icon:p.default}))};h.displayName="DoubleLeftOutlined";var c=y.forwardRef(h);I.default=c},b9oc:function(D,I,e){var g=e("bYtY"),f=g.each,y="\0_ec_hist_store";function p(i,n){var a=o(i);f(n,function(u,r){for(var l=a.length-1;l>=0;l--){var t=a[l];if(t[r])break}if(l<0){var s=i.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(s){var d=s.getPercentRange();a[0][r]={dataZoomId:r,start:d[0],end:d[1]}}}}),a.push(n)}function v(i){var n=o(i),a=n[n.length-1];n.length>1&&n.pop();var u={};return f(a,function(r,l){for(var t=n.length-1;t>=0;t--){var r=n[t][l];if(r){u[l]=r;break}}}),u}function h(i){i[y]=null}function c(i){return o(i).length}function o(i){var n=i[y];return n||(n=i[y]=[{}]),n}I.push=p,I.pop=v,I.clear=h,I.count=c},bBKM:function(D,I,e){var g=e("Tghj"),f=g.__DEV__,y=e("ProS"),p=e("bYtY"),v=e("+rIm"),h=e("IwbS"),c=["axisLine","axisTickLabel","axisName"],o=y.extendComponentView({type:"radar",render:function(i,n,a){var u=this.group;u.removeAll(),this._buildAxes(i),this._buildSplitLineAndArea(i)},_buildAxes:function(i){var n=i.coordinateSystem,a=n.getIndicatorAxes(),u=p.map(a,function(r){var l=new v(r.model,{position:[n.cx,n.cy],rotation:r.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});p.each(u,function(r){p.each(c,r.add,r),this.group.add(r.getGroup())},this)},_buildSplitLineAndArea:function(i){var n=i.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var u=i.get("shape"),r=i.getModel("splitLine"),l=i.getModel("splitArea"),t=r.getModel("lineStyle"),s=l.getModel("areaStyle"),d=r.get("show"),m=l.get("show"),w=t.get("color"),b=s.get("color");w=p.isArray(w)?w:[w],b=p.isArray(b)?b:[b];var E=[],A=[];function S(B,U,H){var W=H%U.length;return B[W]=B[W]||[],W}if(u==="circle")for(var T=a[0].getTicksCoords(),O=n.cx,x=n.cy,C=0;C1&&arguments[1]!==void 0?arguments[1]:"",K=arguments.length>2?arguments[2]:void 0,R=h()(P),B=x(j,K);return B&&R.push(B),R},_=function(P){var j=P.prefixCls,K=P.separator,R=K===void 0?"/":K,B=P.style,U=P.className,H=P.routes,W=P.children,V=P.itemRender,z=V===void 0?O:V,X=P.params,q=X===void 0?{}:X,fe=S(P,["prefixCls","separator","style","className","routes","children","itemRender","params"]),G=c.useContext(l.b),ve=G.getPrefixCls,Se=G.direction,ge,Pe=ve("breadcrumb",j);if(H&&H.length>0){var Ge=[];ge=H.map(function(Te){var xe=x(Te.path,q);xe&&Ge.push(xe);var lt;return Te.children&&Te.children.length&&(lt=c.createElement(b.a,null,Te.children.map(function(Ie){return c.createElement(b.a.Item,{key:Ie.path||Ie.breadcrumbName},z(Ie,q,H,C(Ge,Ie.path,q)))}))),c.createElement(d,{overlay:lt,separator:R,key:xe||Te.breadcrumbName},z(Te,q,H,Ge))})}else W&&(ge=Object(n.a)(W).map(function(Te,xe){return Te&&(Object(E.a)(Te.type&&(Te.type.__ANT_BREADCRUMB_ITEM===!0||Te.type.__ANT_BREADCRUMB_SEPARATOR===!0),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Object(A.a)(Te,{separator:R,key:xe}))}));var pt=i()(U,Pe,p()({},"".concat(Pe,"-rtl"),Se==="rtl"));return c.createElement("div",f()({className:pt,style:B},fe),ge)};_.Item=d,_.Separator=w;var N=_,F=I.a=N},bKJz:function(D,I,e){},bLfw:function(D,I,e){var g=e("bYtY"),f=e("Qxkt"),y=e("iRjW"),p=e("Yl7c"),v=p.enableClassManagement,h=p.parseClassType,c=e("4NO4"),o=c.makeInner,i=e("+TT/"),n=e("3hzK"),a=o(),u=f.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,s,d,m){f.call(this,t,s,d,m),this.uid=y.getUID("ec_cpt_model")},init:function(t,s,d,m){this.mergeDefaultAndTheme(t,d)},mergeDefaultAndTheme:function(t,s){var d=this.layoutMode,m=d?i.getLayoutParams(t):{},w=s.getTheme();g.merge(t,w.get(this.mainType)),g.merge(t,this.getDefaultOption()),d&&i.mergeLayoutParam(t,m,d)},mergeOption:function(t,s){g.merge(this.option,t,!0);var d=this.layoutMode;d&&i.mergeLayoutParam(this.option,t,d)},optionUpdated:function(t,s){},getDefaultOption:function(){var t=a(this);if(!t.defaultOption){for(var s=[],d=this.constructor;d;){var m=d.prototype.defaultOption;m&&s.push(m),d=d.superClass}for(var w={},b=s.length-1;b>=0;b--)w=g.merge(w,s[b],!0);t.defaultOption=w}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});v(u,{registerWhenExtend:!0}),y.enableSubTypeDefaulter(u),y.enableTopologicalTravel(u,r);function r(t){var s=[];return g.each(u.getClassesByMainType(t),function(d){s=s.concat(d.prototype.dependencies||[])}),s=g.map(s,function(d){return h(d).main}),t!=="dataset"&&g.indexOf(s,"dataset")<=0&&s.unshift("dataset"),s}g.mixin(u,n);var l=u;D.exports=l},bMXI:function(D,I,e){var g=e("bYtY"),f=e("QBsz"),y=e("Fofx"),p=e("mFDi"),v=e("DN4a"),h=f.applyTransform;function c(){v.call(this)}g.mixin(c,v);function o(a){this.name=a,this.zoomLimit,v.call(this),this._roamTransformable=new c,this._rawTransformable=new c,this._center,this._zoom}o.prototype={constructor:o,type:"view",dimensions:["x","y"],setBoundingRect:function(a,u,r,l){return this._rect=new p(a,u,r,l),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(a,u,r,l){this.transformTo(a,u,r,l),this._viewRect=new p(a,u,r,l)},transformTo:function(a,u,r,l){var t=this.getBoundingRect(),s=this._rawTransformable;s.transform=t.calculateTransform(new p(a,u,r,l)),s.decomposeTransform(),this._updateTransform()},setCenter:function(a){if(!a)return;this._center=a,this._updateCenterAndZoom()},setZoom:function(a){a=a||1;var u=this.zoomLimit;u&&(u.max!=null&&(a=Math.min(u.max,a)),u.min!=null&&(a=Math.max(u.min,a))),this._zoom=a,this._updateCenterAndZoom()},getDefaultCenter:function(){var a=this.getBoundingRect(),u=a.x+a.width/2,r=a.y+a.height/2;return[u,r]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var a=this._rawTransformable.getLocalTransform(),u=this._roamTransformable,r=this.getDefaultCenter(),l=this.getCenter(),t=this.getZoom();l=f.applyTransform([],l,a),r=f.applyTransform([],r,a),u.origin=l,u.position=[r[0]-l[0],r[1]-l[1]],u.scale=[t,t],this._updateTransform()},_updateTransform:function(){var a=this._roamTransformable,u=this._rawTransformable;u.parent=a,a.updateTransform(),u.updateTransform(),y.copy(this.transform||(this.transform=[]),u.transform||y.create()),this._rawTransform=u.getLocalTransform(),this.invTransform=this.invTransform||[],y.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var a=this._roamTransformable.transform,u=this._rawTransformable;return{roamTransform:a?g.slice(a):y.create(),rawScale:g.slice(u.scale),rawPosition:g.slice(u.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var a=this.getBoundingRect().clone();return a.applyTransform(this.transform),a},dataToPoint:function(a,u,r){var l=u?this._rawTransform:this.transform;return r=r||[],l?h(r,a,l):f.copy(r,a)},pointToData:function(a){var u=this.invTransform;return u?h([],a,u):[a[0],a[1]]},convertToPixel:g.curry(i,"dataToPoint"),convertFromPixel:g.curry(i,"pointToData"),containPoint:function(a){return this.getViewRectAfterRoam().contain(a[0],a[1])}},g.mixin(o,v);function i(a,u,r,l){var t=r.seriesModel,s=t?t.coordinateSystem:null;return s===this?s[a](l):null}var n=o;D.exports=n},bNin:function(D,I,e){var g=e("bYtY"),f=e("IwbS"),y=e("FBjb"),p=e("Itpr"),v=p.radialCoordinate,h=e("ProS"),c=e("4mN7"),o=e("bMXI"),i=e("Ae+d"),n=e("SgGq"),a=e("xSat"),u=a.onIrrelevantElement,r=e("Tghj"),l=r.__DEV__,t=e("OELB"),s=t.parsePercent,d=f.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(O,x){var C=x.childPoints,_=C.length,N=x.parentPoint,F=C[0],k=C[_-1];if(_===1){O.moveTo(N[0],N[1]),O.lineTo(F[0],F[1]);return}var P=x.orient,j=P==="TB"||P==="BT"?0:1,K=1-j,R=s(x.forkPosition,1),B=[];B[j]=N[j],B[K]=N[K]+(k[K]-N[K])*R,O.moveTo(N[0],N[1]),O.lineTo(B[0],B[1]),O.moveTo(F[0],F[1]),B[j]=F[j],O.lineTo(B[0],B[1]),B[j]=k[j],O.lineTo(B[0],B[1]),O.lineTo(k[0],k[1]);for(var U=1;U<_-1;U++){var H=C[U];O.moveTo(H[0],H[1]),B[j]=H[j],O.lineTo(B[0],B[1])}}}),m=h.extendChartView({type:"tree",init:function(O,x){this._oldTree,this._mainGroup=new f.Group,this._controller=new n(x.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(O,x,C,_){var N=O.getData(),F=O.layoutInfo,k=this._mainGroup,P=O.get("layout");P==="radial"?k.attr("position",[F.x+F.width/2,F.y+F.height/2]):k.attr("position",[F.x,F.y]),this._updateViewCoordSys(O,F,P),this._updateController(O,x,C);var j=this._data,K={expandAndCollapse:O.get("expandAndCollapse"),layout:P,edgeShape:O.get("edgeShape"),edgeForkPosition:O.get("edgeForkPosition"),orient:O.getOrient(),curvature:O.get("lineStyle.curveness"),symbolRotate:O.get("symbolRotate"),symbolOffset:O.get("symbolOffset"),hoverAnimation:O.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};N.diff(j).add(function(R){w(N,R)&&E(N,R,null,k,O,K)}).update(function(R,B){var U=j.getItemGraphicEl(B);if(!w(N,R)){U&&S(j,B,U,k,O,K);return}E(N,R,U,k,O,K)}).remove(function(R){var B=j.getItemGraphicEl(R);B&&S(j,R,B,k,O,K)}).execute(),this._nodeScaleRatio=O.get("nodeScaleRatio"),this._updateNodeAndLinkScale(O),K.expandAndCollapse===!0&&N.eachItemGraphicEl(function(R,B){R.off("click").on("click",function(){C.dispatchAction({type:"treeExpandAndCollapse",seriesId:O.id,dataIndex:B})})}),this._data=N},_updateViewCoordSys:function(O){var x=O.getData(),C=[];x.each(function(j){var K=x.getItemLayout(j);K&&!isNaN(K.x)&&!isNaN(K.y)&&C.push([+K.x,+K.y])});var _=[],N=[];c.fromPoints(C,_,N);var F=this._min,k=this._max;N[0]-_[0]===0&&(_[0]=F?F[0]:_[0]-1,N[0]=k?k[0]:N[0]+1),N[1]-_[1]===0&&(_[1]=F?F[1]:_[1]-1,N[1]=k?k[1]:N[1]+1);var P=O.coordinateSystem=new o;P.zoomLimit=O.get("scaleLimit"),P.setBoundingRect(_[0],_[1],N[0]-_[0],N[1]-_[1]),P.setCenter(O.get("center")),P.setZoom(O.get("zoom")),this.group.attr({position:P.position,scale:P.scale}),this._viewCoordSys=P,this._min=_,this._max=N},_updateController:function(O,x,C){var _=this._controller,N=this._controllerHost,F=this.group;_.setPointerChecker(function(k,P,j){var K=F.getBoundingRect();return K.applyTransform(F.transform),K.contain(P,j)&&!u(k,C,O)}),_.enable(O.get("roam")),N.zoomLimit=O.get("scaleLimit"),N.zoom=O.coordinateSystem.getZoom(),_.off("pan").off("zoom").on("pan",function(k){i.updateViewOnPan(N,k.dx,k.dy),C.dispatchAction({seriesId:O.id,type:"treeRoam",dx:k.dx,dy:k.dy})},this).on("zoom",function(k){i.updateViewOnZoom(N,k.scale,k.originX,k.originY),C.dispatchAction({seriesId:O.id,type:"treeRoam",zoom:k.scale,originX:k.originX,originY:k.originY}),this._updateNodeAndLinkScale(O)},this)},_updateNodeAndLinkScale:function(O){var x=O.getData(),C=this._getNodeGlobalScale(O),_=[C,C];x.eachItemGraphicEl(function(N,F){N.attr("scale",_)})},_getNodeGlobalScale:function(O){var x=O.coordinateSystem;if(x.type!=="view")return 1;var C=this._nodeScaleRatio,_=x.scale,N=_&&_[0]||1,F=x.getZoom(),k=(F-1)*C+1;return k/N},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function w(O,x){var C=O.getItemLayout(x);return C&&!isNaN(C.x)&&!isNaN(C.y)&&O.getItemVisual(x,"symbol")!=="none"}function b(O,x,C){return C.itemModel=x,C.itemStyle=x.getModel("itemStyle").getItemStyle(),C.hoverItemStyle=x.getModel("emphasis.itemStyle").getItemStyle(),C.lineStyle=x.getModel("lineStyle").getLineStyle(),C.labelModel=x.getModel("label"),C.hoverLabelModel=x.getModel("emphasis.label"),O.isExpand===!1&&O.children.length!==0?C.symbolInnerColor=C.itemStyle.fill:C.symbolInnerColor="#fff",C}function E(O,x,C,_,N,F){var k=!C,P=O.tree.getNodeByDataIndex(x),j=P.getModel(),F=b(P,j,F),K=O.tree.root,R=P.parentNode===K?P:P.parentNode||P,B=O.getItemGraphicEl(R.dataIndex),U=R.getLayout(),H=B?{x:B.position[0],y:B.position[1],rawX:B.__radialOldRawX,rawY:B.__radialOldRawY}:U,W=P.getLayout();k?(C=new y(O,x,F),C.attr("position",[H.x,H.y])):C.updateData(O,x,F),C.__radialOldRawX=C.__radialRawX,C.__radialOldRawY=C.__radialRawY,C.__radialRawX=W.rawX,C.__radialRawY=W.rawY,_.add(C),O.setItemGraphicEl(x,C),f.updateProps(C,{position:[W.x,W.y]},N);var V=C.getSymbolPath();if(F.layout==="radial"){var z=K.children[0],X=z.getLayout(),q=z.children.length,fe,G;if(W.x===X.x&&P.isExpand===!0){var ve={};ve.x=(z.children[0].getLayout().x+z.children[q-1].getLayout().x)/2,ve.y=(z.children[0].getLayout().y+z.children[q-1].getLayout().y)/2,fe=Math.atan2(ve.y-X.y,ve.x-X.x),fe<0&&(fe=Math.PI*2+fe),G=ve.xX.x,G||(fe=fe-Math.PI));var Se=G?"left":"right",ge=F.labelModel.get("rotate"),Pe=ge*(Math.PI/180);V.setStyle({textPosition:F.labelModel.get("position")||Se,textRotation:ge==null?-fe:Pe,textOrigin:"center",verticalAlign:"middle"})}A(N,P,K,C,H,U,W,_,F)}function A(O,x,C,_,N,F,k,P,j){var K=j.edgeShape,R=_.__edge;if(K==="curve")x.parentNode&&x.parentNode!==C&&(R||(R=_.__edge=new f.BezierCurve({shape:T(j,N,N),style:g.defaults({opacity:0,strokeNoScale:!0},j.lineStyle)})),f.updateProps(R,{shape:T(j,F,k),style:{opacity:1}},O));else if(K==="polyline"&&(j.layout==="orthogonal"&&(x!==C&&x.children&&x.children.length!==0&&x.isExpand===!0))){for(var B=x.children,U=[],H=0;H