(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+6XX":function(D,_,e){var g=e("y1pI");function f(y){return g(this.__data__,y)>-1}D.exports=f},"+BJd":function(D,_,e){"use strict";var g=e("cIOH"),f=e.n(g),y=e("6MrE"),m=e.n(y)},"+QRC":function(D,_,e){"use strict";var g=e("E9nw"),f={"text/plain":"Text","text/html":"Url",default:"Text"},y="Copy to clipboard: #{key}, Enter";function m(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 a,i,r,o,d,n,l=!1;c||(c={}),a=c.debug||!1;try{r=g(),o=document.createRange(),d=document.getSelection(),n=document.createElement("span"),n.textContent=h,n.style.all="unset",n.style.position="fixed",n.style.top=0,n.style.clip="rect(0, 0, 0, 0)",n.style.whiteSpace="pre",n.style.webkitUserSelect="text",n.style.MozUserSelect="text",n.style.msUserSelect="text",n.style.userSelect="text",n.addEventListener("copy",function(s){if(s.stopPropagation(),c.format)if(s.preventDefault(),typeof s.clipboardData=="undefined"){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var u=f[c.format]||f.default;window.clipboardData.setData(u,h)}else s.clipboardData.clearData(),s.clipboardData.setData(c.format,h);c.onCopy&&(s.preventDefault(),c.onCopy(s.clipboardData))}),document.body.appendChild(n),o.selectNodeContents(n),d.addRange(o);var t=document.execCommand("copy");if(!t)throw new Error("copy command was unsuccessful");l=!0}catch(s){a&&console.error("unable to copy using execCommand: ",s),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(c.format||"text",h),c.onCopy&&c.onCopy(window.clipboardData),l=!0}catch(u){a&&console.error("unable to copy using clipboardData: ",u),a&&console.error("falling back to prompt"),i=m("message"in c?c.message:y),window.prompt(i,h)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(o):d.removeAllRanges()),n&&document.body.removeChild(n),r()}return l}D.exports=v},"+TT/":function(D,_,e){var g=e("bYtY"),f=e("mFDi"),y=e("OELB"),m=y.parsePercent,v=e("7aKB"),h=g.each,c=["left","right","top","bottom","width","height"],a=[["width","left","right"],["height","top","bottom"]];function i(b,E,A,S,T){var L=0,x=0;S==null&&(S=Infinity),T==null&&(T=Infinity);var C=0;E.eachChild(function(O,N){var F=O.position,k=O.getBoundingRect(),P=E.childAt(N+1),B=P&&P.getBoundingRect(),z,R;if(b==="horizontal"){var U=k.width+(B?-B.x+k.x:0);z=L+U,z>S||O.newline?(L=0,z=U,x+=C+A,C=k.height):C=Math.max(C,k.height)}else{var j=k.height+(B?-B.y+k.y:0);R=x+j,R>T||O.newline?(L+=C+A,x=0,R=j,C=k.width):C=Math.max(C,k.width)}if(O.newline)return;F[0]=L,F[1]=x,b==="horizontal"?L=z+A:x=R+A})}var r=i,o=g.curry(i,"vertical"),d=g.curry(i,"horizontal");function n(b,E,A){var S=E.width,T=E.height,L=m(b.x,S),x=m(b.y,T),C=m(b.x2,S),O=m(b.y2,T);return(isNaN(L)||isNaN(parseFloat(b.x)))&&(L=0),(isNaN(C)||isNaN(parseFloat(b.x2)))&&(C=S),(isNaN(x)||isNaN(parseFloat(b.y)))&&(x=0),(isNaN(O)||isNaN(parseFloat(b.y2)))&&(O=T),A=v.normalizeCssArray(A||0),{width:Math.max(C-L-A[1]-A[3],0),height:Math.max(O-x-A[0]-A[2],0)}}function l(b,E,A){A=v.normalizeCssArray(A||0);var S=E.width,T=E.height,L=m(b.left,S),x=m(b.top,T),C=m(b.right,S),O=m(b.bottom,T),N=m(b.width,S),F=m(b.height,T),k=A[2]+A[0],P=A[1]+A[3],B=b.aspect;isNaN(N)&&(N=S-C-P-L),isNaN(F)&&(F=T-O-k-x),B!=null&&(isNaN(N)&&isNaN(F)&&(B>S/T?N=S*.8:F=T*.8),isNaN(N)&&(N=B*F),isNaN(F)&&(F=N/B)),isNaN(L)&&(L=S-C-N-P),isNaN(x)&&(x=T-O-F-k);switch(b.left||b.right){case"center":L=S/2-N/2-A[3];break;case"right":L=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}L=L||0,x=x||0,isNaN(N)&&(N=S-P-L-(C||0)),isNaN(F)&&(F=T-k-x-(O||0));var z=new f(L+A[3],x+A[0],N,F);return z.margin=A,z}function t(b,E,A,S,T){var L=!T||!T.hv||T.hv[0],x=!T||!T.hv||T.hv[1],C=T&&T.boundingMode||"all";if(!L&&!x)return;var O;if(C==="raw")O=b.type==="group"?new f(0,0,+E.width||0,+E.height||0):b.getBoundingRect();else if(O=b.getBoundingRect(),b.needLocalTransform()){var N=b.getLocalTransform();O=O.clone(),O.applyTransform(N)}E=l(g.defaults({width:O.width,height:O.height},E),A,S);var F=b.position,k=L?E.x-O.x:0,P=x?E.y-O.y:0;b.attr("position",C==="raw"?[k,P]:[F[0]+k,F[1]+P])}function s(b,E){return b[a[E][0]]!=null||b[a[E][1]]!=null&&b[a[E][2]]!=null}function u(b,E,A){!g.isObject(A)&&(A={});var S=A.ignoreSize;!g.isArray(S)&&(S=[S,S]);var T=x(a[0],0),L=x(a[1],1);N(a[0],b,T),N(a[1],b,L);function x(F,k){var P={},B=0,z={},R=0,U=2;if(h(F,function(V){z[V]=b[V]}),h(F,function(V){C(E,V)&&(P[V]=z[V]=E[V]),O(P,V)&&B++,O(z,V)&&R++}),S[k])return O(E,F[1])?z[F[2]]=null:O(E,F[2])&&(z[F[1]]=null),z;if(R===U||!B)return z;if(B>=U)return P;for(var j=0;j2&&arguments[2]!==void 0?arguments[2]:"0",nr=String(rt);nr.length=12,Rn%=12);var Di=a.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(j.a)(Di,2),xi=yi[0],Li=yi[1],Un=a.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":Ge(hi,2);return Object(U.a)(Object(U.a)({},mi),{},{label:qi,value:hi})}):ri},[Zr,ri]),Ri=tt(0,59,sr,rn&&rn(Rn)),fa=tt(0,59,Mr,fn&&fn(Rn,En));nr.current={onUpDown:function(hi){var qi=Sn[Or];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 Re(rt,jt,Jt){var nr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(jt){case"year":return Jt.addYear(rt,nr*10);case"quarter":case"month":return Jt.addYear(rt,nr);default:return Jt.addMonth(rt,nr)}}var He=a.createContext({}),ze=He;function Ye(rt){var jt=rt.cellPrefixCls,Jt=rt.generateConfig,nr=rt.rangedValue,Or=rt.hoverRangedValue,wr=rt.isInView,Er=rt.isSameCell,zr=rt.offsetCell,Jr=rt.today,Zr=rt.value;function an(St){var Vt,sr=zr(St,-1),br=zr(St,1),Mr=Dt(nr,0),Dr=Dt(nr,1),rn=Dt(Or,0),fn=Dt(Or,1),wn=me(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"),me(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)||me(Jt,rn,fn,sr))),Object(R.a)(Vt,"".concat(jt,"-range-end-near-hover"),Sn(St)&&(Er(br,fn)||me(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 Pe(rt){for(var jt=rt.prefixCls,Jt=rt.disabledDate,nr=rt.onSelect,Or=rt.rowNum,wr=rt.colNum,Er=rt.prefixColumn,zr=rt.rowClassName,Jr=rt.baseDate,Zr=rt.getCellClassName,an=rt.getCellText,St=rt.getCellNode,Vt=rt.getCellDate,sr=rt.titleCell,br=rt.headerCells,Mr=a.useContext(G),Dr=Mr.onDateMouseEnter,rn=Mr.onDateMouseLeave,fn="".concat(jt,"-cell"),wn=[],Hn=0;Hn2&&arguments[2]!==void 0?arguments[2]:!1;(ba===Mr||oo)&&(la(pi),Mn&&Mn(pi),Ea&&Ea(pi,Gi),vn&&!ve(zr,pi,ca)&&vn(pi))},So=function(pi){return Vi.current&&Vi.current.onKeyDown?([X.a.LEFT,X.a.RIGHT,X.a.UP,X.a.DOWN,X.a.PAGE_UP,X.a.PAGE_DOWN,X.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()}}),a.useEffect(function(){Jr&&!Xi.current&&ra(Jr)},[Jr]),a.useEffect(function(){Xi.current=!1},[]);var ja,qa=Object(U.a)(Object(U.a)({},rt),{},{operationRef:Vi,prefixCls:nr,viewDate:Ma,value:ca,onViewDateChange:Yi,sourceMode:Ya,onPanelChange:pa,disabledDate:ba!=="decade"?Vt:void 0});delete qa.onChange,delete qa.onSelect;switch(ba){case"decade":ja=a.createElement(un,Object.assign({},qa,{onSelect:function(pi,Gi){Yi(pi),Oi(pi,Gi)}}));break;case"year":ja=a.createElement(qr,Object.assign({},qa,{onSelect:function(pi,Gi){Yi(pi),Oi(pi,Gi)}}));break;case"month":ja=a.createElement(er,Object.assign({},qa,{onSelect:function(pi,Gi){Yi(pi),Oi(pi,Gi)}}));break;case"quarter":ja=a.createElement(Ht,Object.assign({},qa,{onSelect:function(pi,Gi){Yi(pi),Oi(pi,Gi)}}));break;case"week":ja=a.createElement(Wt,Object.assign({},qa,{onSelect:function(pi,Gi){Yi(pi),Oi(pi,Gi)}}));break;case"time":delete qa.showTime,ja=a.createElement(it,Object.assign({},qa,Object(V.a)(wn)==="object"?wn:null,{onSelect:function(pi,Gi){Yi(pi),Oi(pi,Gi)}}));break;default:wn?ja=a.createElement($e,Object.assign({},qa,{onSelect:function(pi,Gi){Yi(pi),Oi(pi,Gi)}})):ja=a.createElement(ne,Object.assign({},qa,{onSelect:function(pi,Gi){Yi(pi),Oi(pi,Gi)}}))}var ho,Ca,to=function(){var pi=zr.getNow(),Gi=Xe(zr.getHour(pi),zr.getMinute(pi),zr.getSecond(pi),Ui?yi:1,Mi?Li:1,mi?Ri:1),oo=At(zr,pi,Gi[0],Gi[1],Gi[2]);Oi(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&&(Oi(ca,"submit",!0),Xn&&Xn(ca))}}));var Lo;if(Hn&&ba==="date"&&Mr==="date"&&!wn){var Ia=zr.getNow(),Fi="".concat(nr,"-today-btn"),Ja=Vt&&Vt(Ia);Lo=a.createElement("a",{className:T()(Fi,Ja&&"".concat(Fi,"-disabled")),"aria-disabled":Ja,onClick:function(){Ja||Oi(Ia,"mouse",!0)}},Er.today)}return a.createElement(G.Provider,{value:Object(U.a)(Object(U.a)({},hi),{},{hideHeader:"hideHeader"in rt?bn:hi.hideHeader,hidePrevBtn:Ni&&$n==="right",hideNextBtn:Ni&&$n==="left"})},a.createElement("div",{tabIndex:rn,className:T()("".concat(nr,"-panel"),Or,(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"),Ii&&Ii[0]&&Ii[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||Lo?a.createElement("div",{className:"".concat(nr,"-footer")},ho,Ca,Lo):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(rt){var jt,Jt=rt.prefixCls,nr=rt.popupElement,Or=rt.popupStyle,wr=rt.visible,Er=rt.dropdownClassName,zr=rt.dropdownAlign,Jr=rt.transitionName,Zr=rt.getPopupContainer,an=rt.children,St=rt.range,Vt=rt.popupPlacement,sr=rt.direction,br="".concat(Jt,"-dropdown"),Mr=function(){return Vt!==void 0?Vt:sr==="rtl"?"bottomRight":"bottomLeft"};return a.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:Or,getPopupContainer:Zr},an)}var Yn=qn;function Vn(rt){var jt=rt.open,Jt=rt.value,nr=rt.isClickOutside,Or=rt.triggerOpen,wr=rt.forwardKeyDown,Er=rt.blurToCancel,zr=rt.onSubmit,Jr=rt.onCancel,Zr=rt.onFocus,an=rt.onBlur,St=Object(a.useState)(!1),Vt=Object(j.a)(St,2),sr=Vt[0],br=Vt[1],Mr=Object(a.useState)(!1),Dr=Object(j.a)(Mr,2),rn=Dr[0],fn=Dr[1],wn=Object(a.useRef)(!1),Hn=Object(a.useRef)(!1),Sn={onMouseDown:function(){br(!0),Or(!0)},onKeyDown:function(Mn){switch(Mn.which){case X.a.ENTER:{jt?zr()!==!1&&br(!0):Or(!0),Mn.preventDefault();return}case X.a.TAB:{sr&&jt&&!Mn.shiftKey?(br(!1),Mn.preventDefault()):!sr&&jt&&(!wr(Mn)&&Mn.shiftKey&&(br(!0),Mn.preventDefault()));return}case X.a.ESC:{br(!0),Jr();return}}!jt&&![X.a.SHIFT].includes(Mn.which)?Or(!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&&(Or(!1),Hn.current&&zr()),fn(!1),an&&an(Mn)}};return Object(a.useEffect)(function(){Hn.current=!1},[jt]),Object(a.useEffect)(function(){Hn.current=!0},[Jt]),Object(a.useEffect)(function(){return K(function(bn){var Mn=bn.target;jt&&(nr(Mn)?rn||Or(!1):(wn.current=!0,requestAnimationFrame(function(){wn.current=!1})))})}),[Sn,{focused:rn,typing:sr}]}function An(rt){var jt=rt.valueTexts,Jt=rt.onTextChange,nr=a.useState(""),Or=Object(j.a)(nr,2),wr=Or[0],Er=Or[1],zr=a.useRef([]);zr.current=jt;function Jr(an){Er(an),Jt(an)}function Zr(){Er(zr.current[0])}return a.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(rt,jt){var Jt=jt.formatList,nr=jt.generateConfig,Or=jt.locale;return Object(Ae.a)(function(){if(!rt)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=a.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&&Ee&&Ee[0]&&Ee[1]&&br.isAfter(Ee[1],Ee[0])&&(Bi=Ee);var Wn=bn;if(bn&&Object(V.a)(bn)==="object"&&bn.defaultValue){var io=bn.defaultValue;Wn=Object(U.a)(Object(U.a)({},bn),{},{defaultValue:Dt(io,vi)||void 0})}var qo=null;return xi&&(qo=function(os,Zo){return xi(os,Zo,{range:vi?"end":"start"})}),a.createElement(ze.Provider,{value:{inRange:!0,panelPosition:ua,rangedValue:Vs||Fi,hoverRangedValue:Bi}},a.createElement(gn,Object.assign({},rt,ui,{dateRender:qo,showTime:Wn,mode:Gi[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:Dt(Fi,vi),locale:Mr,tabIndex:-1,onPanelChange:function(os,Zo){go(Ke(Gi,Zo,vi),Ke(Fi,os,vi));var $o=os;ua==="right"&&Gi[vi]===Zo&&($o=Re($o,Zo,br,-1)),to($o,vi)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Yo=0,Eo=0;vi&&ra.current&&Xa.current&&Ma.current&&(Yo=ra.current.offsetWidth+Xa.current.offsetWidth,Ma.current.offsetWidth&&Yo>Ma.current.offsetWidth&&(Eo=Yo));var ds=Xi==="rtl"?{right:Yo}:{left:Yo};function hs(){var ua,ui=Nn(wr,Gi[vi],va),Bi=jr({prefixCls:wr,components:Ii,needConfirmButton:la,okDisabled:!Dt(Fi,vi)||Di&&Di(Fi[vi]),locale:Mr,rangeList:Xs,onOk:function(){Dt(Fi,vi)&&(Za(Fi,vi),Ai&&Ai(Fi))}});if(Sn!=="time"&&!bn){var Wn=Ca(vi),io=Re(Wn,Sn,br),qo=Gi[vi],gs=qo===Sn,os=Ys(gs?"left":!1,{pickerValue:Wn,onPickerValueChange:function(Ho){to(Ho,vi)}}),Zo=Ys("right",{pickerValue:io,onPickerValueChange:function(Ho){to(Re(Ho,Sn,br,-1),vi)}});Xi==="rtl"?ua=a.createElement(a.Fragment,null,Zo,gs&&os):ua=a.createElement(a.Fragment,null,os,gs&&Zo)}else ua=Ys();var $o=a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(wr,"-panels")},ua),(ui||Bi)&&a.createElement("div",{className:"".concat(wr,"-footer")},ui,Bi));return Li&&($o=Li($o)),a.createElement("div",{className:"".concat(wr,"-panel-container"),style:{marginLeft:Eo},ref:Ma,onMouseDown:function(Ho){Ho.preventDefault()}},$o)}var Rs=a.createElement("div",{className:T()("".concat(wr,"-range-wrapper"),"".concat(wr,"-").concat(Sn,"-range-wrapper")),style:{minWidth:_s}},a.createElement("div",{className:"".concat(wr,"-range-arrow"),style:ds}),hs()),Do;Ui&&(Do=a.createElement("span",{className:"".concat(wr,"-suffix")},Ui));var ys;fa&&(Dt(za,0)&&!pa[0]||Dt(za,1)&&!pa[1])&&(ys=a.createElement("span",{onMouseDown:function(ui){ui.preventDefault(),ui.stopPropagation()},onMouseUp:function(ui){ui.preventDefault(),ui.stopPropagation();var Bi=za;pa[0]||(Bi=Ke(Bi,null,0)),pa[1]||(Bi=Ke(Bi,null,1)),Za(Bi,null),Go(!1,vi)},className:"".concat(wr,"-clear")},Mi||a.createElement("span",{className:"".concat(wr,"-clear-btn")})));var Ms={size:lt(Sn,ba[0])},As=0,Fs=0;ra.current&&Yi.current&&Xa.current&&(vi===0?Fs=ra.current.offsetWidth:(As=Yo,Fs=Yi.current.offsetWidth));var Hs=Xi==="rtl"?{right:As}:{left:As},bs=function(ui,Bi){var Wn=Ke(Fi,ui,vi);Bi==="submit"||Bi!=="key"&&!la?Za(Wn,vi):Ja(Wn)};return a.createElement(G.Provider,{value:{operationRef:Ka,hideHeader:Sn==="time",onDateMouseEnter:Qn,onDateMouseLeave:ti,hideRanges:!0,onSelect:bs,open:vo}},a.createElement(Yn,{visible:vo,popupElement:Rs,popupStyle:Zr,prefixCls:wr,dropdownClassName:an,dropdownAlign:Vt,getPopupContainer:sr,transitionName:St,range:!0,direction:Xi},a.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(rt)),a.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},a.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:Dt(Dr,0)||"",ref:Ki},Sa,Ms,{autoComplete:ca}))),a.createElement("div",{className:"".concat(wr,"-range-separator"),ref:Xa},Rn),a.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:Yi},a.createElement("input",Object.assign({disabled:pa[1],readOnly:hi||!jo,value:ln||as,onChange:function(ui){$s(ui.target.value)},placeholder:Dt(Dr,1)||"",ref:zi},Fo,Ms,{autoComplete:ca}))),a.createElement("div",{className:"".concat(wr,"-active-bar"),style:Object(U.a)(Object(U.a)({},Hs),{},{width:Fs,position:"absolute"})}),Do,ys)))}var di=function(rt){Object(B.a)(Jt,rt);var jt=Object(z.a)(Jt);function Jt(){var nr;return Object(k.a)(this,Jt),nr=jt.apply(this,arguments),nr.pickerRef=a.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 a.createElement(ni,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Jt}(a.Component),Na=di,Qi=Gn,ma=e("61s2");function Ba(rt,jt,Jt){return Jt!==void 0?Jt:rt==="year"&&jt.lang.yearPlaceholder?jt.lang.yearPlaceholder:rt==="quarter"&&jt.lang.quarterPlaceholder?jt.lang.quarterPlaceholder:rt==="month"&&jt.lang.monthPlaceholder?jt.lang.monthPlaceholder:rt==="week"&&jt.lang.weekPlaceholder?jt.lang.weekPlaceholder:rt==="time"&&jt.timePickerLocale.placeholder?jt.timePickerLocale.placeholder:jt.lang.placeholder}function Qa(rt,jt,Jt){return Jt!==void 0?Jt:rt==="year"&&jt.lang.yearPlaceholder?jt.lang.rangeYearPlaceholder:rt==="month"&&jt.lang.monthPlaceholder?jt.lang.rangeMonthPlaceholder:rt==="week"&&jt.lang.weekPlaceholder?jt.lang.rangeWeekPlaceholder:rt==="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(rt,jt){var Jt={};for(var nr in rt)Object.prototype.hasOwnProperty.call(rt,nr)&&jt.indexOf(nr)<0&&(Jt[nr]=rt[nr]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Or=0,nr=Object.getOwnPropertySymbols(rt);OrXe.length)&&(et=Xe.length);for(var tt=0,ot=new Array(et);ttbt&&(we="bottom")}}Pe!==null&&Pe!==Xe.current.scrollTop&&re(Pe)}it.current=Object(r.a)(function(){Bt&&se(),ct(yt-1,we)})};dt(3)}}}function $(Xe,et,tt,ot){var Ve=tt-Xe,se=et-tt,re=Math.min(Ve,se)*2;if(ot<=re){var it=Math.floor(ot/2);return ot%2?tt+it+1:tt-it}return Ve>se?tt-(ot-se):tt+(ot-Ve)}function ge(Xe,et,tt){var ot=Xe.length,Ve=et.length,se,re;if(ot===0&&Ve===0)return null;otXe.length)&&(et=Xe.length);for(var tt=0,ot=new Array(et);ttXe.length)&&(et=Xe.length);for(var tt=0,ot=new Array(et);tt=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Xe,ot))continue;tt[ot]=Xe[ot]}}return tt}function Ge(Xe,et){if(Xe==null)return{};var tt={},ot=Object.keys(Xe),Ve,se;for(se=0;se=0)continue;tt[Ve]=Xe[Ve]}return tt}var ht=[],Et={overflowY:"auto",overflowAnchor:"none"};function Be(Xe,et){var tt=Xe.prefixCls,ot=tt===void 0?"rc-virtual-list":tt,Ve=Xe.className,se=Xe.height,re=Xe.itemHeight,it=Xe.fullHeight,qe=it===void 0?!0:it,be=Xe.style,Zt=Xe.data,dt=Xe.children,ct=Xe.itemKey,yt=Xe.virtual,_t=Xe.component,or=_t===void 0?"div":_t,Bt=Xe.onScroll,we=Le(Xe,["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll"]),ve=yt!==!1&&se&&re&&Zt&&re*Zt.length>se,me=g.useState(0),he=ye(me,2),Re=he[0],He=he[1],ze=g.useState(!1),Ye=ye(ze,2),Pe=Ye[0],nt=Ye[1],bt=y()(ot,Ve),Ot=Zt||ht,ae=Object(g.useRef)(),pe=g.useCallback(function(Ar){return typeof ct=="function"?ct(Ar):Ar[ct]},[ct]),J={getKey:pe};function ne(Ar){He(function(Nr){var Fr;return typeof Ar=="function"?Fr=Ar(Nr):Fr=Ar,ae.current.scrollTop=Fr,Fr})}var xe=Object(g.useRef)({start:0,end:Ot.length}),De=Object(g.useRef)(),Fe=gt(Ot,pe),$e=ye(Fe,1),vt=$e[0];De.current=vt;var Wt=V(pe,null,null),$t=ye(Wt,4),Rt=$t[0],Kt=$t[1],Gt=$t[2],Qt=$t[3],Mt=g.useMemo(function(){if(!ve)return{scrollHeight:void 0,start:0,end:Ot.length-1,offset:void 0};for(var Ar=0,Nr,Fr,tn,qr=Ot.length,Lr=0;Lr=Re&&Nr===void 0&&(Nr=Lr,Fr=Ar),pr>Re+se&&tn===void 0&&(tn=Lr),Ar=pr}return Nr===void 0&&(Nr=0,Fr=0),tn===void 0&&(tn=Ot.length-1),tn=Math.min(tn+1,Ot.length),{scrollHeight:Ar,start:Nr,end:tn,offset:Fr}},[ve,Re,Ot,Qt,se]),dr=Mt.scrollHeight,er=Mt.start,st=Mt.end,xt=Mt.offset;xe.current.start=er,xe.current.end=st;var ut=X(dr,se);function pt(Ar){var Nr=ut(Ar);Nr!==Re&&ne(Nr)}function It(Ar){var Nr=Ar.currentTarget.scrollTop;Nr!==Re&&ne(Nr),Bt==null||Bt(Ar)}var Tt=ce(ve,function(Ar){ne(function(Nr){var Fr=ut(Nr+Ar);return Fr})}),ft=ye(Tt,2),Ht=ft[0],Ft=ft[1];g.useEffect(function(){return ae.current.addEventListener("wheel",Ht),ae.current.addEventListener("DOMMouseScroll",Ft),function(){ae.current.removeEventListener("wheel",Ht),ae.current.removeEventListener("DOMMouseScroll",Ft)}},[ve]);var ir=G(ae,Ot,Gt,re,pe,Kt,ne);g.useImperativeHandle(et,function(){return{scrollTo:ir}});var Xt=x(Ot,er,st,Rt,dt,J),mr=null;return se&&(mr=K(Q({},qe?"height":"maxHeight",se),Et),ve&&(mr.overflowY="hidden",Pe&&(mr.pointerEvents="none"))),g.createElement("div",Object.assign({style:K(K({},be),{},{position:"relative"}),className:bt},we),g.createElement(or,{className:"".concat(ot,"-holder"),style:mr,ref:ae,onScroll:It},g.createElement(i,{prefixCls:ot,height:dr,offset:xt,onInnerResize:Kt},Xt)),ve&&g.createElement(T,{prefixCls:ot,scrollTop:Re,height:se,scrollHeight:dr,count:Ot.length,onScroll:pt,onStartMove:function(){nt(!0)},onStopMove:function(){nt(!1)}}))}var Dt=g.forwardRef(Be);Dt.displayName="List";var Ke=Dt,At=_.a=Ke},"+rIm":function(D,_,e){var g=e("bYtY"),f=g.retrieve,y=g.defaults,m=g.extend,v=g.each,h=e("7aKB"),c=e("IwbS"),a=e("Qxkt"),i=e("OELB"),r=i.isRadianAroundZero,o=i.remRadian,d=e("oVpE"),n=d.createSymbol,l=e("Fofx"),t=e("QBsz"),s=t.applyTransform,u=e("aX7z"),p=u.shouldShowAllLabels,w=Math.PI,b=function(R,U){this.opt=U,this.axisModel=R,y(U,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new c.Group;var j=new c.Group({position:U.position.slice(),rotation:U.rotation});j.updateTransform(),this._transform=j.transform,this._dumbGroup=j};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,U=this.axisModel;if(!U.get("axisLine.show"))return;var j=this.axisModel.axis.getExtent(),H=this._transform,V=[j[0],0],X=[j[1],0];H&&(s(V,V,H),s(X,X,H));var W=m({lineCap:"round"},U.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new c.Line({anid:"line",subPixelOptimize:!0,shape:{x1:V[0],y1:V[1],x2:X[0],y2:X[1]},style:W,strokeContainThreshold:R.strokeContainThreshold||5,silent:!0,z2:1}));var G=U.get("axisLine.symbol"),$=U.get("axisLine.symbolSize"),ge=U.get("axisLine.symbolOffset")||0;if(typeof ge=="number"&&(ge=[ge,ge]),G!=null){typeof G=="string"&&(G=[G,G]),(typeof $=="string"||typeof $=="number")&&($=[$,$]);var q=$[0],Se=$[1];v([{rotate:R.rotation+Math.PI/2,offset:ge[0],r:0},{rotate:R.rotation-Math.PI/2,offset:ge[1],r:Math.sqrt((V[0]-X[0])*(V[0]-X[0])+(V[1]-X[1])*(V[1]-X[1]))}],function(Ce,Ae){if(G[Ae]!=="none"&&G[Ae]!=null){var Ue=n(G[Ae],-q/2,-Se/2,q,Se,W.stroke,!0),Qe=Ce.r+Ce.offset,gt=[V[0]+Qe*Math.cos(R.rotation),V[1]-Qe*Math.sin(R.rotation)];Ue.attr({rotation:Ce.rotate,position:gt,silent:!0,z2:11}),this.group.add(Ue)}},this)}},axisTickLabel:function(){var R=this.axisModel,U=this.opt,j=k(this,R,U),H=B(this,R,U);x(R,H,j),P(this,R,U)},axisName:function(){var R=this.opt,U=this.axisModel,j=f(R.axisName,U.get("name"));if(!j)return;var H=U.get("nameLocation"),V=R.nameDirection,X=U.getModel("nameTextStyle"),W=U.get("nameGap")||0,G=this.axisModel.axis.getExtent(),$=G[0]>G[1]?-1:1,ge=[H==="start"?G[0]-$*W:H==="end"?G[1]+$*W:(G[0]+G[1])/2,N(H)?R.labelOffset+V*W:0],q,Se=U.get("nameRotate");Se!=null&&(Se=Se*w/180);var Ce;N(H)?q=S(R.rotation,Se!=null?Se:R.rotation,V):(q=T(R,H,Se||0,G),Ce=R.axisNameAvailableWidth,Ce!=null&&(Ce=Math.abs(Ce/Math.sin(q.rotation)),!isFinite(Ce)&&(Ce=null)));var Ae=X.getFont(),Ue=U.get("nameTruncate",!0)||{},Qe=Ue.ellipsis,gt=f(R.nameTruncateMaxWidth,Ue.maxWidth,Ce),_e=Qe!=null&>!=null?h.truncateText(j,gt,Ae,Qe,{minChar:2,placeholder:Ue.placeholder}):j,Oe=U.get("tooltip",!0),lt=U.mainType,ce={componentType:lt,name:j,$vars:["name"]};ce[lt+"Index"]=U.componentIndex;var Y=new c.Text({anid:"name",__fullText:j,__truncatedText:_e,position:ge,rotation:q.rotation,silent:L(U),z2:1,tooltip:Oe&&Oe.show?m({content:j,formatter:function(){return j},formatterParams:ce},Oe):null});c.setTextStyle(Y.style,X,{text:_e,textFont:Ae,textFill:X.getTextColor()||U.get("axisLine.lineStyle.color"),textAlign:X.get("align")||q.textAlign,textVerticalAlign:X.get("verticalAlign")||q.textVerticalAlign}),U.get("triggerEvent")&&(Y.eventData=A(U),Y.eventData.targetType="axisName",Y.eventData.name=j),this._dumbGroup.add(Y),Y.updateTransform(),this.group.add(Y),Y.decomposeTransform()}},A=b.makeAxisEventDataBase=function(R){var U={componentType:R.mainType,componentIndex:R.componentIndex};return U[R.mainType+"Index"]=R.componentIndex,U},S=b.innerTextLayout=function(R,U,j){var H=o(U-R),V,X;return r(H)?(X=j>0?"top":"bottom",V="center"):r(H-w)?(X=j>0?"bottom":"top",V="center"):(X="middle",H>0&&H0?"right":"left":V=j>0?"left":"right"),{rotation:H,textAlign:V,textVerticalAlign:X}};function T(R,U,j,H){var V=o(j-R.rotation),X,W,G=H[0]>H[1],$=U==="start"&&!G||U!=="start"&&G;return r(V-w/2)?(W=$?"bottom":"top",X="center"):r(V-w*1.5)?(W=$?"top":"bottom",X="center"):(W="middle",Vw/2?X=$?"left":"right":X=$?"right":"left"),{rotation:V,textAlign:X,textVerticalAlign:W}}var L=b.isLabelSilent=function(R){var U=R.get("tooltip");return R.get("silent")||!(R.get("triggerEvent")||U&&U.show)};function x(R,U,j){if(p(R.axis))return;var H=R.get("axisLabel.showMinLabel"),V=R.get("axisLabel.showMaxLabel");U=U||[],j=j||[];var X=U[0],W=U[1],G=U[U.length-1],$=U[U.length-2],ge=j[0],q=j[1],Se=j[j.length-1],Ce=j[j.length-2];H===!1?(C(X),C(ge)):O(X,W)&&(H?(C(W),C(q)):(C(X),C(ge))),V===!1?(C(G),C(Se)):O($,G)&&(V?(C($),C(Ce)):(C(G),C(Se)))}function C(R){R&&(R.ignore=!0)}function O(R,U,j){var H=R&&R.getBoundingRect().clone(),V=U&&U.getBoundingRect().clone();if(!H||!V)return;var X=l.identity([]);return l.rotate(X,X,-R.rotation),H.applyTransform(l.mul([],X,R.getLocalTransform())),V.applyTransform(l.mul([],X,U.getLocalTransform())),H.intersect(V)}function N(R){return R==="middle"||R==="center"}function F(R,U,j,H,V){for(var X=[],W=[],G=[],$=0;$t}function H(oe){var de=oe.length-1;return de<0&&(de=0),[oe[0],oe[de]]}function V(oe,de,Le,Ge){var ht=new v.Group;return ht.add(new v.Rect({name:"main",style:$(Le),silent:!0,draggable:!0,cursor:"move",drift:a(oe,de,ht,"nswe"),ondragend:a(U,de,{isEnd:!0})})),i(Ge,function(Et){ht.add(new v.Rect({name:Et,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:a(oe,de,ht,Et),ondragend:a(U,de,{isEnd:!0})}))}),ht}function X(oe,de,Le,Ge){var ht=Ge.brushStyle.lineWidth||0,Et=d(ht,s),Be=Le[0][0],Dt=Le[1][0],Ke=Be-ht/2,At=Dt-ht/2,Xe=Le[0][1],et=Le[1][1],tt=Xe-Et+ht/2,ot=et-Et+ht/2,Ve=Xe-Be,se=et-Dt,re=Ve+ht,it=se+ht;G(oe,de,"main",Be,Dt,Ve,se),Ge.transformable&&(G(oe,de,"w",Ke,At,Et,it),G(oe,de,"e",tt,At,Et,it),G(oe,de,"n",Ke,At,re,Et),G(oe,de,"s",Ke,ot,re,Et),G(oe,de,"nw",Ke,At,Et,Et),G(oe,de,"ne",tt,At,Et,Et),G(oe,de,"sw",Ke,ot,Et,Et),G(oe,de,"se",tt,ot,Et,Et))}function W(oe,de){var Le=de.__brushOption,Ge=Le.transformable,ht=de.childAt(0);ht.useStyle($(Le)),ht.attr({silent:!Ge,cursor:Ge?"move":"default"}),i(["w","e","n","s","se","sw","ne","nw"],function(Et){var Be=de.childOfName(Et),Dt=Se(oe,Et);Be&&Be.attr({silent:!Ge,invisible:!Ge,cursor:Ge?w[Dt]+"-resize":null})})}function G(oe,de,Le,Ge,ht,Et,Be){var Dt=de.childOfName(Le);Dt&&Dt.setShape(gt(Qe(oe,de,[[Ge,ht],[Ge+Et,ht+Be]])))}function $(oe){return y.defaults({strokeNoScale:!0},oe.brushStyle)}function ge(oe,de,Le,Ge){var ht=[o(oe,Le),o(de,Ge)],Et=[d(oe,Le),d(de,Ge)];return[[ht[0],Et[0]],[ht[1],Et[1]]]}function q(oe){return v.getTransform(oe.group)}function Se(oe,de){if(de.length>1){de=de.split("");var Le=[Se(oe,de[0]),Se(oe,de[1])];return(Le[0]==="e"||Le[0]==="w")&&Le.reverse(),Le.join("")}else{var Ge={w:"left",e:"right",n:"top",s:"bottom"},ht={left:"w",right:"e",top:"n",bottom:"s"},Le=v.transformDirection(Ge[de],q(oe));return ht[Le]}}function Ce(oe,de,Le,Ge,ht,Et,Be,Dt){var Ke=Ge.__brushOption,At=oe(Ke.range),Xe=Ue(Le,Et,Be);i(ht.split(""),function(et){var tt=p[et];At[tt[0]][tt[1]]+=Xe[tt[0]]}),Ke.range=de(ge(At[0][0],At[1][0],At[0][1],At[1][1])),k(Le,Ge),U(Le,{isEnd:!1})}function Ae(oe,de,Le,Ge,ht){var Et=de.__brushOption.range,Be=Ue(oe,Le,Ge);i(Et,function(Dt){Dt[0]+=Be[0],Dt[1]+=Be[1]}),k(oe,de),U(oe,{isEnd:!1})}function Ue(oe,de,Le){var Ge=oe.group,ht=Ge.transformCoordToLocal(de,Le),Et=Ge.transformCoordToLocal(0,0);return[ht[0]-Et[0],ht[1]-Et[1]]}function Qe(oe,de,Le){var Ge=z(oe,de);return Ge&&Ge!==!0?Ge.clipPath(Le,oe._transform):y.clone(Le)}function gt(oe){var de=o(oe[0][0],oe[1][0]),Le=o(oe[0][1],oe[1][1]),Ge=d(oe[0][0],oe[1][0]),ht=d(oe[0][1],oe[1][1]);return{x:de,y:Le,width:Ge-de,height:ht-Le}}function _e(oe,de,Le){if(!oe._brushType||ye(oe,de))return;var Ge=oe._zr,ht=oe._covers,Et=B(oe,de,Le);if(!oe._dragging)for(var Be=0;BeGe.getWidth()||Le<0||Le>Ge.getHeight()}var ue={lineX:Ne(0),lineY:Ne(1),rect:{createCover:function(oe,de){return V(a(Ce,function(Le){return Le},function(Le){return Le}),oe,de,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(oe){var de=H(oe);return ge(de[1][0],de[1][1],de[0][0],de[0][1])},updateCoverShape:function(oe,de,Le,Ge){X(oe,de,Le,Ge)},updateCommon:W,contain:lt},polygon:{createCover:function(oe,de){var Le=new v.Group;return Le.add(new v.Polyline({name:"main",style:$(de),silent:!0})),Le},getCreatingRange:function(oe){return oe},endCreating:function(oe,de){de.remove(de.childAt(0)),de.add(new v.Polygon({name:"main",draggable:!0,drift:a(Ae,oe,de),ondragend:a(U,oe,{isEnd:!0})}))},updateCoverShape:function(oe,de,Le,Ge){de.childAt(0).setShape({points:Qe(oe,de,Le)})},updateCommon:W,contain:lt}};function Ne(oe){return{createCover:function(de,Le){return V(a(Ce,function(Ge){var ht=[Ge,[0,100]];return oe&&ht.reverse(),ht},function(Ge){return Ge[oe]}),de,Le,[["w","e"],["n","s"]][oe])},getCreatingRange:function(de){var Le=H(de),Ge=o(Le[0][oe],Le[1][oe]),ht=d(Le[0][oe],Le[1][oe]);return[Ge,ht]},updateCoverShape:function(de,Le,Ge,ht){var Et,Be=z(de,Le);if(Be!==!0&&Be.getLinearBrushOtherExtent)Et=Be.getLinearBrushOtherExtent(oe,de._transform);else{var Dt=de._zr;Et=[0,[Dt.getWidth(),Dt.getHeight()][1-oe]]}var Ke=[Ge,Et];oe&&Ke.reverse(),X(de,Le,Ke,ht)},updateCommon:W,contain:lt}}var Te=A;D.exports=Te},"/MfK":function(D,_,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,m=e("6VBw"),v=function(a,i){return g.createElement(m.a,Object.assign({},a,{ref:i,icon:y}))};v.displayName="DeleteOutlined";var h=_.a=g.forwardRef(v)},"/POA":function(D,_,e){!function(g,f){if(!0)D.exports=f();else var y,m}(window,function(){return function(g){var f={};function y(m){if(f[m])return f[m].exports;var v=f[m]={i:m,l:!1,exports:{}};return g[m].call(v.exports,v,v.exports,y),v.l=!0,v.exports}return y.m=g,y.c=f,y.d=function(m,v,h){y.o(m,v)||Object.defineProperty(m,v,{enumerable:!0,get:h})},y.r=function(m){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(m,"__esModule",{value:!0})},y.t=function(m,v){if(1&v&&(m=y(m)),8&v)return m;if(4&v&&typeof m=="object"&&m&&m.__esModule)return m;var h=Object.create(null);if(y.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:m}),2&v&&typeof m!="string")for(var c in m)y.d(h,c,function(a){return m[a]}.bind(null,c));return h},y.n=function(m){var v=m&&m.__esModule?function(){return m.default}:function(){return m};return y.d(v,"a",v),v},y.o=function(m,v){return Object.prototype.hasOwnProperty.call(m,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 m=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(a){return c._listeners.push(a),{dispose:function(){if(!c._disposed){for(var r=0;r>22},o.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?h.stringFromCodePoint(2097151&this.content):""},o.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},o.prototype.setFromCharData=function(d){this.fg=d[c.CHAR_DATA_ATTR_INDEX],this.bg=0;var n=!1;if(d[c.CHAR_DATA_CHAR_INDEX].length>2)n=!0;else if(d[c.CHAR_DATA_CHAR_INDEX].length===2){var l=d[c.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=l&&l<=56319){var t=d[c.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=t&&t<=57343?this.content=1024*(l-55296)+t-56320+65536|d[c.CHAR_DATA_WIDTH_INDEX]<<22:n=!0}else n=!0}else this.content=d[c.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|d[c.CHAR_DATA_WIDTH_INDEX]<<22;n&&(this.combinedData=d[c.CHAR_DATA_CHAR_INDEX],this.content=2097152|d[c.CHAR_DATA_WIDTH_INDEX]<<22)},o.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},o}(a.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 m=y(14);f.ICharSizeService=m.createDecorator("CharSizeService"),f.ICoreBrowserService=m.createDecorator("CoreBrowserService"),f.IMouseService=m.createDecorator("MouseService"),f.IRenderService=m.createDecorator("RenderService"),f.ISelectionService=m.createDecorator("SelectionService"),f.ISoundService=m.createDecorator("SoundService")},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.ExtendedAttrs=f.AttributeData=void 0;var m=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=m;var v=function(){function h(c,a){c===void 0&&(c=0),a===void 0&&(a=-1),this.underlineStyle=c,this.underlineColor=a}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(m,v,h,c){m.addEventListener(v,h,c);var a=!1;return{dispose:function(){a||(a=!0,m.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,a){c===void 0&&(c=0),a===void 0&&(a=h.length);for(var i="",r=c;r65535?(o-=65536,i+=String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):i+=String.fromCharCode(o)}return i};var m=function(){function h(){this._interim=0}return h.prototype.clear=function(){this._interim=0},h.prototype.decode=function(c,a){var i=c.length;if(!i)return 0;var r=0,o=0;this._interim&&(56320<=(l=c.charCodeAt(o++))&&l<=57343?a[r++]=1024*(this._interim-55296)+l-56320+65536:(a[r++]=this._interim,a[r++]=l),this._interim=0);for(var d=o;d=i)return this._interim=n,r;var l;56320<=(l=c.charCodeAt(d))&&l<=57343?a[r++]=1024*(n-55296)+l-56320+65536:(a[r++]=n,a[r++]=l)}else a[r++]=n}return r},h}();f.StringToUtf32=m;var v=function(){function h(){this.interim=new Uint8Array(3)}return h.prototype.clear=function(){this.interim.fill(0)},h.prototype.decode=function(c,a){var i=c.length;if(!i)return 0;var r,o,d,n,l=0,t=0,s=0;if(this.interim[0]){var u=!1,p=this.interim[0];p&=(224&p)==192?31:(240&p)==224?15:7;for(var w=0,b=void 0;(b=63&this.interim[++w])&&w<4;)p<<=6,p|=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--,u=!0;break}this.interim[w++]=b,p<<=6,p|=63&b}u||(E===2?p<128?s--:a[l++]=p:E===3?p<2048||p>=55296&&p<=57343||(a[l++]=p):p<65536||p>1114111||(a[l++]=p)),this.interim.fill(0)}for(var S=i-4,T=s;T=i)return this.interim[0]=r,l;if((192&(o=c[T++]))!=128){T--;continue}if((t=(31&r)<<6|63&o)<128){T--;continue}a[l++]=t}else if((240&r)==224){if(T>=i)return this.interim[0]=r,l;if((192&(o=c[T++]))!=128){T--;continue}if(T>=i)return this.interim[0]=r,this.interim[1]=o,l;if((192&(d=c[T++]))!=128){T--;continue}if((t=(15&r)<<12|(63&o)<<6|63&d)<2048||t>=55296&&t<=57343)continue;a[l++]=t}else if((248&r)==240){if(T>=i)return this.interim[0]=r,l;if((192&(o=c[T++]))!=128){T--;continue}if(T>=i)return this.interim[0]=r,this.interim[1]=o,l;if((192&(d=c[T++]))!=128){T--;continue}if(T>=i)return this.interim[0]=r,this.interim[1]=o,this.interim[2]=d,l;if((192&(n=c[T++]))!=128){T--;continue}if((t=(7&r)<<18|(63&o)<<12|(63&d)<<6|63&n)<65536||t>1114111)continue;a[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 m,v,h,c;function a(r){var o=r.toString(16);return o.length<2?"0"+o:o}function i(r,o){return r>>0}}(m=f.channels||(f.channels={})),(v=f.color||(f.color={})).blend=function(r,o){var d=(255&o.rgba)/255;if(d===1)return{css:o.css,rgba:o.rgba};var n=o.rgba>>24&255,l=o.rgba>>16&255,t=o.rgba>>8&255,s=r.rgba>>24&255,u=r.rgba>>16&255,p=r.rgba>>8&255,w=s+Math.round((n-s)*d),b=u+Math.round((l-u)*d),E=p+Math.round((t-p)*d);return{css:m.toCss(w,b,E),rgba:m.toRgba(w,b,E)}},v.isOpaque=function(r){return(255&r.rgba)==255},v.ensureContrastRatio=function(r,o,d){var n=c.ensureContrastRatio(r.rgba,o.rgba,d);if(n)return c.toColor(n>>24&255,n>>16&255,n>>8&255)},v.opaque=function(r){var o=(255|r.rgba)>>>0,d=c.toChannels(o),n=d[0],l=d[1],t=d[2];return{css:m.toCss(n,l,t),rgba:o}},v.opacity=function(r,o){var d=Math.round(255*o),n=c.toChannels(r.rgba),l=n[0],t=n[1],s=n[2];return{css:m.toCss(l,t,s,d),rgba:m.toRgba(l,t,s,d)}},(f.css||(f.css={})).toColor=function(r){switch(r.length){case 7:return{css:r,rgba:(parseInt(r.slice(1),16)<<8|255)>>>0};case 9:return{css:r,rgba:parseInt(r.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(r){function o(d,n,l){var t=d/255,s=n/255,u=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*(u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4))}r.relativeLuminance=function(d){return o(d>>16&255,d>>8&255,255&d)},r.relativeLuminance2=o}(h=f.rgb||(f.rgb={})),function(r){function o(n,l,t){for(var s=n>>24&255,u=n>>16&255,p=n>>8&255,w=l>>24&255,b=l>>16&255,E=l>>8&255,A=i(h.relativeLuminance2(w,E,b),h.relativeLuminance2(s,u,p));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,u,p));return(w<<24|b<<16|E<<8|255)>>>0}function d(n,l,t){for(var s=n>>24&255,u=n>>16&255,p=n>>8&255,w=l>>24&255,b=l>>16&255,E=l>>8&255,A=i(h.relativeLuminance2(w,E,b),h.relativeLuminance2(s,u,p));A>>0}r.ensureContrastRatio=function(n,l,t){var s=h.relativeLuminance(n>>8),u=h.relativeLuminance(l>>8);if(i(s,u)>24&255,n>>16&255,n>>8&255,255&n]},r.toColor=function(n,l,t){return{css:m.toCss(n,l,t),rgba:m.toRgba(n,l,t)}}}(c=f.rgba||(f.rgba={})),f.toPaddedHex=a,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 m=typeof navigator=="undefined",v=m?"node":navigator.userAgent,h=m?"node":navigator.platform;function c(a,i){return a.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(m){m.NUL="\0",m.SOH="",m.STX="",m.ETX="",m.EOT="",m.ENQ="",m.ACK="",m.BEL="\x07",m.BS="\b",m.HT=" ",m.LF=` `,m.VT="\v",m.FF="\f",m.CR="\r",m.SO="",m.SI="",m.DLE="",m.DC1="",m.DC2="",m.DC3="",m.DC4="",m.NAK="",m.SYN="",m.ETB="",m.CAN="",m.EM="",m.SUB="",m.ESC="",m.FS="",m.GS="",m.RS="",m.US="",m.SP=" ",m.DEL="\x7F"}(f.C0||(f.C0={})),function(m){m.PAD="\x80",m.HOP="\x81",m.BPH="\x82",m.NBH="\x83",m.IND="\x84",m.NEL="\x85",m.SSA="\x86",m.ESA="\x87",m.HTS="\x88",m.HTJ="\x89",m.VTS="\x8A",m.PLD="\x8B",m.PLU="\x8C",m.RI="\x8D",m.SS2="\x8E",m.SS3="\x8F",m.DCS="\x90",m.PU1="\x91",m.PU2="\x92",m.STS="\x93",m.CCH="\x94",m.MW="\x95",m.SPA="\x96",m.EPA="\x97",m.SOS="\x98",m.SGCI="\x99",m.SCI="\x9A",m.CSI="\x9B",m.ST="\x9C",m.OSC="\x9D",m.PM="\x9E",m.APC="\x9F"}(f.C1||(f.C1={}))},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.BaseRenderLayer=void 0;var m=y(3),v=y(9),h=y(25),c=y(6),a=y(28),i=y(10),r=y(17),o=function(){function d(n,l,t,s,u,p,w,b){this._container=n,this._alpha=s,this._colors=u,this._rendererId=p,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 d.prototype.dispose=function(){var n;r.removeElementFromParent(this._canvas),(n=this._charAtlas)===null||n===void 0||n.dispose()},d.prototype._initCanvas=function(){this._ctx=a.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},d.prototype.onOptionsChanged=function(){},d.prototype.onBlur=function(){},d.prototype.onFocus=function(){},d.prototype.onCursorMove=function(){},d.prototype.onGridChanged=function(n,l){},d.prototype.onSelectionChanged=function(n,l,t){t===void 0&&(t=!1)},d.prototype.setColors=function(n){this._refreshCharAtlas(n)},d.prototype._setTransparency=function(n){if(n!==this._alpha){var l=this._canvas;this._alpha=n,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,l),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},d.prototype._refreshCharAtlas=function(n){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=h.acquireCharAtlas(this._optionsService.options,this._rendererId,n,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},d.prototype.resize=function(n){this._scaledCellWidth=n.scaledCellWidth,this._scaledCellHeight=n.scaledCellHeight,this._scaledCharWidth=n.scaledCharWidth,this._scaledCharHeight=n.scaledCharHeight,this._scaledCharLeft=n.scaledCharLeft,this._scaledCharTop=n.scaledCharTop,this._canvas.width=n.scaledCanvasWidth,this._canvas.height=n.scaledCanvasHeight,this._canvas.style.width=n.canvasWidth+"px",this._canvas.style.height=n.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},d.prototype._fillCells=function(n,l,t,s){this._ctx.fillRect(n*this._scaledCellWidth,l*this._scaledCellHeight,t*this._scaledCellWidth,s*this._scaledCellHeight)},d.prototype._fillBottomLineAtCells=function(n,l,t){t===void 0&&(t=1),this._ctx.fillRect(n*this._scaledCellWidth,(l+1)*this._scaledCellHeight-window.devicePixelRatio-1,t*this._scaledCellWidth,window.devicePixelRatio)},d.prototype._fillLeftLineAtCell=function(n,l,t){this._ctx.fillRect(n*this._scaledCellWidth,l*this._scaledCellHeight,window.devicePixelRatio*t,this._scaledCellHeight)},d.prototype._strokeRectAtCell=function(n,l,t,s){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(n*this._scaledCellWidth+window.devicePixelRatio/2,l*this._scaledCellHeight+window.devicePixelRatio/2,t*this._scaledCellWidth-window.devicePixelRatio,s*this._scaledCellHeight-window.devicePixelRatio)},d.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))},d.prototype._clearCells=function(n,l,t,s){this._alpha?this._ctx.clearRect(n*this._scaledCellWidth,l*this._scaledCellHeight,t*this._scaledCellWidth,s*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(n*this._scaledCellWidth,l*this._scaledCellHeight,t*this._scaledCellWidth,s*this._scaledCellHeight))},d.prototype._fillCharTrueColor=function(n,l,t){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(t),this._ctx.fillText(n.getChars(),l*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},d.prototype._drawChars=function(n,l,t){var s,u,p=this._getContrastColor(n);p||n.isFgRGB()||n.isBgRGB()?this._drawUncachedChars(n,l,t,p):(n.isInverse()?(s=n.isBgDefault()?v.INVERTED_DEFAULT_COLOR:n.getBgColor(),u=n.isFgDefault()?v.INVERTED_DEFAULT_COLOR:n.getFgColor()):(u=n.isBgDefault()?m.DEFAULT_COLOR:n.getBgColor(),s=n.isFgDefault()?m.DEFAULT_COLOR:n.getFgColor()),s+=this._optionsService.options.drawBoldTextInBrightColors&&n.isBold()&&s<8?8:0,this._currentGlyphIdentifier.chars=n.getChars()||m.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=n.getCode()||m.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=u,this._currentGlyphIdentifier.fg=s,this._currentGlyphIdentifier.bold=!!n.isBold(),this._currentGlyphIdentifier.dim=!!n.isDim(),this._currentGlyphIdentifier.italic=!!n.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,l*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(n,l,t))},d.prototype._drawUncachedChars=function(n,l,t,s){if(this._ctx.save(),this._ctx.font=this._getFont(!!n.isBold(),!!n.isItalic()),this._ctx.textBaseline="middle",n.isInverse())if(s)this._ctx.fillStyle=s.css;else if(n.isBgDefault())this._ctx.fillStyle=i.color.opaque(this._colors.background).css;else if(n.isBgRGB())this._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(n.getBgColor()).join(",")+")";else{var u=n.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&n.isBold()&&u<8&&(u+=8),this._ctx.fillStyle=this._colors.ansi[u].css}else if(s)this._ctx.fillStyle=s.css;else if(n.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(n.isFgRGB())this._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(n.getFgColor()).join(",")+")";else{var p=n.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&n.isBold()&&p<8&&(p+=8),this._ctx.fillStyle=this._colors.ansi[p].css}this._clipRow(t),n.isDim()&&(this._ctx.globalAlpha=v.DIM_OPACITY),this._ctx.fillText(n.getChars(),l*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},d.prototype._clipRow=function(n){this._ctx.beginPath(),this._ctx.rect(0,n*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},d.prototype._getFont=function(n,l){return(l?"italic":"")+" "+(n?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},d.prototype._getContrastColor=function(n){if(this._optionsService.options.minimumContrastRatio!==1){var l=this._colors.contrastCache.getColor(n.bg,n.fg);if(l!==void 0)return l||void 0;var t=n.getFgColor(),s=n.getFgColorMode(),u=n.getBgColor(),p=n.getBgColorMode(),w=!!n.isInverse(),b=!!n.isInverse();if(w){var E=t;t=u,u=E;var A=s;s=p,p=A}var S=this._resolveBackgroundRgba(p,u,w),T=this._resolveForegroundRgba(s,t,w,b),L=i.rgba.ensureContrastRatio(S,T,this._optionsService.options.minimumContrastRatio);if(L){var x={css:i.channels.toCss(L>>24&255,L>>16&255,L>>8&255),rgba:L};return this._colors.contrastCache.setColor(n.bg,n.fg,x),x}this._colors.contrastCache.setColor(n.bg,n.fg,null)}},d.prototype._resolveBackgroundRgba=function(n,l,t){switch(n){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}},d.prototype._resolveForegroundRgba=function(n,l,t,s){switch(n){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}},d}();f.BaseRenderLayer=o},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.createDecorator=f.getServiceDependencies=f.serviceRegistry=void 0;function m(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(a,i,r){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");m(c,a,r)};return h.toString=function(){return v},f.serviceRegistry.set(v,h),h}},function(g,f,y){"use strict";function m(v,h,c,a){if(c===void 0&&(c=0),a===void 0&&(a=v.length),c>=v.length)return v;c=(v.length+c)%v.length,a=a>=v.length?v.length:(v.length+a)%v.length;for(var i=c;i>22,2097152&o?this._combined[r].charCodeAt(this._combined[r].length-1):d]},i.prototype.set=function(r,o){this._data[3*r+1]=o[v.CHAR_DATA_ATTR_INDEX],o[v.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[r]=o[1],this._data[3*r+0]=2097152|r|o[v.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*r+0]=o[v.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|o[v.CHAR_DATA_WIDTH_INDEX]<<22},i.prototype.getWidth=function(r){return this._data[3*r+0]>>22},i.prototype.hasWidth=function(r){return 12582912&this._data[3*r+0]},i.prototype.getFg=function(r){return this._data[3*r+1]},i.prototype.getBg=function(r){return this._data[3*r+2]},i.prototype.hasContent=function(r){return 4194303&this._data[3*r+0]},i.prototype.getCodePoint=function(r){var o=this._data[3*r+0];return 2097152&o?this._combined[r].charCodeAt(this._combined[r].length-1):2097151&o},i.prototype.isCombined=function(r){return 2097152&this._data[3*r+0]},i.prototype.getString=function(r){var o=this._data[3*r+0];return 2097152&o?this._combined[r]:2097151&o?m.stringFromCodePoint(2097151&o):""},i.prototype.loadCell=function(r,o){var d=3*r;return o.content=this._data[d+0],o.fg=this._data[d+1],o.bg=this._data[d+2],2097152&o.content&&(o.combinedData=this._combined[r]),268435456&o.bg&&(o.extended=this._extendedAttrs[r]),o},i.prototype.setCell=function(r,o){2097152&o.content&&(this._combined[r]=o.combinedData),268435456&o.bg&&(this._extendedAttrs[r]=o.extended),this._data[3*r+0]=o.content,this._data[3*r+1]=o.fg,this._data[3*r+2]=o.bg},i.prototype.setCellFromCodePoint=function(r,o,d,n,l,t){268435456&l&&(this._extendedAttrs[r]=t),this._data[3*r+0]=o|d<<22,this._data[3*r+1]=n,this._data[3*r+2]=l},i.prototype.addCodepointToCell=function(r,o){var d=this._data[3*r+0];2097152&d?this._combined[r]+=m.stringFromCodePoint(o):(2097151&d?(this._combined[r]=m.stringFromCodePoint(2097151&d)+m.stringFromCodePoint(o),d&=-2097152,d|=2097152):d=o|1<<22,this._data[3*r+0]=d)},i.prototype.insertCells=function(r,o,d,n){if((r%=this.length)&&this.getWidth(r-1)===2&&this.setCellFromCodePoint(r-1,0,1,(n==null?void 0:n.fg)||0,(n==null?void 0:n.bg)||0,(n==null?void 0:n.extended)||new c.ExtendedAttrs),o=0;--t)this.setCell(r+o+t,this.loadCell(r+t,l));for(t=0;tthis.length){var d=new Uint32Array(3*r);this.length&&(3*r=r&&delete this._combined[t]}}else this._data=new Uint32Array(0),this._combined={};this.length=r}},i.prototype.fill=function(r){this._combined={},this._extendedAttrs={};for(var o=0;o=0;--r)if(4194303&this._data[3*r+0])return r+(this._data[3*r+0]>>22);return 0},i.prototype.copyCellsFrom=function(r,o,d,n,l){var t=r._data;if(l)for(var s=n-1;s>=0;s--)for(var u=0;u<3;u++)this._data[3*(d+s)+u]=t[3*(o+s)+u];else for(s=0;s=o&&(this._combined[w-o+d]=r._combined[w])}},i.prototype.translateToString=function(r,o,d){r===void 0&&(r=!1),o===void 0&&(o=0),d===void 0&&(d=this.length),r&&(d=Math.min(d,this.getTrimmedLength()));for(var n="";o>22||1}return n},i}();f.BufferLine=a},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.removeElementFromParent=void 0,f.removeElementFromParent=function(){for(var m,v=[],h=0;h24)return L.setWinLines||!1;switch(T){case 1:return!!L.restoreWin;case 2:return!!L.minimizeWin;case 3:return!!L.setWinPosition;case 4:return!!L.setWinSizePixels;case 5:return!!L.raiseWin;case 6:return!!L.lowerWin;case 7:return!!L.refreshWin;case 8:return!!L.setWinSizeChars;case 9:return!!L.maximizeWin;case 10:return!!L.fullscreenWin;case 11:return!!L.getWinState;case 13:return!!L.getWinPosition;case 14:return!!L.getWinSizePixels;case 15:return!!L.getScreenSizePixels;case 16:return!!L.getCellSizePixels;case 18:return!!L.getWinSizeChars;case 19:return!!L.getScreenSizeChars;case 20:return!!L.getIconTitle;case 21:return!!L.getWinTitle;case 22:return!!L.pushTitle;case 23:return!!L.popTitle;case 24:return!!L.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(L,x,C,O){this._bufferService=L,this._coreService=x,this._logService=C,this._optionsService=O,this._data=new Uint32Array(0)}return T.prototype.hook=function(L){this._data=new Uint32Array(0)},T.prototype.put=function(L,x,C){this._data=o.concat(this._data,L.subarray(x,C))},T.prototype.unhook=function(L){if(L){var x=d.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 O={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return O-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(c.C0.ESC+"P1$r"+O+" 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 L(x,C,O,N,F,k,P,B,z){z===void 0&&(z=new i.EscapeSequenceParser);var R=T.call(this)||this;R._bufferService=x,R._charsetService=C,R._coreService=O,R._dirtyRowService=N,R._logService=F,R._optionsService=k,R._coreMouseService=P,R._unicodeService=B,R._parser=z,R._parseBuffer=new Uint32Array(4096),R._stringDecoder=new d.StringToUtf32,R._utf8Decoder=new d.Utf8ToUtf32,R._workCell=new s.CellData,R._windowTitle="",R._iconName="",R._windowTitleStack=[],R._iconNameStack=[],R._curAttrData=n.DEFAULT_ATTR_DATA.clone(),R._eraseAttrDataInternal=n.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(V,X){R._logService.debug("Unknown CSI code: ",{identifier:R._parser.identToString(V),params:X.toArray()})}),R._parser.setEscHandlerFallback(function(V){R._logService.debug("Unknown ESC code: ",{identifier:R._parser.identToString(V)})}),R._parser.setExecuteHandlerFallback(function(V){R._logService.debug("Unknown EXECUTE code: ",{code:V})}),R._parser.setOscHandlerFallback(function(V,X,W){R._logService.debug("Unknown OSC code: ",{identifier:V,action:X,data:W})}),R._parser.setDcsHandlerFallback(function(V,X,W){X==="HOOK"&&(W=W.toArray()),R._logService.debug("Unknown DCS code: ",{identifier:R._parser.identToString(V),action:X,payload:W})}),R._parser.setPrintHandler(function(V,X,W){return R.print(V,X,W)}),R._parser.setCsiHandler({final:"@"},function(V){return R.insertChars(V)}),R._parser.setCsiHandler({intermediates:" ",final:"@"},function(V){return R.scrollLeft(V)}),R._parser.setCsiHandler({final:"A"},function(V){return R.cursorUp(V)}),R._parser.setCsiHandler({intermediates:" ",final:"A"},function(V){return R.scrollRight(V)}),R._parser.setCsiHandler({final:"B"},function(V){return R.cursorDown(V)}),R._parser.setCsiHandler({final:"C"},function(V){return R.cursorForward(V)}),R._parser.setCsiHandler({final:"D"},function(V){return R.cursorBackward(V)}),R._parser.setCsiHandler({final:"E"},function(V){return R.cursorNextLine(V)}),R._parser.setCsiHandler({final:"F"},function(V){return R.cursorPrecedingLine(V)}),R._parser.setCsiHandler({final:"G"},function(V){return R.cursorCharAbsolute(V)}),R._parser.setCsiHandler({final:"H"},function(V){return R.cursorPosition(V)}),R._parser.setCsiHandler({final:"I"},function(V){return R.cursorForwardTab(V)}),R._parser.setCsiHandler({final:"J"},function(V){return R.eraseInDisplay(V)}),R._parser.setCsiHandler({prefix:"?",final:"J"},function(V){return R.eraseInDisplay(V)}),R._parser.setCsiHandler({final:"K"},function(V){return R.eraseInLine(V)}),R._parser.setCsiHandler({prefix:"?",final:"K"},function(V){return R.eraseInLine(V)}),R._parser.setCsiHandler({final:"L"},function(V){return R.insertLines(V)}),R._parser.setCsiHandler({final:"M"},function(V){return R.deleteLines(V)}),R._parser.setCsiHandler({final:"P"},function(V){return R.deleteChars(V)}),R._parser.setCsiHandler({final:"S"},function(V){return R.scrollUp(V)}),R._parser.setCsiHandler({final:"T"},function(V){return R.scrollDown(V)}),R._parser.setCsiHandler({final:"X"},function(V){return R.eraseChars(V)}),R._parser.setCsiHandler({final:"Z"},function(V){return R.cursorBackwardTab(V)}),R._parser.setCsiHandler({final:"`"},function(V){return R.charPosAbsolute(V)}),R._parser.setCsiHandler({final:"a"},function(V){return R.hPositionRelative(V)}),R._parser.setCsiHandler({final:"b"},function(V){return R.repeatPrecedingCharacter(V)}),R._parser.setCsiHandler({final:"c"},function(V){return R.sendDeviceAttributesPrimary(V)}),R._parser.setCsiHandler({prefix:">",final:"c"},function(V){return R.sendDeviceAttributesSecondary(V)}),R._parser.setCsiHandler({final:"d"},function(V){return R.linePosAbsolute(V)}),R._parser.setCsiHandler({final:"e"},function(V){return R.vPositionRelative(V)}),R._parser.setCsiHandler({final:"f"},function(V){return R.hVPosition(V)}),R._parser.setCsiHandler({final:"g"},function(V){return R.tabClear(V)}),R._parser.setCsiHandler({final:"h"},function(V){return R.setMode(V)}),R._parser.setCsiHandler({prefix:"?",final:"h"},function(V){return R.setModePrivate(V)}),R._parser.setCsiHandler({final:"l"},function(V){return R.resetMode(V)}),R._parser.setCsiHandler({prefix:"?",final:"l"},function(V){return R.resetModePrivate(V)}),R._parser.setCsiHandler({final:"m"},function(V){return R.charAttributes(V)}),R._parser.setCsiHandler({final:"n"},function(V){return R.deviceStatus(V)}),R._parser.setCsiHandler({prefix:"?",final:"n"},function(V){return R.deviceStatusPrivate(V)}),R._parser.setCsiHandler({intermediates:"!",final:"p"},function(V){return R.softReset(V)}),R._parser.setCsiHandler({intermediates:" ",final:"q"},function(V){return R.setCursorStyle(V)}),R._parser.setCsiHandler({final:"r"},function(V){return R.setScrollRegion(V)}),R._parser.setCsiHandler({final:"s"},function(V){return R.saveCursor(V)}),R._parser.setCsiHandler({final:"t"},function(V){return R.windowOptions(V)}),R._parser.setCsiHandler({final:"u"},function(V){return R.restoreCursor(V)}),R._parser.setCsiHandler({intermediates:"'",final:"}"},function(V){return R.insertColumns(V)}),R._parser.setCsiHandler({intermediates:"'",final:"~"},function(V){return R.deleteColumns(V)}),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 p.OscHandler(function(V){R.setTitle(V),R.setIconName(V)})),R._parser.setOscHandler(1,new p.OscHandler(function(V){return R.setIconName(V)})),R._parser.setOscHandler(2,new p.OscHandler(function(V){return R.setTitle(V)})),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 U=function(X){j._parser.setEscHandler({intermediates:"(",final:X},function(){return R.selectCharset("("+X)}),j._parser.setEscHandler({intermediates:")",final:X},function(){return R.selectCharset(")"+X)}),j._parser.setEscHandler({intermediates:"*",final:X},function(){return R.selectCharset("*"+X)}),j._parser.setEscHandler({intermediates:"+",final:X},function(){return R.selectCharset("+"+X)}),j._parser.setEscHandler({intermediates:"-",final:X},function(){return R.selectCharset("-"+X)}),j._parser.setEscHandler({intermediates:".",final:X},function(){return R.selectCharset("."+X)}),j._parser.setEscHandler({intermediates:"/",final:X},function(){return R.selectCharset("/"+X)})},j=this;for(var H in a.CHARSETS)U(H);return R._parser.setEscHandler({intermediates:"#",final:"8"},function(){return R.screenAlignmentPattern()}),R._parser.setErrorHandler(function(V){return R._logService.error("Parsing error: ",V),V}),R._parser.setDcsHandler({intermediates:"$",final:"q"},new A(R._bufferService,R._coreService,R._logService,R._optionsService)),R}return v(L,T),Object.defineProperty(L.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),L.prototype.dispose=function(){T.prototype.dispose.call(this)},L.prototype.parse=function(x){var C=this._bufferService.buffer,O=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,j.fg,j.bg,j.extended);for(var V=C;V=z){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=z-1,F===2)continue}if(U&&(H.insertCells(k.x,F,k.getNullCell(j),j),H.getWidth(z-1)===2&&H.setCellFromCodePoint(z-1,t.NULL_CELL_CODE,t.NULL_CELL_WIDTH,j.fg,j.bg,j.extended)),H.setCellFromCodePoint(k.x++,N,F,j.fg,j.bg,j.extended),F>0)for(;--F;)H.setCellFromCodePoint(k.x++,0,0,j.fg,j.bg,j.extended)}else H.getWidth(k.x-1)?H.addCodepointToCell(k.x-1,N):H.addCodepointToCell(k.x-2,N)}O-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,j.fg,j.bg,j.extended),this._dirtyRowService.markDirty(k.y)},L.prototype.addCsiHandler=function(x,C){var O=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],O._optionsService.options.windowOptions)||C(N)})},L.prototype.addDcsHandler=function(x,C){return this._parser.addDcsHandler(x,new w.DcsHandler(C))},L.prototype.addEscHandler=function(x,C){return this._parser.addEscHandler(x,C)},L.prototype.addOscHandler=function(x,C){return this._parser.addOscHandler(x,new p.OscHandler(C))},L.prototype.bell=function(){this._onRequestBell.fire()},L.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()},L.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},L.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 O=C.lines.get(C.ybase+C.y);O.hasWidth(C.x)&&!O.hasContent(C.x)&&C.x--}this._restrictCursor()},L.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)}},L.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},L.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},L.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)},L.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)},L.prototype._moveCursor=function(x,C){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+x,this._bufferService.buffer.y+C)},L.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))},L.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)},L.prototype.cursorForward=function(x){this._moveCursor(x.params[0]||1,0)},L.prototype.cursorBackward=function(x){this._moveCursor(-(x.params[0]||1),0)},L.prototype.cursorNextLine=function(x){this.cursorDown(x),this._bufferService.buffer.x=0},L.prototype.cursorPrecedingLine=function(x){this.cursorUp(x),this._bufferService.buffer.x=0},L.prototype.cursorCharAbsolute=function(x){this._setCursor((x.params[0]||1)-1,this._bufferService.buffer.y)},L.prototype.cursorPosition=function(x){this._setCursor(x.length>=2?(x.params[1]||1)-1:0,(x.params[0]||1)-1)},L.prototype.charPosAbsolute=function(x){this._setCursor((x.params[0]||1)-1,this._bufferService.buffer.y)},L.prototype.hPositionRelative=function(x){this._moveCursor(x.params[0]||1,0)},L.prototype.linePosAbsolute=function(x){this._setCursor(this._bufferService.buffer.x,(x.params[0]||1)-1)},L.prototype.vPositionRelative=function(x){this._moveCursor(0,x.params[0]||1)},L.prototype.hVPosition=function(x){this.cursorPosition(x)},L.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={})},L.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()},L.prototype.cursorBackwardTab=function(x){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var C=x.params[0]||1,O=this._bufferService.buffer;C--;)O.x=O.prevStop()},L.prototype._eraseInBufferLine=function(x,C,O,N){N===void 0&&(N=!1);var F=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+x);F.replaceCells(C,O,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),N&&(F.isWrapped=!1)},L.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},L.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 O=this._bufferService.buffer.lines.length-this._bufferService.rows;O>0&&(this._bufferService.buffer.lines.trimStart(O),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-O,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-O,0),this._onScroll.fire(0))}},L.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)},L.prototype.insertLines=function(x){this._restrictCursor();var C=x.params[0]||1,O=this._bufferService.buffer;if(!(O.y>O.scrollBottom||O.yO.scrollBottom||O.yC.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"))},L.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"))},L.prototype._is=function(x){return(this._optionsService.options.termName+"").indexOf(x)===0},L.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()},L.prototype.charAttributes=function(x){if(x.length===1&&x.params[0]===0)return this._curAttrData.fg=n.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=n.DEFAULT_ATTR_DATA.bg);for(var C,O=x.length,N=this._curAttrData,F=0;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=n.DEFAULT_ATTR_DATA.fg,N.bg=n.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&n.DEFAULT_ATTR_DATA.fg):C===49?(N.bg&=-67108864,N.bg|=16777215&n.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&n.DEFAULT_ATTR_DATA.fg,N.bg&=-67108864,N.bg|=16777215&n.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",C)},L.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,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(c.C0.ESC+"["+C+";"+O+"R")}},L.prototype.deviceStatusPrivate=function(x){switch(x.params[0]){case 6:var C=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(c.C0.ESC+"[?"+C+";"+O+"R")}},L.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=n.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},L.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 O=C%2==1;this._optionsService.options.cursorBlink=O},L.prototype.setScrollRegion=function(x){var C,O=x.params[0]||1;(x.length<2||(C=x.params[1])>this._bufferService.rows||C===0)&&(C=this._bufferService.rows),C>O&&(this._bufferService.buffer.scrollTop=O-1,this._bufferService.buffer.scrollBottom=C-1,this._setCursor(0,0))},L.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())}}},L.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},L.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()},L.prototype.setTitle=function(x){this._windowTitle=x,this._onTitleChange.fire(x)},L.prototype.setIconName=function(x){this._iconName=x},L.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},L.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},L.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},L.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,a.DEFAULT_CHARSET)},L.prototype.selectCharset=function(x){x.length===2?x[0]!=="/"&&this._charsetService.setgCharset(b[x[0]],a.CHARSETS[x[1]]||a.DEFAULT_CHARSET):this.selectDefaultCharset()},L.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()},L.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},L.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()},L.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},L.prototype.reset=function(){this._curAttrData=n.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=n.DEFAULT_ATTR_DATA.clone()},L.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},L.prototype.setgLevel=function(x){this._charsetService.setgLevel(x)},L.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 O=0;O256)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 a=h[0]instanceof Array?1:0;a>8,i=255&this._subParamsIdx[c];i-a>0&&h.push(Array.prototype.slice.call(this._subParams,a,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,a=255&this._subParamsIdx[h];return a-c>0?this._subParams.subarray(c,a):null},v.prototype.getSubParamsAll=function(){for(var h={},c=0;c>8,i=255&this._subParamsIdx[c];i-a>0&&(h[c]=this._subParams.slice(a,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 a=this._digitIsSub?this._subParams:this.params,i=a[c-1];a[c-1]=~i?Math.min(10*i+h,2147483647):h}},v}();f.Params=m},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.OscHandler=f.OscParser=void 0;var m=y(23),v=y(8),h=function(){function a(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return a.prototype.addHandler=function(i,r){this._handlers[i]===void 0&&(this._handlers[i]=[]);var o=this._handlers[i];return o.push(r),{dispose:function(){var n=o.indexOf(r);n!==-1&&o.splice(n,1)}}},a.prototype.setHandler=function(i,r){this._handlers[i]=[r]},a.prototype.clearHandler=function(i){this._handlers[i]&&delete this._handlers[i]},a.prototype.setHandlerFallback=function(i){this._handlerFb=i},a.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},a.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},a.prototype._start=function(){var i=this._handlers[this._id];if(i)for(var r=i.length-1;r>=0;r--)i[r].start();else this._handlerFb(this._id,"START")},a.prototype._put=function(i,r,o){var d=this._handlers[this._id];if(d)for(var n=d.length-1;n>=0;n--)d[n].put(i,r,o);else this._handlerFb(this._id,"PUT",v.utf32ToString(i,r,o))},a.prototype._end=function(i){var r=this._handlers[this._id];if(r){for(var o=r.length-1;o>=0&&r[o].end(i)===!1;o--);for(o--;o>=0;o--)r[o].end(!1)}else this._handlerFb(this._id,"END",i)},a.prototype.start=function(){this.reset(),this._id=-1,this._state=1},a.prototype.put=function(i,r,o){if(this._state!==3){if(this._state===1)for(;r0&&this._put(i,r,o)}},a.prototype.end=function(i){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(i)),this._id=-1,this._state=0)},a}();f.OscParser=h;var c=function(){function a(i){this._handler=i,this._data="",this._hitLimit=!1}return a.prototype.start=function(){this._data="",this._hitLimit=!1},a.prototype.put=function(i,r,o){this._hitLimit||(this._data+=v.utf32ToString(i,r,o),this._data.length>m.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},a.prototype.end=function(i){var r;return this._hitLimit?r=!1:i&&(r=this._handler(this._data)),this._data="",this._hitLimit=!1,r},a}();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 m=y(8),v=y(21),h=y(23),c=[],a=function(){function r(){this._handlers=Object.create(null),this._active=c,this._ident=0,this._handlerFb=function(){}}return r.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},r.prototype.addHandler=function(o,d){this._handlers[o]===void 0&&(this._handlers[o]=[]);var n=this._handlers[o];return n.push(d),{dispose:function(){var t=n.indexOf(d);t!==-1&&n.splice(t,1)}}},r.prototype.setHandler=function(o,d){this._handlers[o]=[d]},r.prototype.clearHandler=function(o){this._handlers[o]&&delete this._handlers[o]},r.prototype.setHandlerFallback=function(o){this._handlerFb=o},r.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=c,this._ident=0},r.prototype.hook=function(o,d){if(this.reset(),this._ident=o,this._active=this._handlers[o]||c,this._active.length)for(var n=this._active.length-1;n>=0;n--)this._active[n].hook(d);else this._handlerFb(this._ident,"HOOK",d)},r.prototype.put=function(o,d,n){if(this._active.length)for(var l=this._active.length-1;l>=0;l--)this._active[l].put(o,d,n);else this._handlerFb(this._ident,"PUT",m.utf32ToString(o,d,n))},r.prototype.unhook=function(o){if(this._active.length){for(var d=this._active.length-1;d>=0&&this._active[d].unhook(o)===!1;d--);for(d--;d>=0;d--)this._active[d].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",o);this._active=c,this._ident=0},r}();f.DcsParser=a;var i=function(){function r(o){this._handler=o,this._data="",this._hitLimit=!1}return r.prototype.hook=function(o){this._params=o.clone(),this._data="",this._hitLimit=!1},r.prototype.put=function(o,d,n){this._hitLimit||(this._data+=m.utf32ToString(o,d,n),this._data.length>h.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},r.prototype.unhook=function(o){var d;return this._hitLimit?d=!1:o&&(d=this._handler(this._data,this._params||new v.Params)),this._params=void 0,this._data="",this._hitLimit=!1,d},r}();f.DcsHandler=i},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.removeTerminalFromCache=f.acquireCharAtlas=void 0;var m=y(26),v=y(43),h=[];f.acquireCharAtlas=function(c,a,i,r,o){for(var d=m.generateConfig(r,o,c,i),n=0;n=0){if(m.configEquals(t.config,d))return t.atlas;t.ownedBy.length===1?(t.atlas.dispose(),h.splice(n,1)):t.ownedBy.splice(l,1);break}}for(n=0;n1)for(var A=this._getJoinedRanges(t,p,u,n,s),S=0;S1)for(A=this._getJoinedRanges(t,p,u,n,s),S=0;S=this._line.length))return u?(this._line.loadCell(s,u),u):this._line.loadCell(s,new m.CellData)},t.prototype.translateToString=function(s,u,p){return this._line.translateToString(s,u,p)},t}(),n=function(){function t(s){this._core=s}return t.prototype.registerCsiHandler=function(s,u){return this._core.addCsiHandler(s,function(p){return u(p.toArray())})},t.prototype.addCsiHandler=function(s,u){return this.registerCsiHandler(s,u)},t.prototype.registerDcsHandler=function(s,u){return this._core.addDcsHandler(s,function(p,w){return u(p,w.toArray())})},t.prototype.addDcsHandler=function(s,u){return this.registerDcsHandler(s,u)},t.prototype.registerEscHandler=function(s,u){return this._core.addEscHandler(s,u)},t.prototype.addEscHandler=function(s,u){return this.registerEscHandler(s,u)},t.prototype.registerOscHandler=function(s,u){return this._core.addOscHandler(s,u)},t.prototype.addOscHandler=function(s,u){return this.registerOscHandler(s,u)},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(u){this._core.unicodeService.activeVersion=u},enumerable:!1,configurable:!0}),t}()},function(g,f,y){"use strict";var m,v=this&&this.__extends||(m=function(R,U){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,H){j.__proto__=H}||function(j,H){for(var V in H)H.hasOwnProperty(V)&&(j[V]=H[V])})(R,U)},function(z,R){function U(){this.constructor=z}m(z,R),z.prototype=R===null?Object.create(R):(U.prototype=R.prototype,new U)});Object.defineProperty(f,"__esModule",{value:!0}),f.Terminal=void 0;var h=y(36),c=y(37),a=y(38),i=y(12),r=y(19),o=y(40),d=y(50),n=y(51),l=y(11),t=y(7),s=y(18),u=y(54),p=y(55),w=y(56),b=y(57),E=y(59),A=y(0),S=y(16),T=y(27),L=y(60),x=y(5),C=y(61),O=y(62),N=y(63),F=y(64),k=y(65),P=typeof window!="undefined"?window.document:null,B=function(z){function R(U){U===void 0&&(U={});var j=z.call(this,U)||this;return j.browser=l,j._keyDownHandled=!1,j._onCursorMove=new A.EventEmitter,j._onKey=new A.EventEmitter,j._onRender=new A.EventEmitter,j._onSelectionChange=new A.EventEmitter,j._onTitleChange=new A.EventEmitter,j._onFocus=new A.EventEmitter,j._onBlur=new A.EventEmitter,j._onA11yCharEmitter=new A.EventEmitter,j._onA11yTabEmitter=new A.EventEmitter,j._setup(),j.linkifier=j._instantiationService.createInstance(d.Linkifier),j.linkifier2=j.register(j._instantiationService.createInstance(N.Linkifier2)),j.register(j._inputHandler.onRequestBell(function(){return j.bell()})),j.register(j._inputHandler.onRequestRefreshRows(function(H,V){return j.refresh(H,V)})),j.register(j._inputHandler.onRequestReset(function(){return j.reset()})),j.register(j._inputHandler.onRequestScroll(function(H,V){return j.scroll(H,V||void 0)})),j.register(j._inputHandler.onRequestWindowsOptionsReport(function(H){return j._reportWindowsOptions(H)})),j.register(A.forwardEvent(j._inputHandler.onCursorMove,j._onCursorMove)),j.register(A.forwardEvent(j._inputHandler.onTitleChange,j._onTitleChange)),j.register(A.forwardEvent(j._inputHandler.onA11yChar,j._onA11yCharEmitter)),j.register(A.forwardEvent(j._inputHandler.onA11yTab,j._onA11yTabEmitter)),j.register(j._bufferService.onResize(function(H){return j._afterResize(H.cols,H.rows)})),j}return v(R,z),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 U,j,H;this._isDisposed||(z.prototype.dispose.call(this),(U=this._renderService)===null||U===void 0||U.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(H=(j=this.element)===null||j===void 0?void 0:j.parentNode)===null||H===void 0||H.removeChild(this.element))},R.prototype._setup=function(){z.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(U){var j,H,V,X;switch(z.prototype._updateOptions.call(this,U),U){case"fontFamily":case"fontSize":(j=this._renderService)===null||j===void 0||j.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":(V=this.viewport)===null||V===void 0||V.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new w.AccessibilityManager(this,this._renderService)):((X=this._accessibilityManager)===null||X===void 0||X.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},R.prototype._onTextAreaFocus=function(U){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(i.C0.ESC+"[I"),this.updateCursorStyle(U),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},R.prototype.blur=function(){var U;return(U=this.textarea)===null||U===void 0?void 0:U.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 U=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),j=this._bufferService.buffer.y*U,H=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=H+"px",this.textarea.style.top=j+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=U+"px",this.textarea.style.lineHeight=U+"px",this.textarea.style.zIndex="-5"}},R.prototype._initGlobal=function(){var U=this;this._bindKeys(),this.register(t.addDisposableDomListener(this.element,"copy",function(H){U.hasSelection()&&a.copyHandler(H,U._selectionService)}));var j=function(V){return a.handlePasteEvent(V,U.textarea,U._coreService)};this.register(t.addDisposableDomListener(this.textarea,"paste",j)),this.register(t.addDisposableDomListener(this.element,"paste",j)),l.isFirefox?this.register(t.addDisposableDomListener(this.element,"mousedown",function(H){H.button===2&&a.rightClickHandler(H,U.textarea,U.screenElement,U._selectionService,U.options.rightClickSelectsWord)})):this.register(t.addDisposableDomListener(this.element,"contextmenu",function(H){a.rightClickHandler(H,U.textarea,U.screenElement,U._selectionService,U.options.rightClickSelectsWord)})),l.isLinux&&this.register(t.addDisposableDomListener(this.element,"auxclick",function(H){H.button===1&&a.moveTextAreaUnderMouseCursor(H,U.textarea,U.screenElement)}))},R.prototype._bindKeys=function(){var U=this;this.register(t.addDisposableDomListener(this.textarea,"keyup",function(j){return U._keyUp(j)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keydown",function(j){return U._keyDown(j)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keypress",function(j){return U._keyPress(j)},!0)),this.register(t.addDisposableDomListener(this.textarea,"compositionstart",function(){return U._compositionHelper.compositionstart()})),this.register(t.addDisposableDomListener(this.textarea,"compositionupdate",function(j){return U._compositionHelper.compositionupdate(j)})),this.register(t.addDisposableDomListener(this.textarea,"compositionend",function(){return U._compositionHelper.compositionend()})),this.register(this.onRender(function(){return U._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(j){return U._queueLinkification(j.start,j.end)}))},R.prototype.open=function(U){var j=this;if(!U)throw new Error("Terminal requires a parent element.");P.body.contains(U)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=U.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"),U.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(W){return j._onTextAreaFocus(W)})),this.register(t.addDisposableDomListener(this.textarea,"blur",function(){return j._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var V=this._instantiationService.createInstance(F.CoreBrowserService,this.textarea);this._instantiationService.setService(x.ICoreBrowserService,V),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(W){return j._colorManager.onOptionsChange(W)})),this._colorManager.setTheme(this._theme);var X=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(L.RenderService,X,this.rows,this.screenElement)),this._instantiationService.setService(x.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(W){return j._onRender.fire(W)})),this.onResize(function(W){return j._renderService.resize(W.cols,W.rows)}),this._soundService=this._instantiationService.createInstance(u.SoundService),this._instantiationService.setService(x.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(O.MouseService),this._instantiationService.setService(x.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(c.Viewport,function(W,G){return j.scrollLines(W,G)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return j.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){j._renderService.onCursorMove(),j._syncTextArea()})),this.register(this.onResize(function(){return j._renderService.onResize(j.cols,j.rows)})),this.register(this.onBlur(function(){return j._renderService.onBlur()})),this.register(this.onFocus(function(){return j._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return j.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(n.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(x.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(W){return j.scrollLines(W.amount,W.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return j._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(W){return j._renderService.onSelectionChanged(W.start,W.end,W.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(W){j.textarea.value=W,j.textarea.focus(),j.textarea.select()})),this.register(this.onScroll(function(){j.viewport.syncScrollArea(),j._selectionService.refresh()})),this.register(t.addDisposableDomListener(this._viewportElement,"scroll",function(){return j._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(p.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return j._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(W){return j._selectionService.onMouseDown(W)})),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(o.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(U){var j,H,V;this._theme=U,(j=this._colorManager)===null||j===void 0||j.setTheme(U),(H=this._renderService)===null||H===void 0||H.setColors(this._colorManager.colors),(V=this.viewport)===null||V===void 0||V.onThemeChange(this._colorManager.colors)},R.prototype.bindMouse=function(){var U=this,j=this,H=this.element;function V(q){var Se,Ce,Ae=j._mouseService.getRawByteCoords(q,j.screenElement,j.cols,j.rows);if(!Ae)return!1;switch(q.overrideType||q.type){case"mousemove":Ce=32,q.buttons===void 0?(Se=3,q.button!==void 0&&(Se=q.button<3?q.button:3)):Se=1&q.buttons?0:4&q.buttons?1:2&q.buttons?2:3;break;case"mouseup":Ce=0,Se=q.button<3?q.button:3;break;case"mousedown":Ce=1,Se=q.button<3?q.button:3;break;case"wheel":q.deltaY!==0&&(Ce=q.deltaY<0?0:1),Se=4;break;default:return!1}return!(Ce===void 0||Se===void 0||Se>4)&&j._coreMouseService.triggerMouseEvent({col:Ae.x-33,row:Ae.y-33,button:Se,action:Ce,ctrl:q.ctrlKey,alt:q.altKey,shift:q.shiftKey})}var X={mouseup:null,wheel:null,mousedrag:null,mousemove:null},W=function(Se){return V(Se),Se.buttons||(U._document.removeEventListener("mouseup",X.mouseup),X.mousedrag&&U._document.removeEventListener("mousemove",X.mousedrag)),U.cancel(Se)},G=function(Se){return V(Se),Se.preventDefault(),U.cancel(Se)},$=function(Se){Se.buttons&&V(Se)},ge=function(Se){Se.buttons||V(Se)};this.register(this._coreMouseService.onProtocolChange(function(q){q?(U.optionsService.options.logLevel==="debug"&&U._logService.debug("Binding to mouse events:",U._coreMouseService.explainEvents(q)),U.element.classList.add("enable-mouse-events"),U._selectionService.disable()):(U._logService.debug("Unbinding from mouse events."),U.element.classList.remove("enable-mouse-events"),U._selectionService.enable()),8&q?X.mousemove||(H.addEventListener("mousemove",ge),X.mousemove=ge):(H.removeEventListener("mousemove",X.mousemove),X.mousemove=null),16&q?X.wheel||(H.addEventListener("wheel",G,{passive:!1}),X.wheel=G):(H.removeEventListener("wheel",X.wheel),X.wheel=null),2&q?X.mouseup||(X.mouseup=W):(U._document.removeEventListener("mouseup",X.mouseup),X.mouseup=null),4&q?X.mousedrag||(X.mousedrag=$):(U._document.removeEventListener("mousemove",X.mousedrag),X.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(t.addDisposableDomListener(H,"mousedown",function(q){if(q.preventDefault(),U.focus(),U._coreMouseService.areMouseEventsActive&&!U._selectionService.shouldForceSelection(q))return V(q),X.mouseup&&U._document.addEventListener("mouseup",X.mouseup),X.mousedrag&&U._document.addEventListener("mousemove",X.mousedrag),U.cancel(q)})),this.register(t.addDisposableDomListener(H,"wheel",function(q){if(!X.wheel){if(!U.buffer.hasScrollback){var Se=U.viewport.getLinesScrolled(q);if(Se===0)return;for(var Ce=i.C0.ESC+(U._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(q.deltaY<0?"A":"B"),Ae="",Ue=0;Ue47)},R.prototype._keyUp=function(U){this._customKeyEventHandler&&this._customKeyEventHandler(U)===!1||(function(j){return j.keyCode===16||j.keyCode===17||j.keyCode===18}(U)||this.focus(),this.updateCursorStyle(U))},R.prototype._keyPress=function(U){var j;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(U)===!1)return!1;if(this.cancel(U),U.charCode)j=U.charCode;else if(U.which===null||U.which===void 0)j=U.keyCode;else{if(U.which===0||U.charCode===0)return!1;j=U.which}return!(!j||(U.altKey||U.ctrlKey||U.metaKey)&&!this._isThirdLevelShift(this.browser,U))&&(j=String.fromCharCode(j),this._onKey.fire({key:j,domEvent:U}),this._showCursor(),this._coreService.triggerDataEvent(j,!0),!0)},R.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},R.prototype.resize=function(U,j){U!==this.cols||j!==this.rows?z.prototype.resize.call(this,U,j):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},R.prototype._afterResize=function(U,j){var H,V;(H=this._charSizeService)===null||H===void 0||H.measure(),(V=this.viewport)===null||V===void 0||V.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 U=1;U=0;s--)(n=i[s])&&(t=(l<3?n(t):l>3?n(r,o,t):n(r,o))||t);return l>3&&t&&Object.defineProperty(r,o,t),t},v=this&&this.__param||function(i,r){return function(o,d){r(o,d,i)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CompositionHelper=void 0;var h=y(5),c=y(1),a=function(){function i(r,o,d,n,l,t){this._textarea=r,this._compositionView=o,this._bufferService=d,this._optionsService=n,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(r){var o=this;this._compositionView.textContent=r.data,this.updateCompositionElements(),setTimeout(function(){o._compositionPosition.end=o._textarea.value.length},0)},i.prototype.compositionend=function(){this._finalizeComposition(!0)},i.prototype.keydown=function(r){if(this._isComposing||this._isSendingComposition){if(r.keyCode===229)return!1;if(r.keyCode===16||r.keyCode===17||r.keyCode===18)return!1;this._finalizeComposition(!1)}return r.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},i.prototype._finalizeComposition=function(r){var o=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,r){var d={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(o._isSendingComposition){o._isSendingComposition=!1;var l=void 0;l=o._isComposing?o._textarea.value.substring(d.start,d.end):o._textarea.value.substring(d.start),o._coreService.triggerDataEvent(l,!0)}},0)}else{this._isSendingComposition=!1;var n=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(n,!0)}},i.prototype._handleAnyTextareaChanges=function(){var r=this,o=this._textarea.value;setTimeout(function(){if(!r._isComposing){var d=r._textarea.value.replace(o,"");d.length>0&&r._coreService.triggerDataEvent(d,!0)}},0)},i.prototype.updateCompositionElements=function(r){var o=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var d=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),n=this._bufferService.buffer.y*d,l=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=l+"px",this._compositionView.style.top=n+"px",this._compositionView.style.height=d+"px",this._compositionView.style.lineHeight=d+"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=n+"px",this._textarea.style.width=t.width+"px",this._textarea.style.height=t.height+"px",this._textarea.style.lineHeight=t.height+"px"}r||setTimeout(function(){return o.updateCompositionElements(!0)},0)}},i=m([v(2,c.IBufferService),v(3,c.IOptionsService),v(4,h.ICharSizeService),v(5,c.ICoreService)],i)}();f.CompositionHelper=a},function(g,f,y){"use strict";var m,v=this&&this.__extends||(m=function(l,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var p in u)u.hasOwnProperty(p)&&(s[p]=u[p])})(l,t)},function(n,l){function t(){this.constructor=n}m(n,l),n.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)}),h=this&&this.__decorate||function(n,l,t,s){var u,p=arguments.length,w=p<3?l:s===null?s=Object.getOwnPropertyDescriptor(l,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(n,l,t,s);else for(var b=n.length-1;b>=0;b--)(u=n[b])&&(w=(p<3?u(w):p>3?u(l,t,w):u(l,t))||w);return p>3&&w&&Object.defineProperty(l,t,w),w},c=this&&this.__param||function(n,l){return function(t,s){l(t,s,n)}};Object.defineProperty(f,"__esModule",{value:!0}),f.Viewport=void 0;var a=y(2),i=y(7),r=y(5),o=y(1),d=function(n){function l(t,s,u,p,w,b,E){var A=n.call(this)||this;return A._scrollLines=t,A._viewportElement=s,A._scrollArea=u,A._bufferService=p,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,n),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 u=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(s<0&&this._viewportElement.scrollTop!==0||s>0&&u0?1:-1),this._wheelPartialScroll%=1):t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(s*=this._bufferService.rows),s},l.prototype._applyScrollModifier=function(t,s){var u=this._optionsService.options.fastScrollModifier;return u==="alt"&&s.altKey||u==="ctrl"&&s.ctrlKey||u==="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,o.IBufferService),c(4,o.IOptionsService),c(5,r.ICharSizeService),c(6,r.IRenderService)],l)}(a.Disposable);f.Viewport=d},function(g,f,y){"use strict";function m(a){return a.replace(/\r?\n/g,"\r")}function v(a,i){return i?"[200~"+a+"[201~":a}function h(a,i,r){a=v(a=m(a),r.decPrivateModes.bracketedPasteMode),r.triggerDataEvent(a,!0),i.value=""}function c(a,i,r){var o=r.getBoundingClientRect(),d=a.clientX-o.left-10,n=a.clientY-o.top-10;i.style.width="20px",i.style.height="20px",i.style.left=d+"px",i.style.top=n+"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=m,f.bracketTextForPaste=v,f.copyHandler=function(a,i){a.clipboardData&&a.clipboardData.setData("text/plain",i.selectionText),a.preventDefault()},f.handlePasteEvent=function(a,i,r){a.stopPropagation(),a.clipboardData&&h(a.clipboardData.getData("text/plain"),i,r)},f.paste=h,f.moveTextAreaUnderMouseCursor=c,f.rightClickHandler=function(a,i,r,o,d){c(a,i,r),d&&!o.isClickInSelection(a)&&o.selectWordAtCursor(a),i.value=o.selectionText,i.select()}},function(g,f,y){"use strict";var m,v=this&&this.__extends||(m=function(l,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var p in u)u.hasOwnProperty(p)&&(s[p]=u[p])})(l,t)},function(n,l){function t(){this.constructor=n}m(n,l),n.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),a=y(21),i=y(22),r=y(24),o=function(){function n(l){this.table=new Uint8Array(l)}return n.prototype.setDefault=function(l,t){c.fill(this.table,l<<4|t)},n.prototype.add=function(l,t,s,u){this.table[t<<8|l]=s<<4|u},n.prototype.addMany=function(l,t,s,u){for(var p=0;p1)throw new Error("only one byte as prefix supported");if((u=t.prefix.charCodeAt(0))&&60>u||u>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 p=0;pw||w>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");u<<=8,u|=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 u<<=8,u|=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 u=this._identifier(t,[48,126]);this._escHandlers[u]===void 0&&(this._escHandlers[u]=[]);var p=this._escHandlers[u];return p.push(s),{dispose:function(){var b=p.indexOf(s);b!==-1&&p.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 u=this._identifier(t);this._csiHandlers[u]===void 0&&(this._csiHandlers[u]=[]);var p=this._csiHandlers[u];return p.push(s),{dispose:function(){var b=p.indexOf(s);b!==-1&&p.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 u=0,p=0,w=this.currentState,b=this._oscParser,E=this._dcsParser,A=this._collect,S=this._params,T=this._transitions.table,L=0;L>4){case 2:for(var x=L+1;;++x){if(x>=s||(u=t[x])<32||u>126&&u<160){this._printHandler(t,L,x),L=x-1;break}if(++x>=s||(u=t[x])<32||u>126&&u<160){this._printHandler(t,L,x),L=x-1;break}if(++x>=s||(u=t[x])<32||u>126&&u<160){this._printHandler(t,L,x),L=x-1;break}if(++x>=s||(u=t[x])<32||u>126&&u<160){this._printHandler(t,L,x),L=x-1;break}}break;case 3:this._executeHandlers[u]?this._executeHandlers[u]():this._executeHandlerFb(u),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:L,code:u,currentState:w,collect:A,params:S,abort:!1}).abort)return;break;case 7:for(var C=this._csiHandlers[A<<8|u],O=C?C.length-1:-1;O>=0&&C[O](S)===!1;O--);O<0&&this._csiHandlerFb(A<<8|u,S),this.precedingCodepoint=0;break;case 8:do switch(u){case 59:S.addParam(0);break;case 58:S.addSubParam(-1);break;default:S.addDigit(u-48)}while(++L47&&u<60);L--;break;case 9:A<<=8,A|=u;break;case 10:for(var N=this._escHandlers[A<<8|u],F=N?N.length-1:-1;F>=0&&N[F]()===!1;F--);F<0&&this._escHandlerFb(A<<8|u),this.precedingCodepoint=0;break;case 11:S.reset(),S.addParam(0),A=0;break;case 12:E.hook(A<<8|u,S);break;case 13:for(var k=L+1;;++k)if(k>=s||(u=t[k])===24||u===26||u===27||u>127&&u<160){E.put(t,L,k),L=k-1;break}break;case 14:E.unhook(u!==24&&u!==26),u===27&&(p|=1),S.reset(),S.addParam(0),A=0,this.precedingCodepoint=0;break;case 4:b.start();break;case 5:for(var P=L+1;;P++)if(P>=s||(u=t[P])<32||u>127&&u<=159){b.put(t,L,P),L=P-1;break}break;case 6:b.end(u!==24&&u!==26),u===27&&(p|=1),S.reset(),S.addParam(0),A=0,this.precedingCodepoint=0}w=15&p}this._collect=A,this.currentState=w},l}(h.Disposable);f.EscapeSequenceParser=d},function(g,f,y){"use strict";var m,v=this&&this.__extends||(m=function(E,A){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,T){S.__proto__=T}||function(S,T){for(var L in T)T.hasOwnProperty(L)&&(S[L]=T[L])})(E,A)},function(b,E){function A(){this.constructor=b}m(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,L=arguments.length,x=L<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=(L<3?T(x):L>3?T(E,A,x):T(E,A))||x);return L>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 a=y(41),i=y(47),r=y(48),o=y(49),d=y(29),n=y(2),l=y(5),t=y(1),s=y(25),u=y(0),p=1,w=function(b){function E(A,S,T,L,x,C,O,N,F){var k=b.call(this)||this;k._colors=A,k._screenElement=S,k._bufferService=x,k._charSizeService=C,k._optionsService=O,k._id=p++,k._onRequestRedraw=new u.EventEmitter;var P=k._optionsService.options.allowTransparency;return k._characterJoinerRegistry=new d.CharacterJoinerRegistry(k._bufferService),k._renderLayers=[new a.TextRenderLayer(k._screenElement,0,k._colors,k._characterJoinerRegistry,P,k._id,k._bufferService,O),new i.SelectionRenderLayer(k._screenElement,1,k._colors,k._id,k._bufferService,O),new o.LinkRenderLayer(k._screenElement,2,k._colors,k._id,T,L,k._bufferService,O),new r.CursorRenderLayer(k._screenElement,3,k._colors,k._id,k._onRequestRedraw,k._bufferService,O,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]){L=!0;var C=A.shift();T=new r.JoinedCellData(this._workCell,E.translateToString(!0,C[0],C[1]),C[1]-C[0]),x=C[1]-1}!L&&this._isOverlapping(T)&&xthis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[s]=u,u},l}(c.BaseRenderLayer);f.TextRenderLayer=d},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.GridCache=void 0;var m=function(){function v(){this.cache=[]}return v.prototype.resize=function(h,c){for(var a=0;a>>24,B=F.rgba>>>16&255,z=F.rgba>>>8&255,R=0;R=this.capacity)a=this._head,this._unlinkNode(a),delete this._map[a.key],a.key=h,a.value=c,this._map[h]=a;else{var i=this._nodePool;i.length>0?((a=i.pop()).key=h,a.value=c):a={prev:null,next:null,key:h,value:c},this._map[h]=a,this.size++}this._appendNode(a)},v}();f.LRUMap=m},function(g,f,y){"use strict";var m,v=this&&this.__extends||(m=function(a,i){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var d in o)o.hasOwnProperty(d)&&(r[d]=o[d])})(a,i)},function(c,a){function i(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)});Object.defineProperty(f,"__esModule",{value:!0}),f.SelectionRenderLayer=void 0;var h=function(c){function a(i,r,o,d,n,l){var t=c.call(this,i,"selection",r,!0,o,d,n,l)||this;return t._clearState(),t}return v(a,c),a.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},a.prototype.resize=function(i){c.prototype.resize.call(this,i),this._clearState()},a.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},a.prototype.onSelectionChanged=function(i,r,o){if(this._didStateChange(i,r,o,this._bufferService.buffer.ydisp))if(this._clearAll(),i&&r){var d=i[1]-this._bufferService.buffer.ydisp,n=r[1]-this._bufferService.buffer.ydisp,l=Math.max(d,0),t=Math.min(n,this._bufferService.rows-1);if(!(l>=this._bufferService.rows||t<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,o){var s=i[0],u=r[0]-s,p=t-l+1;this._fillCells(s,l,u,p)}else{s=d===l?i[0]:0;var w=l===t?r[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=n===t?r[0]:this._bufferService.cols;this._fillCells(0,t,E,1)}}this._state.start=[i[0],i[1]],this._state.end=[r[0],r[1]],this._state.columnSelectMode=o,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},a.prototype._didStateChange=function(i,r,o,d){return!this._areCoordinatesEqual(i,this._state.start)||!this._areCoordinatesEqual(r,this._state.end)||o!==this._state.columnSelectMode||d!==this._state.ydisp},a.prototype._areCoordinatesEqual=function(i,r){return!(!i||!r)&&i[0]===r[0]&&i[1]===r[1]},a}(y(13).BaseRenderLayer);f.SelectionRenderLayer=h},function(g,f,y){"use strict";var m,v=this&&this.__extends||(m=function(o,d){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,l){n.__proto__=l}||function(n,l){for(var t in l)l.hasOwnProperty(t)&&(n[t]=l[t])})(o,d)},function(r,o){function d(){this.constructor=r}m(r,o),r.prototype=o===null?Object.create(o):(d.prototype=o.prototype,new d)});Object.defineProperty(f,"__esModule",{value:!0}),f.CursorRenderLayer=void 0;var h=y(13),c=y(4),a=function(r){function o(d,n,l,t,s,u,p,w,b){var E=r.call(this,d,"cursor",n,!0,l,t,u,p)||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(o,r),o.prototype.resize=function(d){r.prototype.resize.call(this,d),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},o.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},o.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},o.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},o.prototype.onOptionsChanged=function(){var d,n=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new i(this._coreBrowserService.isFocused,function(){n._render(!0)})):((d=this._cursorBlinkStateManager)===null||d===void 0||d.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},o.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},o.prototype.onGridChanged=function(d,n){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},o.prototype._render=function(d){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var n=this._bufferService.buffer.ybase+this._bufferService.buffer.y,l=n-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(n).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()},o.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})},o.prototype._renderBarCursor=function(d,n,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(d,n,this._optionsService.options.cursorWidth),this._ctx.restore()},o.prototype._renderBlockCursor=function(d,n,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(d,n,l.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(l,d,n),this._ctx.restore()},o.prototype._renderUnderlineCursor=function(d,n,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(d,n),this._ctx.restore()},o.prototype._renderBlurCursor=function(d,n,l){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(d,n,l.getWidth(),1),this._ctx.restore()},o}(h.BaseRenderLayer);f.CursorRenderLayer=a;var i=function(){function r(o,d){this._renderCallback=d,this.isCursorVisible=!0,o&&this._restartInterval()}return Object.defineProperty(r.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),r.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)},r.prototype.restartBlinkAnimation=function(){var o=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){o._renderCallback(),o._animationFrame=void 0})))},r.prototype._restartInterval=function(o){var d=this;o===void 0&&(o=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(d._animationTimeRestarted){var n=600-(Date.now()-d._animationTimeRestarted);if(d._animationTimeRestarted=void 0,n>0)return void d._restartInterval(n)}d.isCursorVisible=!1,d._animationFrame=window.requestAnimationFrame(function(){d._renderCallback(),d._animationFrame=void 0}),d._blinkInterval=window.setInterval(function(){if(d._animationTimeRestarted){var l=600-(Date.now()-d._animationTimeRestarted);return d._animationTimeRestarted=void 0,void d._restartInterval(l)}d.isCursorVisible=!d.isCursorVisible,d._animationFrame=window.requestAnimationFrame(function(){d._renderCallback(),d._animationFrame=void 0})},600)},o)},r.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)},r.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},r}()},function(g,f,y){"use strict";var m,v=this&&this.__extends||(m=function(o,d){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,l){n.__proto__=l}||function(n,l){for(var t in l)l.hasOwnProperty(t)&&(n[t]=l[t])})(o,d)},function(r,o){function d(){this.constructor=r}m(r,o),r.prototype=o===null?Object.create(o):(d.prototype=o.prototype,new d)});Object.defineProperty(f,"__esModule",{value:!0}),f.LinkRenderLayer=void 0;var h=y(13),c=y(9),a=y(26),i=function(r){function o(d,n,l,t,s,u,p,w){var b=r.call(this,d,"link",n,!0,l,t,p,w)||this;return s.onShowLinkUnderline(function(E){return b._onShowLinkUnderline(E)}),s.onHideLinkUnderline(function(E){return b._onHideLinkUnderline(E)}),u.onShowLinkUnderline(function(E){return b._onShowLinkUnderline(E)}),u.onHideLinkUnderline(function(E){return b._onHideLinkUnderline(E)}),b}return v(o,r),o.prototype.resize=function(d){r.prototype.resize.call(this,d),this._state=void 0},o.prototype.reset=function(){this._clearCurrentLink()},o.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var d=this._state.y2-this._state.y1-1;d>0&&this._clearCells(0,this._state.y1+1,this._state.cols,d),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},o.prototype._onShowLinkUnderline=function(d){if(d.fg===c.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:d.fg&&a.is256Color(d.fg)?this._ctx.fillStyle=this._colors.ansi[d.fg].css:this._ctx.fillStyle=this._colors.foreground.css,d.y1===d.y2)this._fillBottomLineAtCells(d.x1,d.y1,d.x2-d.x1);else{this._fillBottomLineAtCells(d.x1,d.y1,d.cols-d.x1);for(var n=d.y1+1;n=0;u--)(l=r[u])&&(s=(t<3?l(s):t>3?l(o,d,s):l(o,d))||s);return t>3&&s&&Object.defineProperty(o,d,s),s},v=this&&this.__param||function(r,o){return function(d,n){o(d,n,r)}};Object.defineProperty(f,"__esModule",{value:!0}),f.MouseZone=f.Linkifier=void 0;var h=y(0),c=y(1),a=function(){function r(o,d,n){this._bufferService=o,this._logService=d,this._unicodeService=n,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(r.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),r.prototype.attachToDom=function(o,d){this._element=o,this._mouseZoneManager=d},r.prototype.linkifyRows=function(o,d){var n=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=o,this._rowsToLinkify.end=d):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,o),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,d)),this._mouseZoneManager.clearAll(o,d),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return n._linkifyRows()},r._timeBeforeLatency))},r.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var o=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var d=o.ydisp+this._rowsToLinkify.start;if(!(d>=o.lines.length)){for(var n=o.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,l=Math.ceil(2e3/this._bufferService.cols),t=this._bufferService.buffer.iterator(!1,d,n,l,l);t.hasNext();)for(var s=t.next(),u=0;u=0;d--)if(o.priority<=this._linkMatchers[d].priority)return void this._linkMatchers.splice(d+1,0,o);this._linkMatchers.splice(0,0,o)}else this._linkMatchers.push(o)},r.prototype.deregisterLinkMatcher=function(o){for(var d=0;d>9&511:void 0;n.validationCallback?n.validationCallback(E,function(x){t._rowsTimeoutId||x&&t._addLink(A[1],A[0]-t._bufferService.buffer.ydisp,E,n,L)}):w._addLink(A[1],A[0]-w._bufferService.buffer.ydisp,E,n,L)},w=this;(l=s.exec(d))!==null&&!(p()==="break"););},r.prototype._addLink=function(o,d,n,l,t){var s=this;if(this._mouseZoneManager&&this._element){var u=this._unicodeService.getStringCellWidth(n),p=o%this._bufferService.cols,w=d+Math.floor(o/this._bufferService.cols),b=(p+u)%this._bufferService.cols,E=w+Math.floor((p+u)/this._bufferService.cols);b===0&&(b=this._bufferService.cols,E--),this._mouseZoneManager.add(new i(p+1,w+1,b+1,E+1,function(A){if(l.handler)return l.handler(A,n);var S=window.open();S?(S.opener=null,S.location.href=n):console.warn("Opening link blocked as opener could not be cleared")},function(){s._onShowLinkUnderline.fire(s._createLinkHoverEvent(p,w,b,E,t)),s._element.classList.add("xterm-cursor-pointer")},function(A){s._onLinkTooltip.fire(s._createLinkHoverEvent(p,w,b,E,t)),l.hoverTooltipCallback&&l.hoverTooltipCallback(A,n,{start:{x:p,y:w},end:{x:b,y:E}})},function(){s._onHideLinkUnderline.fire(s._createLinkHoverEvent(p,w,b,E,t)),s._element.classList.remove("xterm-cursor-pointer"),l.hoverLeaveCallback&&l.hoverLeaveCallback()},function(A){return!l.willLinkActivate||l.willLinkActivate(A,n)}))}},r.prototype._createLinkHoverEvent=function(o,d,n,l,t){return{x1:o,y1:d,x2:n,y2:l,cols:this._bufferService.cols,fg:t}},r._timeBeforeLatency=200,r=m([v(0,c.IBufferService),v(1,c.ILogService),v(2,c.IUnicodeService)],r)}();f.Linkifier=a;var i=function(o,d,n,l,t,s,u,p,w){this.x1=o,this.y1=d,this.x2=n,this.y2=l,this.clickCallback=t,this.hoverCallback=s,this.tooltipCallback=u,this.leaveCallback=p,this.willLinkActivate=w};f.MouseZone=i},function(g,f,y){"use strict";var m,v=this&&this.__extends||(m=function(E,A){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,T){S.__proto__=T}||function(S,T){for(var L in T)T.hasOwnProperty(L)&&(S[L]=T[L])})(E,A)},function(b,E){function A(){this.constructor=b}m(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,L=arguments.length,x=L<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=(L<3?T(x):L>3?T(E,A,x):T(E,A))||x);return L>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 a=y(11),i=y(52),r=y(4),o=y(0),d=y(5),n=y(1),l=y(30),t=y(53),s=y(2),u=String.fromCharCode(160),p=new RegExp(u,"g"),w=function(b){function E(A,S,T,L,x,C,O){var N=b.call(this)||this;return N._element=A,N._screenElement=S,N._bufferService=T,N._coreService=L,N._mouseService=x,N._optionsService=C,N._renderService=O,N._dragScrollAmount=0,N._enabled=!0,N._workCell=new r.CellData,N._mouseDownTimeStamp=0,N._onLinuxMouseSelection=N.register(new o.EventEmitter),N._onRedrawRequest=N.register(new o.EventEmitter),N._onSelectionChange=N.register(new o.EventEmitter),N._onRequestScrollLines=N.register(new o.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 L=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=L.translateBufferLineToString(C,!0,S[0],T[0]);x.push(O)}}else{var N=S[1]===T[1]?T[0]:void 0;for(x.push(L.translateBufferLineToString(S[1],!0,S[0],N)),C=S[1]+1;C<=T[1]-1;C++){var F=L.lines.get(C);O=L.translateBufferLineToString(C,!0),F&&F.isWrapped?x[x.length-1]+=O:x.push(O)}S[1]!==T[1]&&(F=L.lines.get(T[1]),O=L.translateBufferLineToString(T[1],!0,0,T[0]),F&&F.isWrapped?x[x.length-1]+=O:x.push(O))}return x.map(function(k){return k.replace(p," ")}).join(a.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()})),a.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,L=this._model.finalSelectionEnd;return!!(T&&L&&S)&&this._areCoordsInSelection(S,T,L)},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 a.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&&!(a.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 L=t.moveToCellSequence(T[0]-1,T[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(L,!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],L=0;S[0]>=L;L++){var x=A.loadCell(L,this._workCell).getChars().length;this._workCell.getWidth()===0?T--:x>1&&S[0]!==L&&(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,L){if(T===void 0&&(T=!0),L===void 0&&(L=!0),!(A[0]>=this._bufferService.cols)){var x=this._bufferService.buffer,C=x.lines.get(A[1]);if(C){var O=x.translateBufferLineToString(A[1],!1),N=this._convertViewportColToCharacterIndex(C,A),F=N,k=A[0]-N,P=0,B=0,z=0,R=0;if(O.charAt(N)===" "){for(;N>0&&O.charAt(N-1)===" ";)N--;for(;F1&&(R+=H-1,F+=H-1);U>0&&N>0&&!this._isCharWordSeparator(C.loadCell(U-1,this._workCell));){C.loadCell(U-1,this._workCell);var V=this._workCell.getChars().length;this._workCell.getWidth()===0?(P++,U--):V>1&&(z+=V-1,N-=V-1),N--,U--}for(;j1&&(R+=X-1,F+=X-1),F++,j++}}F++;var W=N+k-P+z,G=Math.min(this._bufferService.cols,F-N+P+B-z-R);if(S||O.slice(N,F).trim()!==""){if(T&&W===0&&C.getCodePoint(0)!==32){var $=x.lines.get(A[1]-1);if($&&C.isWrapped&&$.getCodePoint(this._bufferService.cols-1)!==32){var ge=this._getWordAt([this._bufferService.cols-1,A[1]-1],!1,!0,!1);if(ge){var q=this._bufferService.cols-ge.start;W-=q,G+=q}}}if(L&&W+G===this._bufferService.cols&&C.getCodePoint(this._bufferService.cols-1)!==32){var Se=x.lines.get(A[1]+1);if(Se&&Se.isWrapped&&Se.getCodePoint(0)!==32){var Ce=this._getWordAt([0,A[1]+1],!1,!1,!0);Ce&&(G+=Ce.length)}}return{start:W,length:G}}}}},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,n.IBufferService),c(3,n.ICoreService),c(4,d.IMouseService),c(5,n.IOptionsService),c(6,d.IRenderService)],E)}(s.Disposable);f.SelectionService=w},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.SelectionModel=void 0;var m=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=m},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.moveToCellSequence=void 0;var m=y(12);function v(o,d,n,l){var t=o-h(n,o),s=d-h(n,d);return r(Math.abs(t-s)-function(u,p,w){for(var b=0,E=u-h(w,u),A=p-h(w,p),S=0;S=0&&dd?"A":"B"}function a(o,d,n,l,t,s){for(var u=o,p=d,w="";u!==n||p!==l;)u+=t?1:-1,t&&u>s.cols-1?(w+=s.buffer.translateBufferLineToString(p,!1,o,u),u=0,o=0,p++):!t&&u<0&&(w+=s.buffer.translateBufferLineToString(p,!1,0,o+1),o=u=s.cols-1,p--);return w+s.buffer.translateBufferLineToString(p,!1,o,u)}function i(o,d){var n=d?"O":"[";return m.C0.ESC+n+o}function r(o,d){o=Math.floor(o);for(var n="",l=0;l0?A-h(S,A):b;var x=A,C=function(O,N,F,k,P,B){var z;return z=v(F,k,P,B).length>0?k-h(P,k):N,O=F&&zo?"D":"C",r(Math.abs(s-o),i(t,l));t=u>d?"D":"C";var p=Math.abs(u-d);return r(function(w,b){return b.cols-w}(u>d?o:s,n)+(p-1)*n.cols+1+((u>d?s:o)-1),i(t,l))}},function(g,f,y){"use strict";var m=this&&this.__decorate||function(a,i,r,o){var d,n=arguments.length,l=n<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,r):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(a,i,r,o);else for(var t=a.length-1;t>=0;t--)(d=a[t])&&(l=(n<3?d(l):n>3?d(i,r,l):d(i,r))||l);return n>3&&l&&Object.defineProperty(i,r,l),l},v=this&&this.__param||function(a,i){return function(r,o){i(r,o,a)}};Object.defineProperty(f,"__esModule",{value:!0}),f.SoundService=void 0;var h=y(1),c=function(){function a(i){this._optionsService=i}return Object.defineProperty(a,"audioContext",{get:function(){if(!a._audioContext){var r=window.AudioContext||window.webkitAudioContext;if(!r)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;a._audioContext=new r}return a._audioContext},enumerable:!1,configurable:!0}),a.prototype.playBellSound=function(){var i=a.audioContext;if(i){var r=i.createBufferSource();i.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(o){r.buffer=o,r.connect(i.destination),r.start(0)})}},a.prototype._base64ToArrayBuffer=function(i){for(var r=window.atob(i),o=r.length,d=new Uint8Array(o),n=0;n=0;b--)(u=n[b])&&(w=(p<3?u(w):p>3?u(l,t,w):u(l,t))||w);return p>3&&w&&Object.defineProperty(l,t,w),w},c=this&&this.__param||function(n,l){return function(t,s){l(t,s,n)}};Object.defineProperty(f,"__esModule",{value:!0}),f.MouseZoneManager=void 0;var a=y(2),i=y(7),r=y(5),o=y(1),d=function(n){function l(t,s,u,p,w,b){var E=n.call(this)||this;return E._element=t,E._screenElement=s,E._bufferService=u,E._mouseService=p,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,n),l.prototype.dispose=function(){n.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 u=0;ut&&p.y1<=s+1||p.y2>t&&p.y2<=s+1||p.y1s+1)&&(this._currentZone&&this._currentZone===p&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(u--,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,u=this._findZoneEventAt(t);u!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),u&&(this._currentZone=u,u.hoverCallback&&u.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),u=this._getSelectionLength();s&&u===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 u=s[0],p=s[1],w=0;w=b.x1&&u=b.x1||p===b.y2&&ub.y1&&ps;)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 u=0;u0?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(){u._accessibilityTreeRoot.appendChild(u._liveRegion)},0))},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,c.isMac&&d.removeElementFromParent(this._liveRegion)},t.prototype._onKey=function(s){this._clearLiveRegion(),this._charsToConsume.push(s)},t.prototype._refreshRows=function(s,u){this._renderRowsDebouncer.refresh(s,u,this._terminal.rows)},t.prototype._renderRows=function(s,u){for(var p=this._terminal.buffer,w=p.lines.length.toString(),b=s;b<=u;b++){var E=p.translateBufferLineToString(p.ydisp+b,!0),A=(p.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;L--)(A=p[L])&&(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(p,w){return function(b,E){w(b,E,p)}};Object.defineProperty(f,"__esModule",{value:!0}),f.DomRenderer=void 0;var a=y(58),i=y(9),r=y(2),o=y(5),d=y(1),n=y(0),l=y(10),t=y(17),s=1,u=function(p){function w(b,E,A,S,T,L,x,C,O){var N=p.call(this)||this;return N._colors=b,N._element=E,N._screenElement=A,N._viewportElement=S,N._linkifier=T,N._linkifier2=L,N._charSizeService=x,N._optionsService=C,N._bufferService=O,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 a.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,p),Object.defineProperty(w.prototype,"onRequestRedraw",{get:function(){return new n.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),p.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,L=Math.max(S,0),x=Math.min(T,this._bufferService.rows-1);if(!(L>=this._bufferService.rows||x<0)){var C=document.createDocumentFragment();if(A)C.appendChild(this._createSelectionElement(L,b[0],E[0],x-L+1));else{var O=S===L?b[0]:0,N=L===x?E[0]:this._bufferService.cols;C.appendChild(this._createSelectionElement(L,O,N));var F=x-L-1;if(C.appendChild(this._createSelectionElement(L+1,0,this._bufferService.cols,F)),L!==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,o.ICharSizeService),c(7,d.IOptionsService),c(8,d.IBufferService)],w)}(r.Disposable);f.DomRenderer=u},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 m=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 a=function(){function r(o,d,n){this._document=o,this._optionsService=d,this._colors=n,this._workCell=new h.CellData}return r.prototype.setColors=function(o){this._colors=o},r.prototype.createRow=function(o,d,n,l,t,s,u){for(var p=this._document.createDocumentFragment(),w=0,b=Math.min(o.length,u)-1;b>=0;b--)if(o.loadCell(b,this._workCell).getCode()!==v.NULL_CELL_CODE||d&&b===l){w=b+1;break}for(b=0;b1&&(A.style.width=s*E+"px"),d&&b===l)switch(A.classList.add(f.CURSOR_CLASS),t&&A.classList.add(f.CURSOR_BLINK_CLASS),n){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(),L=this._workCell.getBgColor(),x=this._workCell.getBgColorMode(),C=!!this._workCell.isInverse();if(C){var O=S;S=L,L=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-"+m.INVERTED_DEFAULT_COLOR)}switch(x){case 16777216:case 33554432:A.classList.add("xterm-bg-"+L);break;case 50331648:this._addStyle(A,"background-color:#"+i(L.toString(16),"0",6));break;case 0:default:C&&A.classList.add("xterm-bg-"+m.INVERTED_DEFAULT_COLOR)}p.appendChild(A)}}return p},r.prototype._applyMinimumContrast=function(o,d,n){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(d,n,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,l!=null?l:null)),!!l&&(this._addStyle(o,"color:"+l.css),!0)},r.prototype._addStyle=function(o,d){o.setAttribute("style",""+(o.getAttribute("style")||"")+d+";")},r}();function i(r,o,d){for(;r.length"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};f.evaluateKeyboardEvent=function(h,c,a,i){var r={type:0,cancel:!1,key:void 0},o=(h.shiftKey?1:0)|(h.altKey?2:0)|(h.ctrlKey?4:0)|(h.metaKey?8:0);switch(h.keyCode){case 0:h.key==="UIKeyInputUpArrow"?r.key=c?m.C0.ESC+"OA":m.C0.ESC+"[A":h.key==="UIKeyInputLeftArrow"?r.key=c?m.C0.ESC+"OD":m.C0.ESC+"[D":h.key==="UIKeyInputRightArrow"?r.key=c?m.C0.ESC+"OC":m.C0.ESC+"[C":h.key==="UIKeyInputDownArrow"&&(r.key=c?m.C0.ESC+"OB":m.C0.ESC+"[B");break;case 8:if(h.shiftKey){r.key=m.C0.BS;break}if(h.altKey){r.key=m.C0.ESC+m.C0.DEL;break}r.key=m.C0.DEL;break;case 9:if(h.shiftKey){r.key=m.C0.ESC+"[Z";break}r.key=m.C0.HT,r.cancel=!0;break;case 13:r.key=h.altKey?m.C0.ESC+m.C0.CR:m.C0.CR,r.cancel=!0;break;case 27:r.key=m.C0.ESC,h.altKey&&(r.key=m.C0.ESC+m.C0.ESC),r.cancel=!0;break;case 37:if(h.metaKey)break;o?(r.key=m.C0.ESC+"[1;"+(o+1)+"D",r.key===m.C0.ESC+"[1;3D"&&(r.key=m.C0.ESC+(a?"b":"[1;5D"))):r.key=c?m.C0.ESC+"OD":m.C0.ESC+"[D";break;case 39:if(h.metaKey)break;o?(r.key=m.C0.ESC+"[1;"+(o+1)+"C",r.key===m.C0.ESC+"[1;3C"&&(r.key=m.C0.ESC+(a?"f":"[1;5C"))):r.key=c?m.C0.ESC+"OC":m.C0.ESC+"[C";break;case 38:if(h.metaKey)break;o?(r.key=m.C0.ESC+"[1;"+(o+1)+"A",a||r.key!==m.C0.ESC+"[1;3A"||(r.key=m.C0.ESC+"[1;5A")):r.key=c?m.C0.ESC+"OA":m.C0.ESC+"[A";break;case 40:if(h.metaKey)break;o?(r.key=m.C0.ESC+"[1;"+(o+1)+"B",a||r.key!==m.C0.ESC+"[1;3B"||(r.key=m.C0.ESC+"[1;5B")):r.key=c?m.C0.ESC+"OB":m.C0.ESC+"[B";break;case 45:h.shiftKey||h.ctrlKey||(r.key=m.C0.ESC+"[2~");break;case 46:r.key=o?m.C0.ESC+"[3;"+(o+1)+"~":m.C0.ESC+"[3~";break;case 36:r.key=o?m.C0.ESC+"[1;"+(o+1)+"H":c?m.C0.ESC+"OH":m.C0.ESC+"[H";break;case 35:r.key=o?m.C0.ESC+"[1;"+(o+1)+"F":c?m.C0.ESC+"OF":m.C0.ESC+"[F";break;case 33:h.shiftKey?r.type=2:r.key=m.C0.ESC+"[5~";break;case 34:h.shiftKey?r.type=3:r.key=m.C0.ESC+"[6~";break;case 112:r.key=o?m.C0.ESC+"[1;"+(o+1)+"P":m.C0.ESC+"OP";break;case 113:r.key=o?m.C0.ESC+"[1;"+(o+1)+"Q":m.C0.ESC+"OQ";break;case 114:r.key=o?m.C0.ESC+"[1;"+(o+1)+"R":m.C0.ESC+"OR";break;case 115:r.key=o?m.C0.ESC+"[1;"+(o+1)+"S":m.C0.ESC+"OS";break;case 116:r.key=o?m.C0.ESC+"[15;"+(o+1)+"~":m.C0.ESC+"[15~";break;case 117:r.key=o?m.C0.ESC+"[17;"+(o+1)+"~":m.C0.ESC+"[17~";break;case 118:r.key=o?m.C0.ESC+"[18;"+(o+1)+"~":m.C0.ESC+"[18~";break;case 119:r.key=o?m.C0.ESC+"[19;"+(o+1)+"~":m.C0.ESC+"[19~";break;case 120:r.key=o?m.C0.ESC+"[20;"+(o+1)+"~":m.C0.ESC+"[20~";break;case 121:r.key=o?m.C0.ESC+"[21;"+(o+1)+"~":m.C0.ESC+"[21~";break;case 122:r.key=o?m.C0.ESC+"[23;"+(o+1)+"~":m.C0.ESC+"[23~";break;case 123:r.key=o?m.C0.ESC+"[24;"+(o+1)+"~":m.C0.ESC+"[24~";break;default:if(!h.ctrlKey||h.shiftKey||h.altKey||h.metaKey)if(a&&!i||!h.altKey||h.metaKey)a&&!h.altKey&&!h.ctrlKey&&h.metaKey?h.keyCode===65&&(r.type=1):h.key&&!h.ctrlKey&&!h.altKey&&!h.metaKey&&h.keyCode>=48&&h.key.length===1?r.key=h.key:h.key&&h.ctrlKey&&h.key==="_"&&(r.key=m.C0.US);else{var d=v[h.keyCode],n=d&&d[h.shiftKey?1:0];if(n)r.key=m.C0.ESC+n;else if(h.keyCode>=65&&h.keyCode<=90){var l=h.ctrlKey?h.keyCode-64:h.keyCode+32;r.key=m.C0.ESC+String.fromCharCode(l)}}else h.keyCode>=65&&h.keyCode<=90?r.key=String.fromCharCode(h.keyCode-64):h.keyCode===32?r.key=m.C0.NUL:h.keyCode>=51&&h.keyCode<=55?r.key=String.fromCharCode(h.keyCode-51+27):h.keyCode===56?r.key=m.C0.DEL:h.keyCode===219?r.key=m.C0.ESC:h.keyCode===220?r.key=m.C0.FS:h.keyCode===221&&(r.key=m.C0.GS)}return r}},function(g,f,y){"use strict";var m,v=this&&this.__extends||(m=function(u,p){return(m=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])})(u,p)},function(s,u){function p(){this.constructor=s}m(s,u),s.prototype=u===null?Object.create(u):(p.prototype=u.prototype,new p)}),h=this&&this.__decorate||function(s,u,p,w){var b,E=arguments.length,A=E<3?u:w===null?w=Object.getOwnPropertyDescriptor(u,p):w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(s,u,p,w);else for(var S=s.length-1;S>=0;S--)(b=s[S])&&(A=(E<3?b(A):E>3?b(u,p,A):b(u,p))||A);return E>3&&A&&Object.defineProperty(u,p,A),A},c=this&&this.__param||function(s,u){return function(p,w){u(p,w,s)}};Object.defineProperty(f,"__esModule",{value:!0}),f.RenderService=void 0;var a=y(31),i=y(0),r=y(2),o=y(32),d=y(7),n=y(1),l=y(5),t=function(s){function u(p,w,b,E,A,S){var T=s.call(this)||this;if(T._renderer=p,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 a.RenderDebouncer(function(x,C){return T._renderRows(x,C)}),T.register(T._renderDebouncer),T._screenDprMonitor=new o.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(d.addDisposableDomListener(window,"resize",function(){return T.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var L=new IntersectionObserver(function(x){return T._onIntersectionChange(x[x.length-1])},{threshold:0});L.observe(b),T.register({dispose:function(){return L.disconnect()}})}return T}return v(u,s),Object.defineProperty(u.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),u.prototype._onIntersectionChange=function(p){this._isPaused=p.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},u.prototype.refreshRows=function(p,w,b){b===void 0&&(b=!1),this._isPaused?this._needsFullRefresh=!0:(b||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(p,w,this._rowCount))},u.prototype._renderRows=function(p,w){this._renderer.renderRows(p,w),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:p,end:w}),this._isNextRenderRedrawOnly=!0},u.prototype.resize=function(p,w){this._rowCount=w,this._fireOnCanvasResize()},u.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},u.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},u.prototype.dispose=function(){s.prototype.dispose.call(this)},u.prototype.setRenderer=function(p){var w=this;this._renderer.dispose(),this._renderer=p,this._renderer.onRequestRedraw(function(b){return w.refreshRows(b.start,b.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},u.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},u.prototype.setColors=function(p){this._renderer.setColors(p),this._fullRefresh()},u.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},u.prototype.onResize=function(p,w){this._renderer.onResize(p,w),this._fullRefresh()},u.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},u.prototype.onBlur=function(){this._renderer.onBlur()},u.prototype.onFocus=function(){this._renderer.onFocus()},u.prototype.onSelectionChanged=function(p,w,b){this._selectionState.start=p,this._selectionState.end=w,this._selectionState.columnSelectMode=b,this._renderer.onSelectionChanged(p,w,b)},u.prototype.onCursorMove=function(){this._renderer.onCursorMove()},u.prototype.clear=function(){this._renderer.clear()},u.prototype.registerCharacterJoiner=function(p){return this._renderer.registerCharacterJoiner(p)},u.prototype.deregisterCharacterJoiner=function(p){return this._renderer.deregisterCharacterJoiner(p)},u=h([c(3,n.IOptionsService),c(4,l.ICharSizeService),c(5,n.IBufferService)],u)}(r.Disposable);f.RenderService=t},function(g,f,y){"use strict";var m=this&&this.__decorate||function(r,o,d,n){var l,t=arguments.length,s=t<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,d):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,o,d,n);else for(var u=r.length-1;u>=0;u--)(l=r[u])&&(s=(t<3?l(s):t>3?l(o,d,s):l(o,d))||s);return t>3&&s&&Object.defineProperty(o,d,s),s},v=this&&this.__param||function(r,o){return function(d,n){o(d,n,r)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CharSizeService=void 0;var h=y(1),c=y(0),a=function(){function r(o,d,n){this._optionsService=n,this.width=0,this.height=0,this._onCharSizeChange=new c.EventEmitter,this._measureStrategy=new i(o,d,this._optionsService)}return Object.defineProperty(r.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),r.prototype.measure=function(){var o=this._measureStrategy.measure();o.width===this.width&&o.height===this.height||(this.width=o.width,this.height=o.height,this._onCharSizeChange.fire())},r=m([v(2,h.IOptionsService)],r)}();f.CharSizeService=a;var i=function(){function r(o,d,n){this._document=o,this._parentElement=d,this._optionsService=n,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 r.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var o=this._measureElement.getBoundingClientRect();return o.width!==0&&o.height!==0&&(this._result.width=o.width,this._result.height=Math.ceil(o.height)),this._result},r}()},function(g,f,y){"use strict";var m=this&&this.__decorate||function(i,r,o,d){var n,l=arguments.length,t=l<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,o):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(i,r,o,d);else for(var s=i.length-1;s>=0;s--)(n=i[s])&&(t=(l<3?n(t):l>3?n(r,o,t):n(r,o))||t);return l>3&&t&&Object.defineProperty(r,o,t),t},v=this&&this.__param||function(i,r){return function(o,d){r(o,d,i)}};Object.defineProperty(f,"__esModule",{value:!0}),f.MouseService=void 0;var h=y(5),c=y(30),a=function(){function i(r,o){this._renderService=r,this._charSizeService=o}return i.prototype.getCoords=function(r,o,d,n,l){return c.getCoords(r,o,d,n,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,l)},i.prototype.getRawByteCoords=function(r,o,d,n){var l=this.getCoords(r,o,d,n);return c.getRawByteCoords(l)},i=m([v(0,h.IRenderService),v(1,h.ICharSizeService)],i)}();f.MouseService=a},function(g,f,y){"use strict";var m,v=this&&this.__extends||(m=function(l,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var p in u)u.hasOwnProperty(p)&&(s[p]=u[p])})(l,t)},function(n,l){function t(){this.constructor=n}m(n,l),n.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)}),h=this&&this.__decorate||function(n,l,t,s){var u,p=arguments.length,w=p<3?l:s===null?s=Object.getOwnPropertyDescriptor(l,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(n,l,t,s);else for(var b=n.length-1;b>=0;b--)(u=n[b])&&(w=(p<3?u(w):p>3?u(l,t,w):u(l,t))||w);return p>3&&w&&Object.defineProperty(l,t,w),w},c=this&&this.__param||function(n,l){return function(t,s){l(t,s,n)}};Object.defineProperty(f,"__esModule",{value:!0}),f.Linkifier2=void 0;var a=y(1),i=y(0),r=y(2),o=y(7),d=function(n){function l(t){var s=n.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(r.getDisposeArrayDisposable(s._linkCacheDisposables)),s}return v(l,n),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 p=s._linkProviders.indexOf(t);p!==-1&&s._linkProviders.splice(p,1)}}},l.prototype.attachToDom=function(t,s,u){var p=this;this._element=t,this._mouseService=s,this._renderService=u,this.register(o.addDisposableDomListener(this._element,"mouseleave",function(){p._isMouseOut=!0,p._clearCurrentLink()})),this.register(o.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(o.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 u=t.composedPath(),p=0;pt?this._bufferService.cols:E.link.range.end.x,T=A;T<=S;T++){if(u.has(T)){w.splice(b--,1);break}u.add(T)}}},l.prototype._checkLinkProviderResult=function(t,s,u){var p,w=this;if(!this._activeProviderReplies)return u;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,r.disposeArray(this._linkCacheDisposables))},l.prototype._handleNewLink=function(t){var s=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var u=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);u&&this._linkAtPosition(t.link,u)&&(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(p){var w=p.start===0?0:p.start+1+s._bufferService.buffer.ydisp;s._clearCurrentLink(w,p.end+1+s._bufferService.buffer.ydisp)})))}},l.prototype._linkHover=function(t,s,u){var p;((p=this._currentLink)===null||p===void 0?void 0:p.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(u,s.text)},l.prototype._fireUnderlineEvent=function(t,s){var u=t.range,p=this._bufferService.buffer.ydisp,w=this._createLinkUnderlineEvent(u.start.x-1,u.start.y-p-1,u.end.x,u.end.y-p-1,void 0);(s?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(w)},l.prototype._linkLeave=function(t,s,u){var p;((p=this._currentLink)===null||p===void 0?void 0:p.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(u,s.text)},l.prototype._linkAtPosition=function(t,s){var u=t.range.start.y===t.range.end.y,p=t.range.start.ys.y;return(u&&t.range.start.x<=s.x&&t.range.end.x>=s.x||p&&t.range.end.x>=s.x||w&&t.range.start.x<=s.x||p&&w)&&t.range.start.y<=s.y&&t.range.end.y>=s.y},l.prototype._positionFromMouseEvent=function(t,s,u){var p=u.getCoords(t,s,this._bufferService.cols,this._bufferService.rows);if(p)return{x:p[0],y:p[1]+this._bufferService.buffer.ydisp}},l.prototype._createLinkUnderlineEvent=function(t,s,u,p,w){return{x1:t,y1:s,x2:u,y2:p,cols:this._bufferService.cols,fg:w}},l=h([c(0,a.IBufferService)],l)}(r.Disposable);f.Linkifier2=d},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CoreBrowserService=void 0;var m=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=m},function(g,f,y){"use strict";var m,v=this&&this.__extends||(m=function(S,T){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,x){L.__proto__=x}||function(L,x){for(var C in x)x.hasOwnProperty(C)&&(L[C]=x[C])})(S,T)},function(A,S){function T(){this.constructor=A}m(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),a=y(66),i=y(67),r=y(68),o=y(74),d=y(75),n=y(0),l=y(76),t=y(77),s=y(78),u=y(80),p=y(81),w=y(19),b=y(82),E=function(A){function S(T){var L=A.call(this)||this;return L._onBinary=new n.EventEmitter,L._onData=new n.EventEmitter,L._onLineFeed=new n.EventEmitter,L._onResize=new n.EventEmitter,L._onScroll=new n.EventEmitter,L._instantiationService=new a.InstantiationService,L.optionsService=new o.OptionsService(T),L._instantiationService.setService(c.IOptionsService,L.optionsService),L._bufferService=L.register(L._instantiationService.createInstance(r.BufferService)),L._instantiationService.setService(c.IBufferService,L._bufferService),L._logService=L._instantiationService.createInstance(i.LogService),L._instantiationService.setService(c.ILogService,L._logService),L._coreService=L.register(L._instantiationService.createInstance(d.CoreService,function(){return L.scrollToBottom()})),L._instantiationService.setService(c.ICoreService,L._coreService),L._coreMouseService=L._instantiationService.createInstance(l.CoreMouseService),L._instantiationService.setService(c.ICoreMouseService,L._coreMouseService),L._dirtyRowService=L._instantiationService.createInstance(t.DirtyRowService),L._instantiationService.setService(c.IDirtyRowService,L._dirtyRowService),L.unicodeService=L._instantiationService.createInstance(s.UnicodeService),L._instantiationService.setService(c.IUnicodeService,L.unicodeService),L._charsetService=L._instantiationService.createInstance(u.CharsetService),L._instantiationService.setService(c.ICharsetService,L._charsetService),L._inputHandler=new w.InputHandler(L._bufferService,L._charsetService,L._coreService,L._dirtyRowService,L._logService,L.optionsService,L._coreMouseService,L.unicodeService),L.register(n.forwardEvent(L._inputHandler.onLineFeed,L._onLineFeed)),L.register(L._inputHandler),L.register(n.forwardEvent(L._bufferService.onResize,L._onResize)),L.register(n.forwardEvent(L._coreService.onData,L._onData)),L.register(n.forwardEvent(L._coreService.onBinary,L._onBinary)),L.register(L.optionsService.onOptionChange(function(x){return L._updateOptions(x)})),L._writeBuffer=new b.WriteBuffer(function(x){return L._inputHandler.parse(x)}),L}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,L){this._writeBuffer.write(T,L)},S.prototype.writeSync=function(T){this._writeBuffer.writeSync(T)},S.prototype.resize=function(T,L){isNaN(T)||isNaN(L)||(T=Math.max(T,r.MINIMUM_COLS),L=Math.max(L,r.MINIMUM_ROWS),this._bufferService.resize(T,L))},S.prototype.scroll=function(T,L){L===void 0&&(L=!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,L),this._cachedBlankLine=x),x.isWrapped=L;var O=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-O+1;C.lines.shiftElements(O+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,L){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&&(L||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 L=T-this._bufferService.buffer.ydisp;L!==0&&this.scrollLines(L)},S.prototype.addEscHandler=function(T,L){return this._inputHandler.addEscHandler(T,L)},S.prototype.addDcsHandler=function(T,L){return this._inputHandler.addDcsHandler(T,L)},S.prototype.addCsiHandler=function(T,L){return this._inputHandler.addCsiHandler(T,L)},S.prototype.addOscHandler=function(T,L){return this._inputHandler.addOscHandler(T,L)},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 L;switch(T){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((L=this._windowsMode)===null||L===void 0||L.dispose(),this._windowsMode=void 0)}},S.prototype._enableWindowsMode=function(){var T=this;if(!this._windowsMode){var L=[];L.push(this.onLineFeed(p.updateWindowsModeWrappedState.bind(null,this._bufferService))),L.push(this.addCsiHandler({final:"H"},function(){return p.updateWindowsModeWrappedState(T._bufferService),!1})),this._windowsMode={dispose:function(){for(var C=0,O=L;C0?n[0].index:o.length;if(o.length!==w)throw new Error("[createInstance] First service dependency of "+r.name+" at position "+(w+1)+" conflicts with "+o.length+" static arguments");return new(r.bind.apply(r,m([void 0],m(o,l))))},i}();f.InstantiationService=a},function(g,f,y){"use strict";var m=this&&this.__decorate||function(o,d,n,l){var t,s=arguments.length,u=s<3?d:l===null?l=Object.getOwnPropertyDescriptor(d,n):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(o,d,n,l);else for(var p=o.length-1;p>=0;p--)(t=o[p])&&(u=(s<3?t(u):s>3?t(d,n,u):t(d,n))||u);return s>3&&u&&Object.defineProperty(d,n,u),u},v=this&&this.__param||function(o,d){return function(n,l){d(n,l,o)}},h=this&&this.__spreadArrays||function(){for(var o=0,d=0,n=arguments.length;d=0;b--)(u=n[b])&&(w=(p<3?u(w):p>3?u(l,t,w):u(l,t))||w);return p>3&&w&&Object.defineProperty(l,t,w),w},c=this&&this.__param||function(n,l){return function(t,s){l(t,s,n)}};Object.defineProperty(f,"__esModule",{value:!0}),f.BufferService=f.MINIMUM_ROWS=f.MINIMUM_COLS=void 0;var a=y(1),i=y(69),r=y(0),o=y(2);f.MINIMUM_COLS=2,f.MINIMUM_ROWS=1;var d=function(n){function l(t){var s=n.call(this)||this;return s._optionsService=t,s.isUserScrolling=!1,s._onResize=new r.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,n),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(){n.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,a.IOptionsService)],l)}(o.Disposable);f.BufferService=d},function(g,f,y){"use strict";var m,v=this&&this.__extends||(m=function(r,o){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,n){d.__proto__=n}||function(d,n){for(var l in n)n.hasOwnProperty(l)&&(d[l]=n[l])})(r,o)},function(i,r){function o(){this.constructor=i}m(i,r),i.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)});Object.defineProperty(f,"__esModule",{value:!0}),f.BufferSet=void 0;var h=y(70),c=y(0),a=function(i){function r(o,d){var n=i.call(this)||this;return n._onBufferActivate=n.register(new c.EventEmitter),n._normal=new h.Buffer(!0,o,d),n._normal.fillViewportRows(),n._alt=new h.Buffer(!1,o,d),n._activeBuffer=n._normal,n.setupTabStops(),n}return v(r,i),Object.defineProperty(r.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),r.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}))},r.prototype.activateAltBuffer=function(o){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(o),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}))},r.prototype.resize=function(o,d){this._normal.resize(o,d),this._alt.resize(o,d)},r.prototype.setupTabStops=function(o){this._normal.setupTabStops(o),this._alt.setupTabStops(o)},r}(y(2).Disposable);f.BufferSet=a},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.BufferStringIterator=f.Buffer=f.MAX_BUFFER_SIZE=void 0;var m=y(71),v=y(16),h=y(4),c=y(3),a=y(72),i=y(73),r=y(20),o=y(6);f.MAX_BUFFER_SIZE=4294967295;var d=function(){function l(t,s,u){this._hasScrollback=t,this._optionsService=s,this._bufferService=u,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=r.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 m.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 o.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 o.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 m.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},l.prototype.resize=function(t,s){var u=this.getNullCell(v.DEFAULT_ATTR_DATA),p=this._getCorrectBufferLength(s);if(p>this.lines.maxLength&&(this.lines.maxLength=p),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,u)));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(p0&&(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=p}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 u=a.reflowLargerGetLinesToRemove(this.lines,this._cols,t,this.ybase+this.y,this.getNullCell(v.DEFAULT_ATTR_DATA));if(u.length>0){var p=a.reflowLargerCreateNewLayout(this.lines,u);a.reflowLargerApplyNewLayout(this.lines,p.layout),this._reflowLargerAdjustViewport(t,s,p.countRemoved)}},l.prototype._reflowLargerAdjustViewport=function(t,s,u){for(var p=this.getNullCell(v.DEFAULT_ATTR_DATA),w=u;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&&(p.push({start:b+A.length+w,newLines:O}),w+=O.length),A.push.apply(A,O);var k=L.length-1,P=L[k];P===0&&(P=L[--k]);for(var B=A.length-x-1,z=T;B>=0;){var R=Math.min(z,P);if(A[k].copyCellsFrom(A[B],z-R,P-R,R,!0),(P-=R)===0&&(P=L[--k]),(z-=R)===0){B--;var U=Math.max(B,0);z=a.getWrappedLineTrimmedLength(A,U,this._cols)}}for(N=0;N0;)this.ybase===0?this.y0){var H=[],V=[];for(N=0;N=0;N--)if($&&$.start>W+ge){for(var q=$.newLines.length-1;q>=0;q--)this.lines.set(N--,$.newLines[q]);N++,H.push({index:W+1,amount:$.newLines.length}),ge+=$.newLines.length,$=p[++G]}else this.lines.set(N,V[W--]);var Se=0;for(N=H.length-1;N>=0;N--)H[N].index+=Se,this.lines.onInsertEmitter.fire(H[N]),Se+=H[N].amount;var Ce=Math.max(0,X+w-this.lines.maxLength);Ce>0&&this.lines.onTrimEmitter.fire(Ce)}},l.prototype.stringIndexToBufferIndex=function(t,s,u){for(u===void 0&&(u=!1);s;){var p=this.lines.get(t);if(!p)return[-1,-1];for(var w=u?p.getTrimmedLength():p.length,b=0;b0&&this.lines.get(s).isWrapped;)s--;for(;u+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,u=new i.Marker(t);return this.markers.push(u),u.register(this.lines.onTrim(function(p){u.line-=p,u.line<0&&u.dispose()})),u.register(this.lines.onInsert(function(p){u.line>=p.index&&(u.line+=p.amount)})),u.register(this.lines.onDelete(function(p){u.line>=p.index&&u.linep.index&&(u.line-=p.amount)})),u.register(u.onDispose(function(){return s._removeMarker(u)})),u},l.prototype._removeMarker=function(t){this.markers.splice(this.markers.indexOf(t),1)},l.prototype.iterator=function(t,s,u,p,w){return new n(this,t,s,u,p,w)},l}();f.Buffer=d;var n=function(){function l(t,s,u,p,w,b){u===void 0&&(u=0),p===void 0&&(p=t.lines.length),w===void 0&&(w=0),b===void 0&&(b=0),this._buffer=t,this._trimRight=s,this._startIndex=u,this._endIndex=p,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="",u=t.first;u<=t.last;++u)s+=this._buffer.translateBufferLineToString(u,this._trimRight);return this._current=t.last+1,{range:t,content:s}},l}();f.BufferStringIterator=n},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CircularList=void 0;var m=y(0),v=function(){function h(c){this._maxLength=c,this.onDeleteEmitter=new m.EventEmitter,this.onInsertEmitter=new m.EventEmitter,this.onTrimEmitter=new m.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(a){if(this._maxLength!==a){for(var i=new Array(a),r=0;rthis._length)for(var i=this._length;i=c;o--)this._array[this._getCyclicIndex(o+i.length)]=this._array[this._getCyclicIndex(o)];for(o=0;othis._maxLength){var d=this._length+i.length-this._maxLength;this._startIndex+=d,this._length=this._maxLength,this.onTrimEmitter.fire(d)}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,a,i){if(!(a<=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 r=a-1;r>=0;r--)this.set(c+r+i,this.get(c+r));var o=c+a+i-this._length;if(o>0)for(this._length+=o;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(r=0;r=o&&a0&&(T>t||l[T].getTrimmedLength()===0);T--)S++;S>0&&(r.push(o+l.length-S),r.push(S)),o+=l.length-1}}}return r},f.reflowLargerCreateNewLayout=function(v,h){for(var c=[],a=0,i=h[a],r=0,o=0;on&&(r-=n,o++);var l=v[o].getWidth(r-1)===2;l&&r--;var t=l?c-1:c;a.push(t),d+=t}return a},f.getWrappedLineTrimmedLength=m},function(g,f,y){"use strict";var m,v=this&&this.__extends||(m=function(i,r){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,d){o.__proto__=d}||function(o,d){for(var n in d)d.hasOwnProperty(n)&&(o[n]=d[n])})(i,r)},function(a,i){function r(){this.constructor=a}m(a,i),a.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)});Object.defineProperty(f,"__esModule",{value:!0}),f.Marker=void 0;var h=y(0),c=function(a){function i(r){var o=a.call(this)||this;return o.line=r,o._id=i._nextId++,o.isDisposed=!1,o._onDispose=new h.EventEmitter,o}return v(i,a),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 m=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"],a=function(){function i(r){this._onOptionChange=new m.EventEmitter,this.options=h.clone(f.DEFAULT_OPTIONS);for(var o=0,d=Object.keys(r);o=0;A--)(w=t[A])&&(E=(b<3?w(E):b>3?w(s,u,E):w(s,u))||E);return b>3&&E&&Object.defineProperty(s,u,E),E},c=this&&this.__param||function(t,s){return function(u,p){s(u,p,t)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CoreService=void 0;var a=y(1),i=y(0),r=y(33),o=y(2),d=Object.freeze({insertMode:!1}),n=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),l=function(t){function s(u,p,w,b){var E=t.call(this)||this;return E._bufferService=p,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=u,E.register({dispose:function(){return E._scrollToBottom=void 0}}),E.modes=r.clone(d),E.decPrivateModes=r.clone(n),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=r.clone(d),this.decPrivateModes=r.clone(n)},s.prototype.triggerDataEvent=function(u,p){if(p===void 0&&(p=!1),!this._optionsService.options.disableStdin){var w=this._bufferService.buffer;w.ybase!==w.ydisp&&this._scrollToBottom(),p&&this._onUserInput.fire(),this._logService.debug('sending data "'+u+'"',function(){return u.split("").map(function(b){return b.charCodeAt(0)})}),this._onData.fire(u)}},s.prototype.triggerBinaryEvent=function(u){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+u+'"',function(){return u.split("").map(function(p){return p.charCodeAt(0)})}),this._onBinary.fire(u))},s=h([c(1,a.IBufferService),c(2,a.ILogService),c(3,a.IOptionsService)],s)}(o.Disposable);f.CoreService=l},function(g,f,y){"use strict";var m=this&&this.__decorate||function(n,l,t,s){var u,p=arguments.length,w=p<3?l:s===null?s=Object.getOwnPropertyDescriptor(l,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(n,l,t,s);else for(var b=n.length-1;b>=0;b--)(u=n[b])&&(w=(p<3?u(w):p>3?u(l,t,w):u(l,t))||w);return p>3&&w&&Object.defineProperty(l,t,w),w},v=this&&this.__param||function(n,l){return function(t,s){l(t,s,n)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CoreMouseService=void 0;var h=y(1),c=y(0),a={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(n,l){var t=(n.ctrl?16:0)|(n.shift?4:0)|(n.alt?8:0);return n.button===4?(t|=64,t|=n.action):(t|=3&n.button,4&n.button&&(t|=64),8&n.button&&(t|=128),n.action===32?t|=32:n.action!==0||l||(t|=3)),t}var r=String.fromCharCode,o={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?"":""+r(t[0])+r(t[1])+r(t[2])},SGR:function(l){var t=l.action===0&&l.button!==4?"m":"M";return"[<"+i(l,!0)+";"+l.col+";"+l.row+t}},d=function(){function n(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,u=Object.keys(a);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},n.prototype.explainEvents=function(l){return{down:!!(1&l),up:!!(2&l),drag:!!(4&l),move:!!(8&l),wheel:!!(16&l)}},n.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},n=m([v(0,h.IBufferService),v(1,h.ICoreService)],n)}();f.CoreMouseService=d},function(g,f,y){"use strict";var m=this&&this.__decorate||function(a,i,r,o){var d,n=arguments.length,l=n<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,r):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(a,i,r,o);else for(var t=a.length-1;t>=0;t--)(d=a[t])&&(l=(n<3?d(l):n>3?d(i,r,l):d(i,r))||l);return n>3&&l&&Object.defineProperty(i,r,l),l},v=this&&this.__param||function(a,i){return function(r,o){i(r,o,a)}};Object.defineProperty(f,"__esModule",{value:!0}),f.DirtyRowService=void 0;var h=y(1),c=function(){function a(i){this._bufferService=i,this.clearRange()}return Object.defineProperty(a.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),a.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},a.prototype.markDirty=function(i){ithis._end&&(this._end=i)},a.prototype.markRangeDirty=function(i,r){if(i>r){var o=i;i=r,r=o}ithis._end&&(this._end=r)},a.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},a=m([v(0,h.IBufferService)],a)}();f.DirtyRowService=c},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.UnicodeService=void 0;var m=y(0),v=y(79),h=function(){function c(){this._providers=Object.create(null),this._active="",this._onChange=new m.EventEmitter;var a=new v.UnicodeV6;this.register(a),this._active=a.version,this._activeProvider=a}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(a){this._providers[a.version]=a},c.prototype.wcwidth=function(a){return this._activeProvider.wcwidth(a)},c.prototype.getStringCellWidth=function(a){for(var i=0,r=a.length,o=0;o=r)return i+this.wcwidth(d);var n=a.charCodeAt(o);56320<=n&&n<=57343?d=1024*(d-55296)+n-56320+65536:i+=this.wcwidth(n)}i+=this.wcwidth(d)}return i},c}();f.UnicodeService=h},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.UnicodeV6=void 0;var m,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]],a=function(){function i(){if(this.version="6",!m){m=new Uint8Array(65536),v.fill(m,1),m[0]=0,v.fill(m,0,1,32),v.fill(m,0,127,160),v.fill(m,2,4352,4448),m[9001]=2,m[9002]=2,v.fill(m,2,11904,42192),m[12351]=1,v.fill(m,2,44032,55204),v.fill(m,2,63744,64256),v.fill(m,2,65040,65050),v.fill(m,2,65072,65136),v.fill(m,2,65280,65377),v.fill(m,2,65504,65511);for(var r=0;rd[t][1])return!1;for(;t>=l;)if(o>d[n=l+t>>1][1])l=n+1;else{if(!(o=131072&&r<=196605||r>=196608&&r<=262141?2:1},i}();f.UnicodeV6=a},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CharsetService=void 0;var m=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=m},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.updateWindowsModeWrappedState=void 0;var m=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),a=v.buffer.lines.get(v.buffer.ybase+v.buffer.y);a&&c&&(a.isWrapped=c[m.CHAR_DATA_CODE_INDEX]!==m.NULL_CELL_CODE&&c[m.CHAR_DATA_CODE_INDEX]!==m.WHITESPACE_CELL_CODE)}},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.WriteBuffer=void 0;var m=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 a._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 a=this._writeBuffer[this._bufferOffset],i=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(a),this._pendingData-=a.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=m},function(g,f,y){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.AddonManager=void 0;var m=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 a=this,i={instance:c,dispose:c.dispose,isDisposed:!1};this._addons.push(i),c.dispose=function(){return a._wrappedAddonDispose(i)},c.activate(h)},v.prototype._wrappedAddonDispose=function(h){if(!h.isDisposed){for(var c=-1,a=0;ao;)n+=l*360;return[d,n]},coordToPoint:function(v){var h=v[0],c=v[1]/180*Math.PI,a=Math.cos(c)*h+this.cx,i=-Math.sin(c)*h+this.cy;return[a,i]},getArea:function(){var v=this.getAngleAxis(),h=this.getRadiusAxis(),c=h.getExtent().slice();c[0]>c[1]&&c.reverse();var a=v.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:c[0],r:c[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:v.inverse,contain:function(r,o){var d=r-this.cx,n=o-this.cy,l=d*d+n*n,t=this.r,s=this.r0;return l<=t*t&&l>=s*s}}}};var m=y;D.exports=m},"/WM3":function(D,_,e){var g=e("QuXc"),f=e("bYtY"),y=f.isFunction,m={createOnAllSeries:!0,performRawSeries:!0,reset:function(v,h){var c=v.getData(),a=(v.visualColorAccessPath||"itemStyle.color").split("."),i=v.get(a),r=y(i)&&!(i instanceof g)?i:null;(!i||r)&&(i=v.getColorFromPalette(v.name,null,h.getSeriesCount())),c.setVisual("color",i);var o=(v.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),d=v.get(o);if(c.setVisual("borderColor",d),!h.isSeriesFiltered(v)){r&&c.each(function(l){c.setItemVisual(l,"color",r(v.getDataParams(l)))});var n=function(l,t){var s=l.getItemModel(t),u=s.get(a,!0),p=s.get(o,!0);u!=null&&l.setItemVisual(t,"color",u),p!=null&&l.setItemVisual(t,"borderColor",p)};return{dataEach:c.hasItemOption?n:null}}}};D.exports=m},"/d5a":function(D,_){var e={average:function(y){for(var m=0,v=0,h=0;hm&&(m=y[v]);return isFinite(m)?m:NaN},min:function(y){for(var m=Infinity,v=0;v1){var t;typeof a=="string"?t=e[a]:typeof a=="function"&&(t=a),t&&m.setData(c.downSample(c.mapDimension(o.dim),1/l,t,g))}}}}}D.exports=f},"/ezw":function(D,_,e){"use strict";var g=e("lSNA"),f=e.n(g),y=e("pVnL"),m=e.n(y),v=e("cDf5"),h=e.n(v),c=e("q1tI"),a=e("TSYQ"),i=e.n(a),r=function(j){var H=j.prefixCls,V=j.className,X=j.width,W=j.style;return c.createElement("h3",{className:i()(H,V),style:m()({width:X},W)})},o=r,d=e("RIqP"),n=e.n(d),l=function(j){var H=function(q){var Se=j.width,Ce=j.rows,Ae=Ce===void 0?2:Ce;return Array.isArray(Se)?Se[q]:Ae-1===q?Se:void 0},V=j.prefixCls,X=j.className,W=j.style,G=j.rows,$=n()(Array(G)).map(function(ge,q){return c.createElement("li",{key:q,style:{width:H(q)}})});return c.createElement("ul",{className:i()(V,X),style:W},$)},t=l,s=e("H84U"),u=function(j){var H,V,X=j.prefixCls,W=j.className,G=j.style,$=j.size,ge=j.shape,q=i()((H={},f()(H,"".concat(X,"-lg"),$==="large"),f()(H,"".concat(X,"-sm"),$==="small"),H)),Se=i()((V={},f()(V,"".concat(X,"-circle"),ge==="circle"),f()(V,"".concat(X,"-square"),ge==="square"),f()(V,"".concat(X,"-round"),ge==="round"),V)),Ce=typeof $=="number"?{width:$,height:$,lineHeight:"".concat($,"px")}:{};return c.createElement("span",{className:i()(X,W,q,Se),style:m()(m()({},Ce),G)})},p=u,w=e("BGR+"),b=function(j){var H=function(X){var W=X.getPrefixCls,G=j.prefixCls,$=j.className,ge=j.active,q=W("skeleton",G),Se=Object(w.default)(j,["prefixCls"]),Ce=i()(q,$,"".concat(q,"-element"),f()({},"".concat(q,"-active"),ge));return c.createElement("div",{className:Ce},c.createElement(p,m()({prefixCls:"".concat(q,"-avatar")},Se)))};return c.createElement(s.a,null,H)};b.defaultProps={size:"default",shape:"circle"};var E=b,A=function(j){var H=function(X){var W=X.getPrefixCls,G=j.prefixCls,$=j.className,ge=j.active,q=W("skeleton",G),Se=Object(w.default)(j,["prefixCls"]),Ce=i()(q,$,"".concat(q,"-element"),f()({},"".concat(q,"-active"),ge));return c.createElement("div",{className:Ce},c.createElement(p,m()({prefixCls:"".concat(q,"-button")},Se)))};return c.createElement(s.a,null,H)};A.defaultProps={size:"default"};var S=A,T=function(j){var H=function(X){var W=X.getPrefixCls,G=j.prefixCls,$=j.className,ge=j.active,q=W("skeleton",G),Se=Object(w.default)(j,["prefixCls"]),Ce=i()(q,$,"".concat(q,"-element"),f()({},"".concat(q,"-active"),ge));return c.createElement("div",{className:Ce},c.createElement(p,m()({prefixCls:"".concat(q,"-input")},Se)))};return c.createElement(s.a,null,H)};T.defaultProps={size:"default"};var L=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(j){var H=function(X){var W=X.getPrefixCls,G=j.prefixCls,$=j.className,ge=j.style,q=W("skeleton",G),Se=i()(q,$,"".concat(q,"-element"));return c.createElement("div",{className:Se},c.createElement("div",{className:i()("".concat(q,"-image"),$),style:ge},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(q,"-image-svg")},c.createElement("path",{d:x,className:"".concat(q,"-image-path")}))))};return c.createElement(s.a,null,H)},O=C;function N(U){return U&&h()(U)==="object"?U:{}}function F(U,j){return U&&!j?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function k(U,j){return!U&&j?{width:"38%"}:U&&j?{width:"50%"}:{}}function P(U,j){var H={};return(!U||!j)&&(H.width="61%"),!U&&j?H.rows=3:H.rows=2,H}var B=function(j){var H=function(X){var W=X.getPrefixCls,G=X.direction,$=j.prefixCls,ge=j.loading,q=j.className,Se=j.children,Ce=j.avatar,Ae=j.title,Ue=j.paragraph,Qe=j.active,gt=j.round,_e=W("skeleton",$);if(ge||!("loading"in j)){var Oe,lt=!!Ce,ce=!!Ae,Y=!!Ue,K;if(lt){var Q=m()(m()({prefixCls:"".concat(_e,"-avatar")},F(ce,Y)),N(Ce));K=c.createElement("div",{className:"".concat(_e,"-header")},c.createElement(p,Q))}var ye;if(ce||Y){var ue;if(ce){var Ne=m()(m()({prefixCls:"".concat(_e,"-title")},k(lt,Y)),N(Ae));ue=c.createElement(o,Ne)}var Te;if(Y){var oe=m()(m()({prefixCls:"".concat(_e,"-paragraph")},P(lt,ce)),N(Ue));Te=c.createElement(t,oe)}ye=c.createElement("div",{className:"".concat(_e,"-content")},ue,Te)}var de=i()(_e,q,(Oe={},f()(Oe,"".concat(_e,"-with-avatar"),lt),f()(Oe,"".concat(_e,"-active"),Qe),f()(Oe,"".concat(_e,"-rtl"),G==="rtl"),f()(Oe,"".concat(_e,"-round"),gt),Oe));return c.createElement("div",{className:de},K,ye)}return Se};return c.createElement(s.a,null,H)};B.defaultProps={avatar:!1,title:!0,paragraph:!0},B.Button=S,B.Avatar=E,B.Input=L,B.Image=O;var z=B,R=_.a=z},"/iHx":function(D,_,e){var g=e("6GrX"),f=e("IwbS"),y=["textStyle","color"],m={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=m},"/ry/":function(D,_,e){var g=e("bYtY"),f=e("T4UG"),y=e("5GhG"),m=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,m,!0);var h=v;D.exports=h},"/stD":function(D,_,e){var g=e("bYtY"),f=e("IUWy"),y=e("Kagy"),m=y.toolbox.brush;function v(a,i,r){this.model=a,this.ecModel=i,this.api=r,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(m.title)};var h=v.prototype;h.render=h.updateView=function(a,i,r){var o,d,n;i.eachComponent({mainType:"brush"},function(l){o=l.brushType,d=l.brushOption.brushMode||"single",n|=l.areas.length}),this._brushType=o,this._brushMode=d,g.each(a.get("type",!0),function(l){a.setIconStatus(l,(l==="keep"?d==="multiple":l==="clear"?n:l===o)?"emphasis":"normal")})},h.getIcons=function(){var a=this.model,i=a.get("icon",!0),r={};return g.each(a.get("type",!0),function(o){i[o]&&(r[o]=i[o])}),r},h.onclick=function(a,i,r){var o=this._brushType,d=this._brushMode;r==="clear"?(i.dispatchAction({type:"axisAreaSelect",intervals:[]}),i.dispatchAction({type:"brush",command:"clear",areas:[]})):i.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:r==="keep"?o:o===r?!1:r,brushMode:r==="keep"?d==="multiple"?"single":"multiple":d}})},f.register("brush",v);var c=v;D.exports=c},"/wGt":function(D,_,e){"use strict";var g=e("lSNA"),f=e.n(g),y=e("pVnL"),m=e.n(y),v=e("lwsE"),h=e.n(v),c=e("W8MJ"),a=e.n(c),i=e("PJYZ"),r=e.n(i),o=e("7W2i"),d=e.n(o),n=e("LQ03"),l=e.n(n),t=e("q1tI"),s=e("Ff2n"),u=e("1OyB"),p=e("vuIU"),w=e("Ji7U"),b=e("md7G"),E=e("foSv"),A=e("1W/9"),S=e("rePB"),T=e("JX7q"),L=e("TSYQ"),x=e.n(L),C=e("qx4F"),O=e("4IlW");function N(ue){return Array.isArray(ue)?ue:[ue]}var F={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},k=Object.keys(F).filter(function(ue){if(typeof document=="undefined")return!1;var Ne=document.getElementsByTagName("html")[0];return ue in(Ne?Ne.style:{})})[0],P=F[k];function B(ue,Ne,Te,oe){ue.addEventListener?ue.addEventListener(Ne,Te,oe):ue.attachEvent&&ue.attachEvent("on".concat(Ne),Te)}function z(ue,Ne,Te,oe){ue.removeEventListener?ue.removeEventListener(Ne,Te,oe):ue.attachEvent&&ue.detachEvent("on".concat(Ne),Te)}function R(ue,Ne){var Te=typeof ue=="function"?ue(Ne):ue;return Array.isArray(Te)?Te.length===2?Te:[Te[0],Te[1]]:[Te]}var U=function(Ne){return!isNaN(parseFloat(Ne))&&isFinite(Ne)},j=!(typeof window!="undefined"&&window.document&&window.document.createElement),H=function ue(Ne,Te,oe,de){if(!Te||Te===document||Te instanceof Document)return!1;if(Te===Ne.parentNode)return!0;var Le=Math.max(Math.abs(oe),Math.abs(de))===Math.abs(de),Ge=Math.max(Math.abs(oe),Math.abs(de))===Math.abs(oe),ht=Te.scrollHeight-Te.clientHeight,Et=Te.scrollWidth-Te.clientWidth,Be=document.defaultView.getComputedStyle(Te),Dt=Be.overflowY==="auto"||Be.overflowY==="scroll",Ke=Be.overflowX==="auto"||Be.overflowX==="scroll",At=ht&&Dt,Xe=Et&&Ke;return Le&&(!At||At&&(Te.scrollTop>=ht&&de<0||Te.scrollTop<=0&&de>0))||Ge&&(!Xe||Xe&&(Te.scrollLeft>=Et&&oe<0||Te.scrollLeft<=0&&oe>0))?ue(Ne,Te.parentNode,oe,de):!1};function V(ue){var Ne=X();return function(){var oe=Object(E.a)(ue),de;if(Ne){var Le=Object(E.a)(this).constructor;de=Reflect.construct(oe,arguments,Le)}else de=oe.apply(this,arguments);return Object(b.a)(this,de)}}function X(){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(ue){return!1}}var W={},G=function(ue){Object(w.a)(Te,ue);var Ne=V(Te);function Te(oe){var de;return Object(u.a)(this,Te),de=Ne.call(this,oe),de.domFocus=function(){de.dom&&de.dom.focus()},de.removeStartHandler=function(Le){if(Le.touches.length>1)return;de.startPos={x:Le.touches[0].clientX,y:Le.touches[0].clientY}},de.removeMoveHandler=function(Le){if(Le.changedTouches.length>1)return;var Ge=Le.currentTarget,ht=Le.changedTouches[0].clientX-de.startPos.x,Et=Le.changedTouches[0].clientY-de.startPos.y;(Ge===de.maskDom||Ge===de.handlerDom||Ge===de.contentDom&&H(Ge,Le.target,ht,Et))&&Le.cancelable&&Le.preventDefault()},de.transitionEnd=function(Le){var Ge=Le.target;z(Ge,P,de.transitionEnd),Ge.style.transition=""},de.onKeyDown=function(Le){if(Le.keyCode===O.a.ESC){var Ge=de.props.onClose;Le.stopPropagation(),Ge&&Ge(Le)}},de.onWrapperTransitionEnd=function(Le){var Ge=de.props,ht=Ge.open,Et=Ge.afterVisibleChange;Le.target===de.contentWrapper&&Le.propertyName.match(/transform$/)&&(de.dom.style.transition="",!ht&&de.getCurrentDrawerSome()&&(document.body.style.overflowX="",de.maskDom&&(de.maskDom.style.left="",de.maskDom.style.width="")),Et&&Et(!!ht))},de.openLevelTransition=function(){var Le=de.props,Ge=Le.open,ht=Le.width,Et=Le.height,Be=de.getHorizontalBoolAndPlacementName(),Dt=Be.isHorizontal,Ke=Be.placementName,At=de.contentDom?de.contentDom.getBoundingClientRect()[Dt?"width":"height"]:0,Xe=(Dt?ht:Et)||At;de.setLevelAndScrolling(Ge,Ke,Xe)},de.setLevelTransform=function(Le,Ge,ht,Et){var Be=de.props,Dt=Be.placement,Ke=Be.levelMove,At=Be.duration,Xe=Be.ease,et=Be.showMask;de.levelDom.forEach(function(tt){tt.style.transition="transform ".concat(At," ").concat(Xe),B(tt,P,de.transitionEnd);var ot=Le?ht:0;if(Ke){var Ve=R(Ke,{target:tt,open:Le});ot=Le?Ve[0]:Ve[1]||0}var se=typeof ot=="number"?"".concat(ot,"px"):ot,re=Dt==="left"||Dt==="top"?se:"-".concat(se);re=et&&Dt==="right"&&Et?"calc(".concat(re," + ").concat(Et,"px)"):re,tt.style.transform=ot?"".concat(Ge,"(").concat(re,")"):""})},de.setLevelAndScrolling=function(Le,Ge,ht){var Et=de.props.onChange;if(!j){var Be=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(C.a)(!0):0;de.setLevelTransform(Le,Ge,ht,Be),de.toggleScrollingToDrawerAndBody(Be)}Et&&Et(Le)},de.toggleScrollingToDrawerAndBody=function(Le){var Ge=de.props,ht=Ge.getOpenCount,Et=Ge.getContainer,Be=Ge.showMask,Dt=Ge.open,Ke=Et&&Et(),At=ht&&ht();if(Ke&&Ke.parentNode===document.body&&Be){var Xe=["touchstart"],et=[document.body,de.maskDom,de.handlerDom,de.contentDom];Dt&&document.body.style.overflow!=="hidden"?(Le&&de.addScrollingEffect(Le),At===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",et.forEach(function(tt,ot){if(!tt)return;B(tt,Xe[ot]||"touchmove",ot?de.removeMoveHandler:de.removeStartHandler,de.passive)})):de.getCurrentDrawerSome()&&(At||(document.body.style.overflow=""),document.body.style.touchAction="",Le&&de.remScrollingEffect(Le),et.forEach(function(tt,ot){if(!tt)return;z(tt,Xe[ot]||"touchmove",ot?de.removeMoveHandler:de.removeStartHandler,de.passive)}))}},de.addScrollingEffect=function(Le){var Ge=de.props,ht=Ge.placement,Et=Ge.duration,Be=Ge.ease,Dt=Ge.getOpenCount,Ke=Ge.switchScrollingEffect,At=Dt&&Dt();At===1&&Ke();var Xe="width ".concat(Et," ").concat(Be),et="transform ".concat(Et," ").concat(Be);de.dom.style.transition="none";switch(ht){case"right":de.dom.style.transform="translateX(-".concat(Le,"px)");break;case"top":case"bottom":de.dom.style.width="calc(100% - ".concat(Le,"px)"),de.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(de.timeout),de.timeout=setTimeout(function(){de.dom&&(de.dom.style.transition="".concat(et,",").concat(Xe),de.dom.style.width="",de.dom.style.transform="")})},de.remScrollingEffect=function(Le){var Ge=de.props,ht=Ge.placement,Et=Ge.duration,Be=Ge.ease,Dt=Ge.getOpenCount,Ke=Ge.switchScrollingEffect,At=Dt&&Dt();At||Ke(!0),k&&(document.body.style.overflowX="hidden"),de.dom.style.transition="none";var Xe,et="width ".concat(Et," ").concat(Be),tt="transform ".concat(Et," ").concat(Be);switch(ht){case"left":{de.dom.style.width="100%",et="width 0s ".concat(Be," ").concat(Et);break}case"right":{de.dom.style.transform="translateX(".concat(Le,"px)"),de.dom.style.width="100%",et="width 0s ".concat(Be," ").concat(Et),de.maskDom&&(de.maskDom.style.left="-".concat(Le,"px"),de.maskDom.style.width="calc(100% + ".concat(Le,"px)"));break}case"top":case"bottom":{de.dom.style.width="calc(100% + ".concat(Le,"px)"),de.dom.style.height="100%",de.dom.style.transform="translateZ(0)",Xe="height 0s ".concat(Be," ").concat(Et);break}default:break}clearTimeout(de.timeout),de.timeout=setTimeout(function(){de.dom&&(de.dom.style.transition="".concat(tt,",").concat(Xe?"".concat(Xe,","):"").concat(et),de.dom.style.transform="",de.dom.style.width="",de.dom.style.height="")})},de.getCurrentDrawerSome=function(){return!Object.keys(W).some(function(Le){return W[Le]})},de.getLevelDom=function(Le){var Ge=Le.level,ht=Le.getContainer;if(j)return;var Et=ht&&ht(),Be=Et?Et.parentNode:null;if(de.levelDom=[],Ge==="all"){var Dt=Be?Array.prototype.slice.call(Be.children):[];Dt.forEach(function(Ke){Ke.nodeName!=="SCRIPT"&&Ke.nodeName!=="STYLE"&&Ke.nodeName!=="LINK"&&Ke!==Et&&de.levelDom.push(Ke)})}else Ge&&N(Ge).forEach(function(Ke){document.querySelectorAll(Ke).forEach(function(At){de.levelDom.push(At)})})},de.getHorizontalBoolAndPlacementName=function(){var Le=de.props.placement,Ge=Le==="left"||Le==="right",ht="translate".concat(Ge?"X":"Y");return{isHorizontal:Ge,placementName:ht}},de.state={_self:Object(T.a)(de)},de}return Object(p.a)(Te,[{key:"componentDidMount",value:function(){var de=this;if(!j){var Le=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Le=!0,null}}))}catch(Dt){}this.passive=Le?{passive:!1}:!1}var Ge=this.props,ht=Ge.open,Et=Ge.getContainer,Be=Et&&Et();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),ht&&(Be&&Be.parentNode===document.body&&(W[this.drawerId]=ht),this.openLevelTransition(),this.forceUpdate(function(){de.domFocus()}))}},{key:"componentDidUpdate",value:function(de){var Le=this.props,Ge=Le.open,ht=Le.getContainer,Et=ht&&ht();Ge!==de.open&&(Ge&&this.domFocus(),Et&&Et.parentNode===document.body&&(W[this.drawerId]=!!Ge),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var de=this.props,Le=de.getOpenCount,Ge=de.open,ht=de.switchScrollingEffect,Et=typeof Le=="function"&&Le();delete W[this.drawerId],Ge&&(this.setLevelTransform(!1),document.body.style.touchAction=""),Et||(document.body.style.overflow="",ht(!0))}},{key:"render",value:function(){var de,Le=this,Ge=this.props,ht=Ge.className,Et=Ge.children,Be=Ge.style,Dt=Ge.width,Ke=Ge.height,At=Ge.defaultOpen,Xe=Ge.open,et=Ge.prefixCls,tt=Ge.placement,ot=Ge.level,Ve=Ge.levelMove,se=Ge.ease,re=Ge.duration,it=Ge.getContainer,qe=Ge.handler,be=Ge.onChange,Zt=Ge.afterVisibleChange,dt=Ge.showMask,ct=Ge.maskClosable,yt=Ge.maskStyle,_t=Ge.onClose,or=Ge.onHandleClick,Bt=Ge.keyboard,we=Ge.getOpenCount,ve=Ge.switchScrollingEffect,me=Object(s.a)(Ge,["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"]),he=this.dom?Xe:!1,Re=x()(et,(de={},Object(S.a)(de,"".concat(et,"-").concat(tt),!0),Object(S.a)(de,"".concat(et,"-open"),he),Object(S.a)(de,ht||"",!!ht),Object(S.a)(de,"no-mask",!dt),de)),He=this.getHorizontalBoolAndPlacementName(),ze=He.placementName,Ye=tt==="left"||tt==="top"?"-100%":"100%",Pe=he?"":"".concat(ze,"(").concat(Ye,")"),nt=qe&&t.cloneElement(qe,{onClick:function(Ot){qe.props.onClick&&qe.props.onClick(),or&&or(Ot)},ref:function(Ot){Le.handlerDom=Ot}});return t.createElement("div",Object.assign({},me,{tabIndex:-1,className:Re,style:Be,ref:function(Ot){Le.dom=Ot},onKeyDown:he&&Bt?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),dt&&t.createElement("div",{className:"".concat(et,"-mask"),onClick:ct?_t:void 0,style:yt,ref:function(Ot){Le.maskDom=Ot}}),t.createElement("div",{className:"".concat(et,"-content-wrapper"),style:{transform:Pe,msTransform:Pe,width:U(Dt)?"".concat(Dt,"px"):Dt,height:U(Ke)?"".concat(Ke,"px"):Ke},ref:function(Ot){Le.contentWrapper=Ot}},t.createElement("div",{className:"".concat(et,"-content"),ref:function(Ot){Le.contentDom=Ot},onTouchStart:he&&dt?this.removeStartHandler:void 0,onTouchMove:he&&dt?this.removeMoveHandler:void 0},Et),nt))}}],[{key:"getDerivedStateFromProps",value:function(de,Le){var Ge=Le.prevProps,ht=Le._self,Et={prevProps:de};if(Ge!==void 0){var Be=de.placement,Dt=de.level;Be!==Ge.placement&&(ht.contentDom=null),Dt!==Ge.level&&ht.getLevelDom(de)}return Et}}]),Te}(t.Component);G.defaultProps={switchScrollingEffect:function(){}};var $=G;function ge(ue){var Ne=q();return function(){var oe=Object(E.a)(ue),de;if(Ne){var Le=Object(E.a)(this).constructor;de=Reflect.construct(oe,arguments,Le)}else de=oe.apply(this,arguments);return Object(b.a)(this,de)}}function q(){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(ue){return!1}}var Se=function(ue){Object(w.a)(Te,ue);var Ne=ge(Te);function Te(oe){var de;Object(u.a)(this,Te),de=Ne.call(this,oe),de.onHandleClick=function(Ge){var ht=de.props,Et=ht.onHandleClick,Be=ht.open;if(Et&&Et(Ge),typeof Be=="undefined"){var Dt=de.state.open;de.setState({open:!Dt})}},de.onClose=function(Ge){var ht=de.props,Et=ht.onClose,Be=ht.open;Et&&Et(Ge),typeof Be=="undefined"&&de.setState({open:!1})};var Le=typeof oe.open!="undefined"?oe.open:!!oe.defaultOpen;return de.state={open:Le},"onMaskClick"in oe&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),de}return Object(p.a)(Te,[{key:"render",value:function(){var de=this,Le=this.props,Ge=Le.defaultOpen,ht=Le.getContainer,Et=Le.wrapperClassName,Be=Le.forceRender,Dt=Le.handler,Ke=Object(s.a)(Le,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),At=this.state.open;if(!ht)return t.createElement("div",{className:Et,ref:function(tt){de.dom=tt}},t.createElement($,Object.assign({},Ke,{open:At,handler:Dt,getContainer:function(){return de.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var Xe=!!Dt||Be;return t.createElement(A.a,{visible:At,forceRender:Xe,getContainer:ht,wrapperClassName:Et},function(et){var tt=et.visible,ot=et.afterClose,Ve=Object(s.a)(et,["visible","afterClose"]);return t.createElement($,Object.assign({},Ke,Ve,{open:tt!==void 0?tt:At,afterVisibleChange:ot!==void 0?ot:Ke.afterVisibleChange,handler:Dt,onClose:de.onClose,onHandleClick:de.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(de,Le){var Ge=Le.prevProps,ht={prevProps:de};return typeof Ge!="undefined"&&de.open!==Ge.open&&(ht.open=de.open),ht}}]),Te}(t.Component);Se.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 Ce=Se,Ae=Ce,Ue=e("V/uB"),Qe=e.n(Ue),gt=e("BGR+"),_e=e("H84U"),Oe=e("CWQg"),lt=function(ue,Ne){var Te={};for(var oe in ue)Object.prototype.hasOwnProperty.call(ue,oe)&&Ne.indexOf(oe)<0&&(Te[oe]=ue[oe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,oe=Object.getOwnPropertySymbols(ue);de=0&&f.each(E,function(A){t.setIconStatus(A,"normal")})}),t.setIconStatus(l,"emphasis"),d.eachComponent({mainType:"series",query:s==null?null:{seriesIndex:s}},p);var w;if(l==="stack"){var b=u.series&&u.series[0]&&u.series[0].stack===h;w=b?f.merge({stack:v.title.tiled},v.title):f.clone(v.title)}n.dispatchAction({type:"changeMagicType",currentType:l,newOption:u,newTitle:w,featureName:"magicType"})},g.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(d,n){n.mergeOption(d.newOption)}),m.register("magicType",c);var o=c;D.exports=o},"06Qe":function(D,_,e){var g=e("ItGF"),f="urn:schemas-microsoft-com:vml",y=typeof window=="undefined"?null:window,m=!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(r){return v.createElement("')}}catch(i){c=function(o){return v.createElement("<"+o+' xmlns="'+f+'" class="zrvml">')}}function a(){if(m||!v)return;m=!0;var i=v.styleSheets;i.length<31?v.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):i[0].addRule(".zrvml","behavior:url(#default#VML)")}_.doc=v,_.createNode=h,_.initVML=a},"09Wf":function(D,_,e){"use strict";e.d(_,"b",function(){return f}),e.d(_,"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,_,e){var g=e("T4UG"),f=e("I3/A"),y=e("7aKB"),m=y.encodeHTML,v=e("Qxkt"),h=e("Tghj"),c=h.__DEV__,a=g.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(r,o){for(var d=r.edges||r.links,n=r.data||r.nodes,l=r.levels,t=this.levelModels={},s=0;s=0&&(t[l[s].depth]=new v(l[s],this,o));if(n&&d){var u=f(n,d,this,!0,p);return u.data}function p(w,b){w.wrapMethod("getItemModel",function(E,A){return E.customizeGetParent(function(S){var T=this.parentModel,L=T.getData().getItemLayout(A).depth,x=T.levelModels[L];return x||this.parentModel}),E}),b.wrapMethod("getItemModel",function(E,A){return E.customizeGetParent(function(S){var T=this.parentModel,L=T.getGraph().getEdgeByIndex(A),x=L.node1.getLayout().depth,C=T.levelModels[x];return C||this.parentModel}),E})}},setNodePosition:function(r,o){var d=this.option.data[r];d.localX=o[0],d.localY=o[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(r,o,d){if(d==="edge"){var n=this.getDataParams(r,d),l=n.data,t=l.source+" -- "+l.target;return n.value&&(t+=" : "+n.value),m(t)}else if(d==="node"){var s=this.getGraph().getNodeByIndex(r),u=s.getLayout().value,p=this.getDataParams(r,d).data.name;if(u)var t=p+" : "+u;return m(t)}return a.superCall(this,"formatTooltip",r,o)},optionUpdated:function(){var r=this.option;r.focusNodeAdjacency===!0&&(r.focusNodeAdjacency="allEdges")},getDataParams:function(r,o){var d=a.superCall(this,"getDataParams",r,o);if(d.value==null&&o==="node"){var n=this.getGraph().getNodeByIndex(r),l=n.getLayout().value;d.value=l}return d},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=a;D.exports=i},"0Cz8":function(D,_,e){var g=e("Xi7e"),f=e("ebwN"),y=e("e4Nc"),m=200;function v(h,c){var a=this.__data__;if(a instanceof g){var i=a.__data__;if(!f||i.length=d.start.time&&o.timel.end.time&&i.reverse(),i},_getRangeInfo:function(i){i=[this.getDateInfo(i[0]),this.getDateInfo(i[1])];var r;i[0].time>i[1].time&&(r=!0,i.reverse());var o=Math.floor(i[1].time/v)-Math.floor(i[0].time/v)+1,d=new Date(i[0].time),n=d.getDate(),l=i[1].date.getDate();d.setDate(n+o-1);var t=d.getDate();if(t!==l)for(var s=d.getTime()-i[1].time>0?1:-1;(t=d.getDate())!==l&&(d.getTime()-i[1].time)*s>0;)o-=s,d.setDate(t-s);var u=Math.floor((o+i[0].day+6)/7),p=r?-u+1:u-1;return r&&i.reverse(),{range:[i[0].formatedDate,i[1].formatedDate],start:i[0],end:i[1],allDay:o,weeks:u,nthWeek:p,fweek:i[0].day,lweek:i[1].day}},_getDateByWeeksAndDay:function(i,r,o){var d=this._getRangeInfo(o);if(i>d.weeks||i===0&&rd.lweek)return!1;var n=(i-1)*7-d.fweek+r,l=new Date(d.start.time);return l.setDate(d.start.d+n),this.getDateInfo(l)}},h.dimensions=h.prototype.dimensions,h.getDimensionsInfo=h.prototype.getDimensionsInfo,h.create=function(i,r){var o=[];return i.eachComponent("calendar",function(d){var n=new h(d,i,r);o.push(n),d.coordinateSystem=n}),i.eachSeries(function(d){d.get("coordinateSystem")==="calendar"&&(d.coordinateSystem=o[d.get("calendarIndex")||0])}),o};function c(i,r,o,d){var n=o.calendarModel,l=o.seriesModel,t=n?n.coordinateSystem:l?l.coordinateSystem:null;return t===this?t[i](d):null}m.register("calendar",h);var a=h;D.exports=a},"0JQy":function(D,_){var e="\\ud800-\\udfff",g="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",y="\\u20d0-\\u20ff",m=g+f+y,v="\\ufe0e\\ufe0f",h="["+e+"]",c="["+m+"]",a="\\ud83c[\\udffb-\\udfff]",i="(?:"+c+"|"+a+")",r="[^"+e+"]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",n="\\u200d",l=i+"?",t="["+v+"]?",s="(?:"+n+"(?:"+[r,o,d].join("|")+")"+t+l+")*",u=t+l+s,p="(?:"+[r+c+"?",c,o,d,h].join("|")+")",w=RegExp(a+"(?="+a+")|"+p+u,"g");function b(E){return E.match(w)||[]}D.exports=b},"0NbB":function(D,_,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,m=e("6VBw"),v=function(a,i){return g.createElement(m.a,Object.assign({},a,{ref:i,icon:y}))};v.displayName="CaretDownOutlined";var h=_.a=g.forwardRef(v)},"0V0F":function(D,_,e){var g=e("bYtY"),f=g.createHashMap,y=g.each;function m(h){var c=f();h.eachSeries(function(a){var i=a.get("stack");if(i){var r=c.get(i)||c.set(i,[]),o=a.getData(),d={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:a};if(!d.stackedDimension||!(d.isStackedByIndex||d.stackedByDimension))return;r.length&&o.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(d)}}),c.each(v)}function v(h){y(h,function(c,a){var i=[],r=[NaN,NaN],o=[c.stackResultDimension,c.stackedOverDimension],d=c.data,n=c.isStackedByIndex,l=d.map(o,function(t,s,u){var p=d.get(c.stackedDimension,u);if(isNaN(p))return r;var w,b;n?b=d.getRawIndex(u):w=d.get(c.stackedByDimension,u);for(var E=NaN,A=a-1;A>=0;A--){var S=h[A];if(n||(b=S.data.rawIndexOf(S.stackedByDimension,w)),b>=0){var T=S.data.getByRawIndex(S.stackResultDimension,b);if(p>=0&&T>0||p<=0&&T<0){p+=T,E=T;break}}}return i[0]=p,i[1]=E,i});d.hostModel.setData(l),c.data=l})}D.exports=m},"0XgM":function(D,_,e){},"0fbx":function(D,_,e){},"0o9m":function(D,_,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,_,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,_){var e=arguments[3],g=arguments[4],f=arguments[5],y=JSON.stringify;D.exports=function(m,v){for(var h,c=Object.keys(f),a=0,i=c.length;a=0;A--){var S;if(b[A]!==w&&!b[A].ignore&&(S=n(b[A],u,p))&&(!E.topTarget&&(E.topTarget=b[A]),S!==c)){E.target=b[A];break}}return E},processGesture:function(u,p){this._gestureMgr||(this._gestureMgr=new h);var w=this._gestureMgr;p==="start"&&w.clear();var b=w.recognize(u,this.findHover(u.zrX,u.zrY,null).target,this.proxy.dom);if(p==="end"&&w.clear(),b){var E=b.type;u.gestureEvent=E,this.dispatchToElement({target:b.target},E,b.event)}}},g.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(s){d.prototype[s]=function(u){var p=u.zrX,w=u.zrY,b=l(this,p,w),E,A;if((s!=="mouseup"||!b)&&(E=this.findHover(p,w),A=E.target),s==="mousedown")this._downEl=A,this._downPoint=[u.zrX,u.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,[u.zrX,u.zrY])>4)return;this._downPoint=null}this.dispatchToElement(E,s,u)}});function n(s,u,p){if(s[s.rectHover?"rectContain":"contain"](u,p)){for(var w=s,b;w;){if(w.clipPath&&!w.clipPath.contain(u,p))return!1;w.silent&&(b=!0),w=w.parent}return b?c:!0}return!1}function l(s,u,p){var w=s.painter;return u<0||u>w.getWidth()||p<0||p>w.getHeight()}g.mixin(d,m),g.mixin(d,y);var t=d;D.exports=t},"0ycA":function(D,_){function e(){return[]}D.exports=e},"10cm":function(D,_,e){var g=e("ProS"),f=e("2B6p"),y=f.updateCenterAndZoom;e("0qV/");var m={type:"graphRoam",event:"graphRoam",update:"none"};g.registerAction(m,function(v,h){h.eachComponent({mainType:"series",query:v},function(c){var a=c.coordinateSystem,i=y(a,v);c.setCenter&&c.setCenter(i.center),c.setZoom&&c.setZoom(i.zoom)})})},"15/o":function(D,_,e){},"19Vz":function(D,_,e){(function(g){g(e("VrN/"))})(function(g){g.defineOption("placeholder","",function(a,i,r){var o=r&&r!=g.Init;if(i&&!o)a.on("blur",v),a.on("change",h),a.on("swapDoc",h),g.on(a.getInputField(),"compositionupdate",a.state.placeholderCompose=function(){m(a)}),h(a);else if(!i&&o){a.off("blur",v),a.off("change",h),a.off("swapDoc",h),g.off(a.getInputField(),"compositionupdate",a.state.placeholderCompose),f(a);var d=a.getWrapperElement();d.className=d.className.replace(" CodeMirror-empty","")}i&&!a.hasFocus()&&v(a)});function f(a){a.state.placeholder&&(a.state.placeholder.parentNode.removeChild(a.state.placeholder),a.state.placeholder=null)}function y(a){f(a);var i=a.state.placeholder=document.createElement("pre");i.style.cssText="height: 0; overflow: visible",i.style.direction=a.getOption("direction"),i.className="CodeMirror-placeholder CodeMirror-line-like";var r=a.getOption("placeholder");typeof r=="string"&&(r=document.createTextNode(r)),i.appendChild(r),a.display.lineSpace.insertBefore(i,a.display.lineSpace.firstChild)}function m(a){setTimeout(function(){var i=!1,r=a.getInputField();r.nodeName=="TEXTAREA"?i=!r.value:a.lineCount()==1&&(i=!/[^\u200b]/.test(r.querySelector(".CodeMirror-line").textContent)),i?y(a):f(a)},20)}function v(a){c(a)&&y(a)}function h(a){var i=a.getWrapperElement(),r=c(a);i.className=i.className.replace(" CodeMirror-empty","")+(r?" CodeMirror-empty":""),r?y(a):f(a)}function c(a){return a.lineCount()===1&&a.getLine(0)===""}})},"1Jh7":function(D,_,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,_,e){var g=e("ProS"),f=e("F9bG"),y=g.extendComponentView({type:"axisPointer",render:function(v,h,c){var a=h.getComponent("tooltip"),i=v.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";f.register("axisPointer",c,function(r,o,d){i!=="none"&&(r==="leave"||i.indexOf(r)>=0)&&d({type:"updateAxisPointer",currTrigger:r,x:o&&o.offsetX,y:o&&o.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)}}),m=y;D.exports=m},"1MYJ":function(D,_,e){var g=e("y+Vt"),f=g.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var m=this.__dirtyPath,v=this.shape.paths,h=0;h=A||F<0)break;if(o(P)){if(O){F+=S;continue}break}if(F===b)p[S>0?"moveTo":"lineTo"](P[0],P[1]);else if(x>0){var B=w[N],z=C==="y"?1:0,R=(P[z]-B[z])*x;c(i,B),i[z]=B[z]+R,c(r,P),r[z]=P[z]-R,p.bezierCurveTo(i[0],i[1],r[0],r[1],P[0],P[1])}else p.lineTo(P[0],P[1]);N=F,F+=S}return k}function l(p,w,b,E,A,S,T,L,x,C,O){for(var N=0,F=b,k=0;k=A||F<0)break;if(o(P)){if(O){F+=S;continue}break}if(F===b)p[S>0?"moveTo":"lineTo"](P[0],P[1]),c(i,P);else if(x>0){var B=F+S,z=w[B];if(O)for(;z&&o(w[B]);)B+=S,z=w[B];var R=.5,U=w[N],z=w[B];if(!z||o(z))c(r,P);else{o(z)&&!O&&(z=P),f.sub(a,z,U);var j,H;if(C==="x"||C==="y"){var V=C==="x"?0:1;j=Math.abs(P[V]-U[V]),H=Math.abs(P[V]-z[V])}else j=f.dist(P,U),H=f.dist(P,z);R=H/(H+j),h(r,P,a,-x*(1-R))}m(i,i,L),v(i,i,T),m(r,r,L),v(r,r,T),p.bezierCurveTo(i[0],i[1],r[0],r[1],P[0],P[1]),h(i,P,a,x*R)}else p.lineTo(P[0],P[1]);N=F,F+=S}return k}function t(p,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(p,w){var b=w.points,E=0,A=b.length,S=t(b,w.smoothConstraint);if(w.connectNulls){for(;A>0&&o(b[A-1]);A--);for(;E0&&o(b[S-1]);S--);for(;A=this._maxSize&&o>0){var n=a.head;a.remove(n),delete i[n.key],r=n.value,this._lastRemovedEntry=n}d?d.value=c:d=new f(c),d.key=h,a.insertEntry(d),i[h]=d}return r},m.get=function(h){var c=this._map[h],a=this._list;if(c!=null)return c!==a.tail&&(a.remove(c),a.insertEntry(c)),c.value},m.clear=function(){this._list.clear(),this._map={}};var v=y;D.exports=v},"1bdT":function(D,_,e){var g=e("3gBT"),f=e("H6uX"),y=e("DN4a"),m=e("vWvF"),v=e("bYtY"),h=function(i){y.call(this,i),f.call(this,i),m.call(this,i),this.id=i.id||g()};h.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(i,r){switch(this.draggable){case"horizontal":r=0;break;case"vertical":i=0;break}var o=this.transform;o||(o=this.transform=[1,0,0,1,0,0]),o[4]+=i,o[5]+=r,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(i,r){},attrKV:function(i,r){if(i==="position"||i==="scale"||i==="origin"){if(r){var o=this[i];o||(o=this[i]=[]),o[0]=r[0],o[1]=r[1]}}else this[i]=r},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(i,r){if(typeof i=="string")this.attrKV(i,r);else if(v.isObject(i))for(var o in i)i.hasOwnProperty(o)&&this.attrKV(o,i[o]);return this.dirty(!1),this},setClipPath:function(i){var r=this.__zr;r&&i.addSelfToZr(r),this.clipPath&&this.clipPath!==i&&this.removeClipPath(),this.clipPath=i,i.__zr=r,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 r=this.animators;if(r)for(var o=0;o> RFB.constructor"),Le._screen=document.createElement("div"),Le._screen.style.display="flex",Le._screen.style.width="100%",Le._screen.style.height="100%",Le._screen.style.overflow="auto",Le._screen.style.background=X,Le._canvas=document.createElement("canvas"),Le._canvas.style.margin="auto",Le._canvas.style.outline="none",Le._canvas.style.flexShrink="0",Le._canvas.width=0,Le._canvas.height=0,Le._canvas.tabIndex=-1,Le._screen.appendChild(Le._canvas),Le._cursor=new n.default,Le._cursorImage=Ne.cursors.none,Le._decoders[p.encodings.encodingRaw]=new w.default,Le._decoders[p.encodings.encodingCopyRect]=new b.default,Le._decoders[p.encodings.encodingRRE]=new E.default,Le._decoders[p.encodings.encodingHextile]=new A.default,Le._decoders[p.encodings.encodingTight]=new S.default,Le._decoders[p.encodings.encodingTightPNG]=new T.default;try{Le._display=new a.default(Le._canvas)}catch(Ge){throw f.Error("Display exception: "+Ge),Ge}return Le._display.onflush=Le._onFlush.bind(U(Le)),Le._keyboard=new o.default(Le._canvas),Le._keyboard.onkeyevent=Le._handleKeyEvent.bind(U(Le)),Le._gestures=new d.default,Le._sock=new l.default,Le._sock.on("message",function(){Le._handleMessage()}),Le._sock.on("open",function(){Le._rfbConnectionState==="connecting"&&Le._rfbInitState===""?(Le._rfbInitState="ProtocolVersion",f.Debug("Starting VNC handshake")):Le._fail("Unexpected server connection while "+Le._rfbConnectionState)}),Le._sock.on("close",function(Ge){f.Debug("WebSocket on-close event");var ht="";Ge.code&&(ht="(code: "+Ge.code,Ge.reason&&(ht+=", reason: "+Ge.reason),ht+=")");switch(Le._rfbConnectionState){case"connecting":Le._fail("Connection closed "+ht);break;case"connected":Le._updateConnectionState("disconnecting"),Le._updateConnectionState("disconnected");break;case"disconnecting":Le._updateConnectionState("disconnected");break;case"disconnected":Le._fail("Unexpected server disconnect when already disconnected "+ht);break;default:Le._fail("Unexpected server disconnect before connecting "+ht);break}Le._sock.off("close")}),Le._sock.on("error",function(Ge){return f.Warn("WebSocket on-error event")}),setTimeout(Le._updateConnectionState.bind(U(Le),"connecting")),f.Debug("<< RFB.constructor"),Le.dragViewport=!1,Le.focusOnClick=!0,Le._viewOnly=!1,Le._clipViewport=!1,Le._scaleViewport=!1,Le._resizeSession=!1,Le._showDotCursor=!1,de.showDotCursor!==void 0&&(f.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),Le._showDotCursor=de.showDotCursor),Le._qualityLevel=6,Le._compressionLevel=2,Le}return k(Ne,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(oe){this._rfbCredentials=oe,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(oe,de,Le){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(Le===void 0){this.sendKey(oe,de,!0),this.sendKey(oe,de,!1);return}var Ge=u.default[de];if(this._qemuExtKeyEventSupported&&Ge)oe=oe||0,f.Info("Sending key ("+(Le?"down":"up")+"): keysym "+oe+", scancode "+Ge),Ne.messages.QEMUExtendedKeyEvent(this._sock,oe,Le,Ge);else{if(!oe)return;f.Info("Sending keysym ("+(Le?"down":"up")+"): "+oe),Ne.messages.keyEvent(this._sock,oe,Le?1:0)}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(oe){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(this._clipboardServerCapabilitiesFormats[Ae]&&this._clipboardServerCapabilitiesActions[Y])this._clipboardText=oe,Ne.messages.extendedClipboardNotify(this._sock,[Ae]);else{for(var de=new Uint8Array(oe.length),Le=0;Le> RFB.connect"),f.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(oe){oe.name==="SyntaxError"?this._fail("Invalid host or port ("+oe+")"):this._fail("Error when opening socket ("+oe+")")}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(oe){if(!(oe.name==="NotFoundError"))throw oe}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),f.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(oe){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(oe){this._fbName=oe,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(oe){var de=this;window.requestAnimationFrame(function(){de._updateClip(),de._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var oe=this._display.clipViewport,de=this._clipViewport;if(this._scaleViewport&&(de=!1),oe!==de&&(this._display.clipViewport=de),de){var Le=this._screenSize();this._display.viewportChangeSize(Le.w,Le.h),this._fixScrollbars()}}},{key:"_updateScale",value:function(){if(!this._scaleViewport)this._display.scale=1;else{var oe=this._screenSize();this._display.autoscale(oe.w,oe.h)}this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;var oe=this._screenSize();Ne.messages.setDesktopSize(this._sock,Math.floor(oe.w),Math.floor(oe.h),this._screenID,this._screenFlags),f.Debug("Requested new desktop size: "+oe.w+"x"+oe.h)}},{key:"_screenSize",value:function(){var oe=this._screen.getBoundingClientRect();return{w:oe.width,h:oe.height}}},{key:"_fixScrollbars",value:function(){var oe=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=oe}},{key:"_updateConnectionState",value:function(oe){var de=this,Le=this._rfbConnectionState;if(oe===Le){f.Debug("Already in state '"+oe+"', ignoring");return}if(Le==="disconnected"){f.Error("Tried changing state of a disconnected RFB object");return}switch(oe){case"connected":if(Le!=="connecting"){f.Error("Bad transition to connected state, previous connection state: "+Le);return}break;case"disconnected":if(Le!=="disconnecting"){f.Error("Bad transition to disconnected state, previous connection state: "+Le);return}break;case"connecting":if(Le!==""){f.Error("Bad transition to connecting state, previous connection state: "+Le);return}break;case"disconnecting":if(Le!=="connected"&&Le!=="connecting"){f.Error("Bad transition to disconnecting state, previous connection state: "+Le);return}break;default:f.Error("Unknown connection state: "+oe);return}this._rfbConnectionState=oe,f.Debug("New state '"+oe+"', was '"+Le+"'."),this._disconnTimer&&oe!=="disconnecting"&&(f.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(oe){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."),de._updateConnectionState("disconnected")},V*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(oe){switch(this._rfbConnectionState){case"disconnecting":f.Error("Failed when disconnecting: "+oe);break;case"connected":f.Error("Failed while connected: "+oe);break;case"connecting":f.Error("Failed when connecting: "+oe);break;default:f.Error("RFB failure: "+oe);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(oe,de){this._capabilities[oe]=de,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(oe,de,Le){this.sendKey(oe,de,Le)}},{key:"_handleMouse",value:function(oe){if(oe.type==="click"&&oe.target!==this._canvas)return;if(oe.stopPropagation(),oe.preventDefault(),oe.type==="click"||oe.type==="contextmenu")return;var de=(0,v.clientToElement)(oe.clientX,oe.clientY,this._canvas);switch(oe.type){case"mousedown":(0,h.setCapture)(this._canvas),this._handleMouseButton(de.x,de.y,!0,1<m.dragThreshold||Math.abs(ht)>m.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:oe,y:de},this._display.viewportChangePos(Ge,ht));return}if(this._mousePos={x:oe,y:de},this._mouseMoveTimer==null){var Et=Date.now()-this._mouseLastMoveTime;Et>W?(this._sendMouse(oe,de,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){Le._handleDelayedMouseMove()},W-Et)}}},{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(oe,de,Le){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;Ne.messages.pointerEvent(this._sock,this._display.absX(oe),this._display.absY(de),Le)}},{key:"_handleWheel",value:function(oe){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;oe.stopPropagation(),oe.preventDefault();var de=(0,v.clientToElement)(oe.clientX,oe.clientY,this._canvas),Le=oe.deltaX,Ge=oe.deltaY;oe.deltaMode!==0&&(Le*=$,Ge*=$),this._accumulatedWheelDeltaX+=Le,this._accumulatedWheelDeltaY+=Ge,Math.abs(this._accumulatedWheelDeltaX)>=G&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(de.x,de.y,!0,1<<5),this._handleMouseButton(de.x,de.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(de.x,de.y,!0,1<<6),this._handleMouseButton(de.x,de.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=G&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(de.x,de.y,!0,1<<3),this._handleMouseButton(de.x,de.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(de.x,de.y,!0,1<<4),this._handleMouseButton(de.x,de.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(oe,de,Le){this._handleMouseMove(de,Le),this._cursor.move(oe.detail.clientX,oe.detail.clientY)}},{key:"_handleTapEvent",value:function(oe,de){var Le=(0,v.clientToElement)(oe.detail.clientX,oe.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTimeq;)this._handleMouseButton(Le.x,Le.y,!0,8),this._handleMouseButton(Le.x,Le.y,!1,8),this._gestureLastMagnitudeY+=q;for(;oe.detail.magnitudeY-this._gestureLastMagnitudeY<-q;)this._handleMouseButton(Le.x,Le.y,!0,16),this._handleMouseButton(Le.x,Le.y,!1,16),this._gestureLastMagnitudeY-=q;for(;oe.detail.magnitudeX-this._gestureLastMagnitudeX>q;)this._handleMouseButton(Le.x,Le.y,!0,32),this._handleMouseButton(Le.x,Le.y,!1,32),this._gestureLastMagnitudeX+=q;for(;oe.detail.magnitudeX-this._gestureLastMagnitudeX<-q;)this._handleMouseButton(Le.x,Le.y,!0,64),this._handleMouseButton(Le.x,Le.y,!1,64),this._gestureLastMagnitudeX-=q;break;case"pinch":if(this._fakeMouseMove(oe,Le.x,Le.y),de=Math.hypot(oe.detail.magnitudeX,oe.detail.magnitudeY),Math.abs(de-this._gestureLastMagnitudeX)>ge){for(this._handleKeyEvent(s.default.XK_Control_L,"ControlLeft",!0);de-this._gestureLastMagnitudeX>ge;)this._handleMouseButton(Le.x,Le.y,!0,8),this._handleMouseButton(Le.x,Le.y,!1,8),this._gestureLastMagnitudeX+=ge;for(;de-this._gestureLastMagnitudeX<-ge;)this._handleMouseButton(Le.x,Le.y,!0,16),this._handleMouseButton(Le.x,Le.y,!1,16),this._gestureLastMagnitudeX-=ge}this._handleKeyEvent(s.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(oe.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(oe,Le.x,Le.y),this._handleMouseButton(Le.x,Le.y,!1,1);break;case"longpress":this._fakeMouseMove(oe,Le.x,Le.y),this._handleMouseButton(Le.x,Le.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var oe=this._sock.rQshiftStr(12).substr(4,7);f.Info("Server ProtocolVersion: "+oe);var de=0;switch(oe){case"000.000":de=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 "+oe)}if(de){for(var Le="ID:"+this._repeaterID;Le.length<250;)Le+="\0";return this._sock.sendString(Le),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var Ge="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+Ge+` `),f.Debug("Sent ProtocolVersion: "+Ge),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function oe(Ge,ht){for(var Et=0;Et=3.7){var de=this._sock.rQshift8();if(this._sock.rQwait("security type",de,1))return!1;if(de===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var Le=this._sock.rQshiftBytes(de);if(f.Debug("Server security types: "+Le),oe(1,Le))this._rfbAuthScheme=1;else if(oe(22,Le))this._rfbAuthScheme=22;else if(oe(16,Le))this._rfbAuthScheme=16;else if(oe(2,Le))this._rfbAuthScheme=2;else if(oe(19,Le))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+Le+")");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 oe=this._sock.rQshift32(),de="";if(oe>0){if(this._sock.rQwait("reason",oe,4))return!1;de=this._sock.rQshiftStr(oe)}return de!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:de}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+de+")")):(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 oe=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(oe),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var oe=this._sock.rQshift8(),de=this._sock.rQshift8();if(!(oe==0&&de==2))return this._fail("Unsupported VeNCrypt version "+oe+"."+de);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var Le=this._sock.rQshift8();if(Le!=0)return this._fail("VeNCrypt failure "+Le);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var Ge=this._sock.rQshift8();if(Ge<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=Ge,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var ht=[],Et=0;Et0&&this._sock.rQwait("tunnel capabilities",16*oe,4))return!1;if(this._rfbTightVNC=!0,oe>0)return this._negotiateTightTunnels(oe),!1}if(this._sock.rQwait("sub auth count",4))return!1;var de=this._sock.rQshift32();if(de===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*de,4))return!1;for(var Le={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},Ge=[],ht=0;ht=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 oe=this._sock.rQshift32();return oe===0?(this._rfbInitState="ClientInitialisation",f.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=oe,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:oe}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var oe=this._sock.rQshift16(),de=this._sock.rQshift16(),Le=this._sock.rQshift8(),Ge=this._sock.rQshift8(),ht=this._sock.rQshift8(),Et=this._sock.rQshift8(),Be=this._sock.rQshift16(),Dt=this._sock.rQshift16(),Ke=this._sock.rQshift16(),At=this._sock.rQshift8(),Xe=this._sock.rQshift8(),et=this._sock.rQshift8();this._sock.rQskipBytes(3);var tt=this._sock.rQshift32();if(this._sock.rQwait("server init name",tt,24))return!1;var ot=this._sock.rQshiftStr(tt);if(ot=(0,y.decodeUTF8)(ot,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+tt))return!1;var Ve=this._sock.rQshift16(),se=this._sock.rQshift16(),re=this._sock.rQshift16();this._sock.rQskipBytes(2);var it=(Ve+se+re)*16;if(this._sock.rQwait("TightVNC extended server init header",it,32+tt))return!1;this._sock.rQskipBytes(16*Ve),this._sock.rQskipBytes(16*se),this._sock.rQskipBytes(16*re)}return f.Info("Screen: "+oe+"x"+de+", bpp: "+Le+", depth: "+Ge+", bigEndian: "+ht+", trueColor: "+Et+", redMax: "+Be+", greenMax: "+Dt+", blueMax: "+Ke+", redShift: "+At+", greenShift: "+Xe+", blueShift: "+et),this._setDesktopName(ot),this._resize(oe,de),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),Ne.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),Ne.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}},{key:"_sendEncodings",value:function(){var oe=[];oe.push(p.encodings.encodingCopyRect),this._fbDepth==24&&(oe.push(p.encodings.encodingTight),oe.push(p.encodings.encodingTightPNG),oe.push(p.encodings.encodingHextile),oe.push(p.encodings.encodingRRE)),oe.push(p.encodings.encodingRaw),oe.push(p.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),oe.push(p.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),oe.push(p.encodings.pseudoEncodingDesktopSize),oe.push(p.encodings.pseudoEncodingLastRect),oe.push(p.encodings.pseudoEncodingQEMUExtendedKeyEvent),oe.push(p.encodings.pseudoEncodingExtendedDesktopSize),oe.push(p.encodings.pseudoEncodingXvp),oe.push(p.encodings.pseudoEncodingFence),oe.push(p.encodings.pseudoEncodingContinuousUpdates),oe.push(p.encodings.pseudoEncodingDesktopName),oe.push(p.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(oe.push(p.encodings.pseudoEncodingVMwareCursor),oe.push(p.encodings.pseudoEncodingCursor)),Ne.messages.clientEncodings(this._sock,oe)}},{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 oe=this._sock.rQshift32();if(oe=(0,g.toSigned32bit)(oe),this._sock.rQwait("ServerCutText content",Math.abs(oe),8))return!1;if(oe>=0){var de=this._sock.rQshiftStr(oe);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:de}}))}else{oe=Math.abs(oe);var Le=this._sock.rQshift32(),Ge=Le&65535,ht=Le&4278190080,Et=!!(ht&Oe);if(Et){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var Be=0;Be<=15;Be++){var Dt=1<0&&ot.charAt(ot.length-1)==="\0"&&(ot=ot.slice(0,-1)),ot=ot.replace(`\r `,` `),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:ot}}))}}else return this._fail("Unexpected action in extended clipboard message: "+ht)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var oe=this._sock.rQshift32(),de=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",de,9))return!1;de>64&&(f.Warn("Bad payload length ("+de+") in fence response"),de=64);var Le=this._sock.rQshiftStr(de);return this._supportsFence=!0,oe&1<<31?(oe&=1<<0|1<<1,Ne.messages.clientFence(this._sock,oe,Le),!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 oe=this._sock.rQshift8(),de=this._sock.rQshift8();switch(de){case 0:f.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=oe,f.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+de+")");break}return!0}},{key:"_normalMsg",value:function(){var oe;this._FBU.rects>0?oe=0:oe=this._sock.rQshift8();var de,Le;switch(oe){case 0:return Le=this._framebufferUpdate(),Le&&!this._enabledContinuousUpdates&&Ne.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),Le;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 de=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,de&&(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 "+oe+")"),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 oe=this._sock.rQshiftBytes(12);this._FBU.x=(oe[0]<<8)+oe[1],this._FBU.y=(oe[2]<<8)+oe[3],this._FBU.width=(oe[4]<<8)+oe[5],this._FBU.height=(oe[6]<<8)+oe[7],this._FBU.encoding=parseInt((oe[8]<<24)+(oe[9]<<16)+(oe[10]<<8)+oe[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 p.encodings.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case p.encodings.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case p.encodings.pseudoEncodingCursor:return this._handleCursor();case p.encodings.pseudoEncodingQEMUExtendedKeyEvent:try{var oe=document.createEvent("keyboardEvent");oe.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(de){}return!0;case p.encodings.pseudoEncodingDesktopName:return this._handleDesktopName();case p.encodings.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case p.encodings.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}},{key:"_handleVMwareCursor",value:function(){var oe=this._FBU.x,de=this._FBU.y,Le=this._FBU.width,Ge=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var ht=this._sock.rQshift8();this._sock.rQshift8();var Et,Be=4;if(ht==0){var Dt=4294967040|0;if(Et=new Array(Le*Ge*Be),this._sock.rQwait("VMware cursor classic encoding",Le*Ge*Be*2,2))return!1;for(var Ke=new Array(Le*Ge),At=0;At>8&255,se=ot>>16&255,re=ot>>24&255;Et[tt*Be]=Ve,Et[tt*Be+1]=se,Et[tt*Be+2]=re,Et[tt*Be+3]=255}else(Ke[tt]&Dt)==Dt?Xe[tt]==0?(Et[tt*Be]=0,Et[tt*Be+1]=0,Et[tt*Be+2]=0,Et[tt*Be+3]=0):((Xe[tt]&Dt)==Dt,Et[tt*Be]=0,Et[tt*Be+1]=0,Et[tt*Be+2]=0,Et[tt*Be+3]=255):(Et[tt*Be]=0,Et[tt*Be+1]=0,Et[tt*Be+2]=0,Et[tt*Be+3]=255)}else if(ht==1){if(this._sock.rQwait("VMware cursor alpha encoding",Le*Ge*4,2))return!1;Et=new Array(Le*Ge*Be);for(var it=0;it>24&255,Et[it*4+1]=qe>>16&255,Et[it*4+2]=qe>>8&255,Et[it*4+3]=qe&255}}else return f.Warn("The given cursor type is not supported: "+ht+" given."),!1;return this._updateCursor(Et,oe,de,Le,Ge),!0}},{key:"_handleCursor",value:function(){var oe=this._FBU.x,de=this._FBU.y,Le=this._FBU.width,Ge=this._FBU.height,ht=Le*Ge*4,Et=Math.ceil(Le/8)*Ge,Be=ht+Et;if(this._sock.rQwait("cursor encoding",Be))return!1;for(var Dt=this._sock.rQshiftBytes(ht),Ke=this._sock.rQshiftBytes(Et),At=new Uint8Array(Le*Ge*4),Xe=0,et=0;et9){f.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===oe)return;this._qualityLevel=oe,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(oe){if(!Number.isInteger(oe)||oe<0||oe>9){f.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===oe)return;this._compressionLevel=oe,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(oe,de){var Le=oe.split("").map(function(Ge){return Ge.charCodeAt(0)});return new t.default(Le).encrypt(de)}}]),Ne}(c.default);_.default=Q,Q.messages={keyEvent:function(ue,Ne,Te){var oe=ue._sQ,de=ue._sQlen;oe[de]=4,oe[de+1]=Te,oe[de+2]=0,oe[de+3]=0,oe[de+4]=Ne>>24,oe[de+5]=Ne>>16,oe[de+6]=Ne>>8,oe[de+7]=Ne,ue._sQlen+=8,ue.flush()},QEMUExtendedKeyEvent:function(ue,Ne,Te,oe){function de(Et){var Be=oe>>8,Dt=oe&255;return Be===224&&Dt<127?Dt|128:Et}var Le=ue._sQ,Ge=ue._sQlen;Le[Ge]=255,Le[Ge+1]=0,Le[Ge+2]=Te>>8,Le[Ge+3]=Te,Le[Ge+4]=Ne>>24,Le[Ge+5]=Ne>>16,Le[Ge+6]=Ne>>8,Le[Ge+7]=Ne;var ht=de(oe);Le[Ge+8]=ht>>24,Le[Ge+9]=ht>>16,Le[Ge+10]=ht>>8,Le[Ge+11]=ht,ue._sQlen+=12,ue.flush()},pointerEvent:function(ue,Ne,Te,oe){var de=ue._sQ,Le=ue._sQlen;de[Le]=5,de[Le+1]=oe,de[Le+2]=Ne>>8,de[Le+3]=Ne,de[Le+4]=Te>>8,de[Le+5]=Te,ue._sQlen+=6,ue.flush()},_buildExtendedClipboardFlags:function(ue,Ne){for(var Te=new Uint8Array(4),oe=0,de=0,Le=0;Le>24,Te[1]=0,Te[2]=0,Te[3]=oe,Te},extendedClipboardProvide:function(ue,Ne,Te){for(var oe=new r.default,de=[],Le=0;Le>24&255,Ge.length>>16&255,Ge.length>>8&255,Ge.length&255);for(var ht=0;ht>24,de[Le+1]=Te[oe[Ge]]>>16,de[Le+2]=Te[oe[Ge]]>>8,de[Le+3]=Te[oe[Ge]]>>0,Le+=4,de[3]|=1<2&&arguments[2]!==void 0?arguments[2]:!1,oe=ue._sQ,de=ue._sQlen;oe[de]=6,oe[de+1]=0,oe[de+2]=0,oe[de+3]=0;var Le;Te?Le=(0,g.toUnsigned32bit)(-Ne.length):Le=Ne.length,oe[de+4]=Le>>24,oe[de+5]=Le>>16,oe[de+6]=Le>>8,oe[de+7]=Le,ue._sQlen+=8;for(var Ge=0,ht=Ne.length;ht>0;){for(var Et=Math.min(ht,ue._sQbufferSize-ue._sQlen),Be=0;Be>8,Le[Ge+3]=Ne,Le[Ge+4]=Te>>8,Le[Ge+5]=Te,Le[Ge+6]=1,Le[Ge+7]=0,Le[Ge+8]=oe>>24,Le[Ge+9]=oe>>16,Le[Ge+10]=oe>>8,Le[Ge+11]=oe,Le[Ge+12]=0,Le[Ge+13]=0,Le[Ge+14]=0,Le[Ge+15]=0,Le[Ge+16]=Ne>>8,Le[Ge+17]=Ne,Le[Ge+18]=Te>>8,Le[Ge+19]=Te,Le[Ge+20]=de>>24,Le[Ge+21]=de>>16,Le[Ge+22]=de>>8,Le[Ge+23]=de,ue._sQlen+=24,ue.flush()},clientFence:function(ue,Ne,Te){var oe=ue._sQ,de=ue._sQlen;oe[de]=248,oe[de+1]=0,oe[de+2]=0,oe[de+3]=0,oe[de+4]=Ne>>24,oe[de+5]=Ne>>16,oe[de+6]=Ne>>8,oe[de+7]=Ne;var Le=Te.length;oe[de+8]=Le;for(var Ge=0;Ge>8,Ge[ht+3]=Te,Ge[ht+4]=oe>>8,Ge[ht+5]=oe,Ge[ht+6]=de>>8,Ge[ht+7]=de,Ge[ht+8]=Le>>8,Ge[ht+9]=Le,ue._sQlen+=10,ue.flush()},pixelFormat:function(ue,Ne,Te){var oe=ue._sQ,de=ue._sQlen,Le;Ne>16?Le=32:Ne>8?Le=16:Le=8;var Ge=Math.floor(Ne/3);oe[de]=0,oe[de+1]=0,oe[de+2]=0,oe[de+3]=0,oe[de+4]=Le,oe[de+5]=Ne,oe[de+6]=0,oe[de+7]=Te?1:0,oe[de+8]=0,oe[de+9]=(1<>8,Te[oe+3]=Ne.length;for(var de=oe+4,Le=0;Le>24,Te[de+1]=Ge>>16,Te[de+2]=Ge>>8,Te[de+3]=Ge,de+=4}ue._sQlen+=de-oe,ue.flush()},fbUpdateRequest:function(ue,Ne,Te,oe,de,Le){var Ge=ue._sQ,ht=ue._sQlen;typeof Te=="undefined"&&(Te=0),typeof oe=="undefined"&&(oe=0),Ge[ht]=3,Ge[ht+1]=Ne?1:0,Ge[ht+2]=Te>>8&255,Ge[ht+3]=Te&255,Ge[ht+4]=oe>>8&255,Ge[ht+5]=oe&255,Ge[ht+6]=de>>8&255,Ge[ht+7]=de&255,Ge[ht+8]=Le>>8&255,Ge[ht+9]=Le&255,ue._sQlen+=10,ue.flush()},xvpOp:function(ue,Ne,Te){var oe=ue._sQ,de=ue._sQlen;oe[de]=250,oe[de+1]=0,oe[de+2]=Ne,oe[de+3]=Te,ue._sQlen+=4,ue.flush()}},Q.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,_,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(m,v){var h=m.indentUnit,c={},a=v.htmlMode?f:y;for(var i in a)c[i]=a[i];for(var i in v)c[i]=v[i];var r,o;function d(N,F){function k(z){return F.tokenize=z,z(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"):(r=N.eat("/")?"closeTag":"openTag",F.tokenize=n,"tag bracket");if(P=="&"){var B;return N.eat("#")?N.eat("x")?B=N.eatWhile(/[a-fA-F\d]/)&&N.eat(";"):B=N.eatWhile(/[\d]/)&&N.eat(";"):B=N.eatWhile(/[\w\.\-:]/)&&N.eat(";"),B?"atom":"error"}else return N.eatWhile(/[^&<]/),null}d.isInText=!0;function n(N,F){var k=N.next();if(k==">"||k=="/"&&N.eat(">"))return F.tokenize=d,r=k==">"?"endTag":"selfcloseTag","tag bracket";if(k=="=")return r="equals",null;if(k=="<"){F.tokenize=d,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,B){for(;!P.eol();)if(P.next()==N){B.tokenize=n;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=d;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=d;break}else return k.tokenize=s(N-1),k.tokenize(F,k)}return"meta"}}function u(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 p(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;p(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(),o="tag",L):c.allowMissingTagName&&N=="endTag"?(o="tag bracket",L(N,F,k)):(o="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)&&p(k),k.context&&k.context.tagName==P||c.matchClosing===!1?(o="tag",S):(o="tag error",T)}else return c.allowMissingTagName&&N=="endTag"?(o="tag bracket",S(N,F,k)):(o="error",T)}function S(N,F,k){return N!="endTag"?(o="error",S):(p(k),b)}function T(N,F,k){return o="error",S(N,F,k)}function L(N,F,k){if(N=="word")return o="attribute",x;if(N=="endTag"||N=="selfcloseTag"){var P=k.tagName,B=k.tagStart;return k.tagName=k.tagStart=null,N=="selfcloseTag"||c.autoSelfClosers.hasOwnProperty(P)?w(k,P):(w(k,P),k.context=new u(k,P,B==k.indented)),b}return o="error",L}function x(N,F,k){return N=="equals"?C:(c.allowMissing||(o="error"),L(N,F,k))}function C(N,F,k){return N=="string"?O:N=="word"&&c.allowUnquoted?(o="string",L):(o="error",L(N,F,k))}function O(N,F,k){return N=="string"?O:L(N,F,k)}return{startState:function(F){var k={tokenize:d,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;r=null;var P=k.tokenize(F,k);return(P||r)&&P!="comment"&&(o=null,k.state=k.state(r||P,F,k),o&&(P=o=="error"?P+" error":o)),P},indent:function(F,k,P){var B=F.context;if(F.tokenize.isInAttribute)return F.tagStart==F.indented?F.stringStartCol+1:F.indented+h;if(B&&B.noIndent)return g.Pass;if(F.tokenize!=n&&F.tokenize!=d)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=L)},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,_,e){var g=e("e4Nc"),f=e("ftKO"),y=e("3A9y");function m(v){var h=-1,c=v==null?0:v.length;for(this.__data__=new g;++h1&&arguments[1]!==void 0?arguments[1]:!1,Ot=nt&&typeof nt.getBoundingClientRect=="function"&&nt.getBoundingClientRect().width;if(Ot){if(bt){var ae=getComputedStyle(nt),pe=ae.marginLeft,J=ae.marginRight;Ot+=+pe.replace("px","")+ +J.replace("px","")}Ot=+Ot.toFixed(6)}return Ot||0},Y=function(nt,bt,Ot){nt&&Object(N.a)(nt.style)==="object"&&(nt.style[bt]=Ot)},K=function(){return Ae.any},Q=e("KQm4"),ye=e("Ff2n"),ue=e("i8i4"),Ne=e("bdgK"),Te=e("uciX"),oe=e("8XRh"),de={adjustX:1,adjustY:1},Le={topLeft:{points:["bl","tl"],overflow:de,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:de,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:de,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:de,offset:[4,0]}},Ge={topLeft:{points:["bl","tl"],overflow:de,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:de,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:de,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:de,offset:[4,0]}},ht=Le,Et=0,Be={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Dt=function(nt,bt,Ot){var ae=gt(bt),pe=nt.getState();nt.setState({defaultActiveFirst:Object(g.a)(Object(g.a)({},pe.defaultActiveFirst),{},Object(T.a)({},ae,Ot))})},Ke=function(Pe){Object(v.a)(bt,Pe);var nt=Object(h.a)(bt);function bt(Ot){var ae;Object(f.a)(this,bt),ae=nt.call(this,Ot),ae.onDestroy=function(Fe){ae.props.onDestroy(Fe)},ae.onKeyDown=function(Fe){var $e=Fe.keyCode,vt=ae.menuInstance,Wt=ae.props,$t=Wt.isOpen,Rt=Wt.store;if($e===L.a.ENTER)return ae.onTitleClick(Fe),Dt(Rt,ae.props.eventKey,!0),!0;if($e===L.a.RIGHT)return $t?vt.onKeyDown(Fe):(ae.triggerOpenChange(!0),Dt(Rt,ae.props.eventKey,!0)),!0;if($e===L.a.LEFT){var Kt;if($t)Kt=vt.onKeyDown(Fe);else return;return Kt||(ae.triggerOpenChange(!1),Kt=!0),Kt}return $t&&($e===L.a.UP||$e===L.a.DOWN)?vt.onKeyDown(Fe):void 0},ae.onOpenChange=function(Fe){ae.props.onOpenChange(Fe)},ae.onPopupVisibleChange=function(Fe){ae.triggerOpenChange(Fe,Fe?"mouseenter":"mouseleave")},ae.onMouseEnter=function(Fe){var $e=ae.props,vt=$e.eventKey,Wt=$e.onMouseEnter,$t=$e.store;Dt($t,ae.props.eventKey,!1),Wt({key:vt,domEvent:Fe})},ae.onMouseLeave=function(Fe){var $e=ae.props,vt=$e.parentMenu,Wt=$e.eventKey,$t=$e.onMouseLeave;vt.subMenuInstance=Object(m.a)(ae),$t({key:Wt,domEvent:Fe})},ae.onTitleMouseEnter=function(Fe){var $e=ae.props,vt=$e.eventKey,Wt=$e.onItemHover,$t=$e.onTitleMouseEnter;Wt({key:vt,hover:!0}),$t({key:vt,domEvent:Fe})},ae.onTitleMouseLeave=function(Fe){var $e=ae.props,vt=$e.parentMenu,Wt=$e.eventKey,$t=$e.onItemHover,Rt=$e.onTitleMouseLeave;vt.subMenuInstance=Object(m.a)(ae),$t({key:Wt,hover:!1}),Rt({key:Wt,domEvent:Fe})},ae.onTitleClick=function(Fe){var $e=Object(m.a)(ae),vt=$e.props;if(vt.onTitleClick({key:vt.eventKey,domEvent:Fe}),vt.triggerSubMenuAction==="hover")return;ae.triggerOpenChange(!vt.isOpen,"click"),Dt(vt.store,ae.props.eventKey,!1)},ae.onSubMenuClick=function(Fe){typeof ae.props.onClick=="function"&&ae.props.onClick(ae.addKeyPath(Fe))},ae.onSelect=function(Fe){ae.props.onSelect(Fe)},ae.onDeselect=function(Fe){ae.props.onDeselect(Fe)},ae.getPrefixCls=function(){return"".concat(ae.props.rootPrefixCls,"-submenu")},ae.getActiveClassName=function(){return"".concat(ae.getPrefixCls(),"-active")},ae.getDisabledClassName=function(){return"".concat(ae.getPrefixCls(),"-disabled")},ae.getSelectedClassName=function(){return"".concat(ae.getPrefixCls(),"-selected")},ae.getOpenClassName=function(){return"".concat(ae.props.rootPrefixCls,"-submenu-open")},ae.saveMenuInstance=function(Fe){ae.menuInstance=Fe},ae.addKeyPath=function(Fe){return Object(g.a)(Object(g.a)({},Fe),{},{keyPath:(Fe.keyPath||[]).concat(ae.props.eventKey)})},ae.triggerOpenChange=function(Fe,$e){var vt=ae.props.eventKey,Wt=function(){ae.onOpenChange({key:vt,item:Object(m.a)(ae),trigger:$e,open:Fe})};$e==="mouseenter"?ae.mouseenterTimeout=setTimeout(function(){Wt()},0):Wt()},ae.isChildrenSelected=function(){var Fe={find:!1};return Oe(ae.props.children,ae.props.selectedKeys,Fe),Fe.find},ae.isOpen=function(){return ae.props.openKeys.indexOf(ae.props.eventKey)!==-1},ae.adjustWidth=function(){if(!ae.subMenuTitle||!ae.menuInstance)return;var Fe=ue.findDOMNode(ae.menuInstance);if(Fe.offsetWidth>=ae.subMenuTitle.offsetWidth)return;Fe.style.minWidth="".concat(ae.subMenuTitle.offsetWidth,"px")},ae.saveSubMenuTitle=function(Fe){ae.subMenuTitle=Fe},ae.getBaseProps=function(){var Fe=Object(m.a)(ae),$e=Fe.props;return{mode:$e.mode==="horizontal"?"vertical":$e.mode,visible:ae.props.isOpen,level:$e.level+1,inlineIndent:$e.inlineIndent,focusable:!1,onClick:ae.onSubMenuClick,onSelect:ae.onSelect,onDeselect:ae.onDeselect,onDestroy:ae.onDestroy,selectedKeys:$e.selectedKeys,eventKey:"".concat($e.eventKey,"-menu-"),openKeys:$e.openKeys,motion:$e.motion,onOpenChange:ae.onOpenChange,subMenuOpenDelay:$e.subMenuOpenDelay,parentMenu:Object(m.a)(ae),subMenuCloseDelay:$e.subMenuCloseDelay,forceSubMenuRender:$e.forceSubMenuRender,triggerSubMenuAction:$e.triggerSubMenuAction,builtinPlacements:$e.builtinPlacements,defaultActiveFirst:$e.store.getState().defaultActiveFirst[gt($e.eventKey)],multiple:$e.multiple,prefixCls:$e.rootPrefixCls,id:ae.internalMenuId,manualRef:ae.saveMenuInstance,itemIcon:$e.itemIcon,expandIcon:$e.expandIcon,direction:$e.direction}},ae.getMotion=function(Fe,$e){var vt=Object(m.a)(ae),Wt=vt.haveRendered,$t=ae.props,Rt=$t.motion,Kt=$t.rootPrefixCls,Gt=Object(g.a)(Object(g.a)({},Rt),{},{leavedClassName:"".concat(Kt,"-hidden"),removeOnLeave:!1,motionAppear:Wt||!$e||Fe!=="inline"});return Gt};var pe=Ot.store,J=Ot.eventKey,ne=pe.getState(),xe=ne.defaultActiveFirst;ae.isRootMenu=!1;var De=!1;return xe&&(De=xe[J]),Dt(pe,J,De),ae}return Object(y.a)(bt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ae=this,pe=this.props,J=pe.mode,ne=pe.parentMenu,xe=pe.manualRef;if(xe&&xe(this),J!=="horizontal"||!ne.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return ae.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ae=this.props,pe=ae.onDestroy,J=ae.eventKey;pe&&pe(J),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(ae){var pe=this,J=this.getBaseProps(),ne=this.getMotion(J.mode,J.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||J.visible||J.forceSubMenuRender,!this.haveOpened)return c.createElement("div",null);var xe=J.direction;return c.createElement(oe.default,Object.assign({visible:J.visible},ne),function(De){var Fe=De.className,$e=De.style,vt=O()("".concat(J.prefixCls,"-sub"),Fe,Object(T.a)({},"".concat(J.prefixCls,"-rtl"),xe==="rtl"));return c.createElement(ct,Object.assign({},J,{id:pe.internalMenuId,className:vt,style:$e}),ae)})}},{key:"render",value:function(){var ae,pe=Object(g.a)({},this.props),J=pe.isOpen,ne=this.getPrefixCls(),xe=pe.mode==="inline",De=O()(ne,"".concat(ne,"-").concat(pe.mode),(ae={},Object(T.a)(ae,pe.className,!!pe.className),Object(T.a)(ae,this.getOpenClassName(),J),Object(T.a)(ae,this.getActiveClassName(),pe.active||J&&!xe),Object(T.a)(ae,this.getDisabledClassName(),pe.disabled),Object(T.a)(ae,this.getSelectedClassName(),this.isChildrenSelected()),ae));this.internalMenuId||(pe.eventKey?this.internalMenuId="".concat(pe.eventKey,"$Menu"):(Et+=1,this.internalMenuId="$__$".concat(Et,"$Menu")));var Fe={},$e={},vt={};pe.disabled||(Fe={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},$e={onClick:this.onTitleClick},vt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Wt={},$t=pe.direction;xe&&($t==="rtl"?Wt.paddingRight=pe.inlineIndent*pe.level:Wt.paddingLeft=pe.inlineIndent*pe.level);var Rt={};this.props.isOpen&&(Rt={"aria-owns":this.internalMenuId});var Kt=null;pe.mode!=="horizontal"&&(Kt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Kt=c.createElement(this.props.expandIcon,Object(g.a)({},this.props))));var Gt=c.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Wt,className:"".concat(ne,"-title"),role:"button"},vt,$e,{"aria-expanded":J},Rt,{"aria-haspopup":"true",title:typeof pe.title=="string"?pe.title:void 0}),pe.title,Kt||c.createElement("i",{className:"".concat(ne,"-arrow")})),Qt=this.renderChildren(pe.children),Mt=pe.parentMenu.isRootMenu?pe.parentMenu.props.getPopupContainer:function(Ft){return Ft.parentNode},dr=Be[pe.mode],er=pe.popupOffset?{offset:pe.popupOffset}:{},st=pe.mode==="inline"?"":pe.popupClassName;st+=$t==="rtl"?" ".concat(ne,"-rtl"):"";var xt=pe.disabled,ut=pe.triggerSubMenuAction,pt=pe.subMenuOpenDelay,It=pe.forceSubMenuRender,Tt=pe.subMenuCloseDelay,ft=pe.builtinPlacements;lt.forEach(function(Ft){return delete pe[Ft]}),delete pe.onClick;var Ht=$t==="rtl"?Object.assign({},Ge,ft):Object.assign({},Le,ft);return delete pe.direction,c.createElement("li",Object.assign({},pe,Fe,{className:De,role:"menuitem"}),xe&&Gt,xe&&Qt,!xe&&c.createElement(Te.a,{prefixCls:ne,popupClassName:O()("".concat(ne,"-popup"),st),getPopupContainer:Mt,builtinPlacements:Ht,popupPlacement:dr,popupVisible:J,popupAlign:er,popup:Qt,action:xt?[]:[ut],mouseEnterDelay:pt,mouseLeaveDelay:Tt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:It},Gt))}}]),bt}(c.Component);Ke.defaultProps={onMouseEnter:Ue,onMouseLeave:Ue,onTitleMouseEnter:Ue,onTitleMouseLeave:Ue,onTitleClick:Ue,manualRef:Ue,mode:"vertical",title:""};var At=w(function(Pe,nt){var bt=Pe.openKeys,Ot=Pe.activeKey,ae=Pe.selectedKeys,pe=nt.eventKey,J=nt.subMenuKey;return{isOpen:bt.indexOf(pe)>-1,active:Ot[J]===pe,selectedKeys:ae}})(Ke);At.isSubMenu=!0;var Xe=At,et="menuitem-overflowed",tt=.5,ot=function(Pe){Object(v.a)(bt,Pe);var nt=Object(h.a)(bt);function bt(){var Ot;return Object(f.a)(this,bt),Ot=nt.apply(this,arguments),Ot.resizeObserver=null,Ot.mutationObserver=null,Ot.originalTotalWidth=0,Ot.overflowedItems=[],Ot.menuItemSizes=[],Ot.cancelFrameId=null,Ot.state={lastVisibleIndex:void 0},Ot.getMenuItemNodes=function(){var ae=Ot.props.prefixCls,pe=ue.findDOMNode(Object(m.a)(Ot));return pe?[].slice.call(pe.children).filter(function(J){return J.className.split(" ").indexOf("".concat(ae,"-overflowed-submenu"))<0}):[]},Ot.getOverflowedSubMenuItem=function(ae,pe,J){var ne=Ot.props,xe=ne.overflowedIndicator,De=ne.level,Fe=ne.mode,$e=ne.prefixCls,vt=ne.theme;if(De!==1||Fe!=="horizontal")return null;var Wt=Ot.props.children[0],$t=Wt.props,Rt=$t.children,Kt=$t.title,Gt=$t.style,Qt=Object(ye.a)($t,["children","title","style"]),Mt=Object(g.a)({},Gt),dr="".concat(ae,"-overflowed-indicator"),er="".concat(ae,"-overflowed-indicator");pe.length===0&&J!==!0?Mt=Object(g.a)(Object(g.a)({},Mt),{},{display:"none"}):J&&(Mt=Object(g.a)(Object(g.a)({},Mt),{},{visibility:"hidden",position:"absolute"}),dr="".concat(dr,"-placeholder"),er="".concat(er,"-placeholder"));var st=vt?"".concat($e,"-").concat(vt):"",xt={};return lt.forEach(function(ut){Qt[ut]!==void 0&&(xt[ut]=Qt[ut])}),c.createElement(Xe,Object.assign({title:xe,className:"".concat($e,"-overflowed-submenu"),popupClassName:st},xt,{key:dr,eventKey:er,disabled:!1,style:Mt}),pe)},Ot.setChildrenWidthAndResize=function(){if(Ot.props.mode!=="horizontal")return;var ae=ue.findDOMNode(Object(m.a)(Ot));if(!ae)return;var pe=ae.children;if(!pe||pe.length===0)return;var J=ae.children[pe.length-1];Y(J,"display","inline-block");var ne=Ot.getMenuItemNodes(),xe=ne.filter(function(De){return De.className.split(" ").indexOf(et)>=0});xe.forEach(function(De){Y(De,"display","inline-block")}),Ot.menuItemSizes=ne.map(function(De){return ce(De,!0)}),xe.forEach(function(De){Y(De,"display","none")}),Ot.overflowedIndicatorWidth=ce(ae.children[ae.children.length-1],!0),Ot.originalTotalWidth=Ot.menuItemSizes.reduce(function(De,Fe){return De+Fe},0),Ot.handleResize(),Y(J,"display","none")},Ot.handleResize=function(){if(Ot.props.mode!=="horizontal")return;var ae=ue.findDOMNode(Object(m.a)(Ot));if(!ae)return;var pe=ce(ae);Ot.overflowedItems=[];var J=0,ne;Ot.originalTotalWidth>pe+tt&&(ne=-1,Ot.menuItemSizes.forEach(function(xe){J+=xe,J+Ot.overflowedIndicatorWidth<=pe&&(ne+=1)})),Ot.setState({lastVisibleIndex:ne})},Ot}return Object(y.a)(bt,[{key:"componentDidMount",value:function(){var ae=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var pe=ue.findDOMNode(this);if(!pe)return;this.resizeObserver=new Ne.default(function(J){J.forEach(function(){var ne=ae.cancelFrameId;cancelAnimationFrame(ne),ae.cancelFrameId=requestAnimationFrame(ae.setChildrenWidthAndResize)})}),[].slice.call(pe.children).concat(pe).forEach(function(J){ae.resizeObserver.observe(J)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ae.resizeObserver.disconnect(),[].slice.call(pe.children).concat(pe).forEach(function(J){ae.resizeObserver.observe(J)}),ae.setChildrenWidthAndResize()}),this.mutationObserver.observe(pe,{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(ae){var pe=this,J=this.state.lastVisibleIndex;return(ae||[]).reduce(function(ne,xe,De){var Fe=xe;if(pe.props.mode==="horizontal"){var $e=pe.getOverflowedSubMenuItem(xe.props.eventKey,[]);J!==void 0&&pe.props.className.indexOf("".concat(pe.props.prefixCls,"-root"))!==-1&&(De>J&&(Fe=c.cloneElement(xe,{style:{display:"none"},eventKey:"".concat(xe.props.eventKey,"-hidden"),className:"".concat(et)})),De===J+1&&(pe.overflowedItems=ae.slice(J+1).map(function(Wt){return c.cloneElement(Wt,{key:Wt.props.eventKey,mode:"vertical-left"})}),$e=pe.getOverflowedSubMenuItem(xe.props.eventKey,pe.overflowedItems)));var vt=[].concat(Object(Q.a)(ne),[$e,Fe]);return De===ae.length-1&&vt.push(pe.getOverflowedSubMenuItem(xe.props.eventKey,[],!0)),vt}return[].concat(Object(Q.a)(ne),[Fe])},[])}},{key:"render",value:function(){var ae=this.props,pe=ae.visible,J=ae.prefixCls,ne=ae.overflowedIndicator,xe=ae.mode,De=ae.level,Fe=ae.tag,$e=ae.children,vt=ae.theme,Wt=Object(ye.a)(ae,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),$t=Fe;return c.createElement($t,Object.assign({},Wt),this.renderChildren($e))}}]),bt}(c.Component);ot.defaultProps={tag:"div",className:""};var Ve=ot;function se(Pe){return Pe.length?Pe.every(function(nt){return!!nt.props.disabled}):!0}function re(Pe,nt,bt){var Ot=Pe.getState();Pe.setState({activeKey:Object(g.a)(Object(g.a)({},Ot.activeKey),{},Object(T.a)({},nt,bt))})}function it(Pe){return Pe.eventKey||"0-menu-"}function qe(Pe,nt){var bt=nt,Ot=Pe.children,ae=Pe.eventKey;if(bt){var pe;if(_e(Ot,function(J,ne){J&&J.props&&!J.props.disabled&&bt===Qe(J,ae,ne)&&(pe=!0)}),pe)return bt}return bt=null,Pe.defaultActiveFirst&&_e(Ot,function(J,ne){!bt&&J&&!J.props.disabled&&(bt=Qe(J,ae,ne))}),bt}function be(Pe){if(Pe){var nt=this.instanceArray.indexOf(Pe);nt!==-1?this.instanceArray[nt]=Pe:this.instanceArray.push(Pe)}}var Zt=function(Pe){Object(v.a)(bt,Pe);var nt=Object(h.a)(bt);function bt(Ot){var ae;return Object(f.a)(this,bt),ae=nt.call(this,Ot),ae.onKeyDown=function(pe,J){var ne=pe.keyCode,xe;if(ae.getFlatInstanceArray().forEach(function(Fe){Fe&&Fe.props.active&&Fe.onKeyDown&&(xe=Fe.onKeyDown(pe))}),xe)return 1;var De=null;return(ne===L.a.UP||ne===L.a.DOWN)&&(De=ae.step(ne===L.a.UP?-1:1)),De?(pe.preventDefault(),re(ae.props.store,it(ae.props),De.props.eventKey),typeof J=="function"&&J(De),1):void 0},ae.onItemHover=function(pe){var J=pe.key,ne=pe.hover;re(ae.props.store,it(ae.props),ne?J:null)},ae.onDeselect=function(pe){ae.props.onDeselect(pe)},ae.onSelect=function(pe){ae.props.onSelect(pe)},ae.onClick=function(pe){ae.props.onClick(pe)},ae.onOpenChange=function(pe){ae.props.onOpenChange(pe)},ae.onDestroy=function(pe){ae.props.onDestroy(pe)},ae.getFlatInstanceArray=function(){return ae.instanceArray},ae.step=function(pe){var J=ae.getFlatInstanceArray(),ne=ae.props.store.getState().activeKey[it(ae.props)],xe=J.length;if(!xe)return null;pe<0&&(J=J.concat().reverse());var De=-1;if(J.every(function(Wt,$t){return Wt&&Wt.props.eventKey===ne?(De=$t,!1):!0}),!ae.props.defaultActiveFirst&&De!==-1&&se(J.slice(De,xe-1)))return;var Fe=(De+1)%xe,$e=Fe;do{var vt=J[$e];if(!vt||vt.props.disabled)$e=($e+1)%xe;else return vt}while($e!==Fe);return null},ae.renderCommonMenuItem=function(pe,J,ne){var xe=ae.props.store.getState(),De=Object(m.a)(ae),Fe=De.props,$e=Qe(pe,Fe.eventKey,J),vt=pe.props;if(!vt||typeof pe.type=="string")return pe;var Wt=$e===xe.activeKey,$t=Object(g.a)(Object(g.a)({mode:vt.mode||Fe.mode,level:Fe.level,inlineIndent:Fe.inlineIndent,renderMenuItem:ae.renderMenuItem,rootPrefixCls:Fe.prefixCls,index:J,parentMenu:Fe.parentMenu,manualRef:vt.disabled?void 0:Object(x.a)(pe.ref,be.bind(Object(m.a)(ae))),eventKey:$e,active:!vt.disabled&&Wt,multiple:Fe.multiple,onClick:function(Kt){(vt.onClick||Ue)(Kt),ae.onClick(Kt)},onItemHover:ae.onItemHover,motion:Fe.motion,subMenuOpenDelay:Fe.subMenuOpenDelay,subMenuCloseDelay:Fe.subMenuCloseDelay,forceSubMenuRender:Fe.forceSubMenuRender,onOpenChange:ae.onOpenChange,onDeselect:ae.onDeselect,onSelect:ae.onSelect,builtinPlacements:Fe.builtinPlacements,itemIcon:vt.itemIcon||ae.props.itemIcon,expandIcon:vt.expandIcon||ae.props.expandIcon},ne),{},{direction:Fe.direction});return(Fe.mode==="inline"||K())&&($t.triggerSubMenuAction="click"),c.cloneElement(pe,$t)},ae.renderMenuItem=function(pe,J,ne){if(!pe)return null;var xe=ae.props.store.getState(),De={openKeys:xe.openKeys,selectedKeys:xe.selectedKeys,triggerSubMenuAction:ae.props.triggerSubMenuAction,subMenuKey:ne};return ae.renderCommonMenuItem(pe,J,De)},Ot.store.setState({activeKey:Object(g.a)(Object(g.a)({},Ot.store.getState().activeKey),{},Object(T.a)({},Ot.eventKey,qe(Ot,Ot.activeKey)))}),ae.instanceArray=[],ae}return Object(y.a)(bt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(ae){return this.props.visible||ae.visible||this.props.className!==ae.className||!d()(this.props.style,ae.style)}},{key:"componentDidUpdate",value:function(ae){var pe=this.props,J="activeKey"in pe?pe.activeKey:pe.store.getState().activeKey[it(pe)],ne=qe(pe,J);if(ne!==J)re(pe.store,it(pe),ne);else if("activeKey"in ae){var xe=qe(ae,ae.activeKey);ne!==xe&&re(pe.store,it(pe),ne)}}},{key:"render",value:function(){var ae=this,pe=Object(S.a)({},this.props);this.instanceArray=[];var J=O()(pe.prefixCls,pe.className,"".concat(pe.prefixCls,"-").concat(pe.mode)),ne={className:J,role:pe.role||"menu"};pe.id&&(ne.id=pe.id),pe.focusable&&(ne.tabIndex=0,ne.onKeyDown=this.onKeyDown);var xe=pe.prefixCls,De=pe.eventKey,Fe=pe.visible,$e=pe.level,vt=pe.mode,Wt=pe.overflowedIndicator,$t=pe.theme;return lt.forEach(function(Rt){return delete pe[Rt]}),delete pe.onClick,c.createElement(Ve,Object.assign({},pe,{prefixCls:xe,mode:vt,tag:"ul",level:$e,theme:$t,visible:Fe,overflowedIndicator:Wt},ne),c.Children.map(pe.children,function(Rt,Kt){return ae.renderMenuItem(Rt,Kt,De||"0-menu-")}))}}]),bt}(c.Component);Zt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Ue};var dt=w()(Zt),ct=dt,yt=e("Kwbf");function _t(Pe,nt,bt){var Ot=Pe.prefixCls,ae=Pe.motion,pe=Pe.defaultMotions,J=pe===void 0?{}:pe,ne=Pe.openAnimation,xe=Pe.openTransitionName,De=nt.switchingModeFromInline;if(ae)return ae;if(Object(N.a)(ne)==="object"&&ne)Object(yt.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof ne=="string")return{motionName:"".concat(Ot,"-open-").concat(ne)};if(xe)return{motionName:xe};var Fe=J[bt];return Fe||(De?null:J.other)}var or=function(Pe){Object(v.a)(bt,Pe);var nt=Object(h.a)(bt);function bt(Ot){var ae;Object(f.a)(this,bt),ae=nt.call(this,Ot),ae.inlineOpenKeys=[],ae.onSelect=function(ne){var xe=Object(m.a)(ae),De=xe.props;if(De.selectable){var Fe=ae.store.getState(),$e=Fe.selectedKeys,vt=ne.key;De.multiple?$e=$e.concat([vt]):$e=[vt],"selectedKeys"in De||ae.store.setState({selectedKeys:$e}),De.onSelect(Object(g.a)(Object(g.a)({},ne),{},{selectedKeys:$e}))}},ae.onClick=function(ne){var xe=ae.getRealMenuMode(),De=Object(m.a)(ae),Fe=De.store,$e=De.props.onOpenChange;xe!=="inline"&&!("openKeys"in ae.props)&&(Fe.setState({openKeys:[]}),$e([])),ae.props.onClick(ne)},ae.onKeyDown=function(ne,xe){ae.innerMenu.getWrappedInstance().onKeyDown(ne,xe)},ae.onOpenChange=function(ne){var xe=Object(m.a)(ae),De=xe.props,Fe=ae.store.getState().openKeys.concat(),$e=!1,vt=function($t){var Rt=!1;if($t.open)Rt=Fe.indexOf($t.key)===-1,Rt&&Fe.push($t.key);else{var Kt=Fe.indexOf($t.key);Rt=Kt!==-1,Rt&&Fe.splice(Kt,1)}$e=$e||Rt};Array.isArray(ne)?ne.forEach(vt):vt(ne),$e&&("openKeys"in ae.props||ae.store.setState({openKeys:Fe}),De.onOpenChange(Fe))},ae.onDeselect=function(ne){var xe=Object(m.a)(ae),De=xe.props;if(De.selectable){var Fe=ae.store.getState().selectedKeys.concat(),$e=ne.key,vt=Fe.indexOf($e);vt!==-1&&Fe.splice(vt,1),"selectedKeys"in De||ae.store.setState({selectedKeys:Fe}),De.onDeselect(Object(g.a)(Object(g.a)({},ne),{},{selectedKeys:Fe}))}},ae.onMouseEnter=function(ne){ae.restoreModeVerticalFromInline();var xe=ae.props.onMouseEnter;xe&&xe(ne)},ae.onTransitionEnd=function(ne){var xe=ne.propertyName==="width"&&ne.target===ne.currentTarget,De=ne.target.className,Fe=Object.prototype.toString.call(De)==="[object SVGAnimatedString]"?De.animVal:De,$e=ne.propertyName==="font-size"&&Fe.indexOf("anticon")>=0;(xe||$e)&&ae.restoreModeVerticalFromInline()},ae.setInnerMenu=function(ne){ae.innerMenu=ne},ae.isRootMenu=!0;var pe=Ot.defaultSelectedKeys,J=Ot.defaultOpenKeys;return"selectedKeys"in Ot&&(pe=Ot.selectedKeys||[]),"openKeys"in Ot&&(J=Ot.openKeys||[]),ae.store=E({selectedKeys:pe,openKeys:J,activeKey:{"0-menu-":qe(Ot,Ot.activeKey)}}),ae.state={switchingModeFromInline:!1},ae}return Object(y.a)(bt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ae){this.updateOpentKeysWhenSwitchMode(ae),this.updateMiniStore();var pe=this.props,J=pe.siderCollapsed,ne=pe.inlineCollapsed,xe=pe.onOpenChange;(!ae.inlineCollapsed&&ne||!ae.siderCollapsed&&J)&&xe([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(ae){var pe=this.props,J=this.store,ne=this.inlineOpenKeys,xe=J.getState(),De={};ae.mode==="inline"&&pe.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in pe||((pe.inlineCollapsed&&!ae.inlineCollapsed||pe.siderCollapsed&&!ae.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=xe.openKeys.concat(),De.openKeys=[]),(!pe.inlineCollapsed&&ae.inlineCollapsed||!pe.siderCollapsed&&ae.siderCollapsed)&&(De.openKeys=ne,this.inlineOpenKeys=[])),Object.keys(De).length&&J.setState(De)}},{key:"updateMenuDisplay",value:function(){var ae=this.props.collapsedWidth,pe=this.store,J=this.prevOpenKeys,ne=this.getInlineCollapsed()&&(ae===0||ae==="0"||ae==="0px");ne?(this.prevOpenKeys=pe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):J&&(this.store.setState({openKeys:J}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ae=this.props.mode,pe=this.state.switchingModeFromInline,J=this.getInlineCollapsed();return pe&&J?"inline":J?"vertical":ae}},{key:"getInlineCollapsed",value:function(){var ae=this.props,pe=ae.inlineCollapsed,J=ae.siderCollapsed;return J!==void 0?J:pe}},{key:"restoreModeVerticalFromInline",value:function(){var ae=this.state.switchingModeFromInline;ae&&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 ae=Object(g.a)({},Object(A.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),pe=this.getRealMenuMode();return ae.className+=" ".concat(ae.prefixCls,"-root"),ae.direction==="rtl"&&(ae.className+=" ".concat(ae.prefixCls,"-rtl")),ae=Object(g.a)(Object(g.a)({},ae),{},{mode:pe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:_t(this.props,this.state,pe)}),delete ae.openAnimation,delete ae.openTransitionName,c.createElement(r,{store:this.store},c.createElement(ct,Object.assign({},ae,{ref:this.setInnerMenu}),this.props.children))}}]),bt}(c.Component);or.defaultProps={selectable:!0,onClick:Ue,onSelect:Ue,onOpenChange:Ue,onDeselect:Ue,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,we=function(Pe){Object(v.a)(bt,Pe);var nt=Object(h.a)(bt);function bt(){var Ot;return Object(f.a)(this,bt),Ot=nt.apply(this,arguments),Ot.onKeyDown=function(ae){var pe=ae.keyCode;return pe===L.a.ENTER?(Ot.onClick(ae),!0):void 0},Ot.onMouseLeave=function(ae){var pe=Ot.props,J=pe.eventKey,ne=pe.onItemHover,xe=pe.onMouseLeave;ne({key:J,hover:!1}),xe({key:J,domEvent:ae})},Ot.onMouseEnter=function(ae){var pe=Ot.props,J=pe.eventKey,ne=pe.onItemHover,xe=pe.onMouseEnter;ne({key:J,hover:!0}),xe({key:J,domEvent:ae})},Ot.onClick=function(ae){var pe=Ot.props,J=pe.eventKey,ne=pe.multiple,xe=pe.onClick,De=pe.onSelect,Fe=pe.onDeselect,$e=pe.isSelected,vt={key:J,keyPath:[J],item:Object(m.a)(Ot),domEvent:ae};xe(vt),ne?$e?Fe(vt):De(vt):$e||De(vt)},Ot.saveNode=function(ae){Ot.node=ae},Ot}return Object(y.a)(bt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var ae=this.props;ae.onDestroy&&ae.onDestroy(ae.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 ae,pe=Object(g.a)({},this.props),J=O()(this.getPrefixCls(),pe.className,(ae={},Object(T.a)(ae,this.getActiveClassName(),!pe.disabled&&pe.active),Object(T.a)(ae,this.getSelectedClassName(),pe.isSelected),Object(T.a)(ae,this.getDisabledClassName(),pe.disabled),ae)),ne=Object(g.a)(Object(g.a)({},pe.attribute),{},{title:typeof pe.title=="string"?pe.title:void 0,className:J,role:pe.role||"menuitem","aria-disabled":pe.disabled});pe.role==="option"?ne=Object(g.a)(Object(g.a)({},ne),{},{role:"option","aria-selected":pe.isSelected}):(pe.role===null||pe.role==="none")&&(ne.role="none");var xe={onClick:pe.disabled?null:this.onClick,onMouseLeave:pe.disabled?null:this.onMouseLeave,onMouseEnter:pe.disabled?null:this.onMouseEnter},De=Object(g.a)({},pe.style);pe.mode==="inline"&&(pe.direction==="rtl"?De.paddingRight=pe.inlineIndent*pe.level:De.paddingLeft=pe.inlineIndent*pe.level),lt.forEach(function($e){return delete pe[$e]}),delete pe.direction;var Fe=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Fe=c.createElement(this.props.itemIcon,this.props)),c.createElement("li",Object.assign({},Object(A.default)(pe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),ne,xe,{style:De,ref:this.saveNode}),pe.children,Fe)}}]),bt}(c.Component);we.isMenuItem=!0,we.defaultProps={onSelect:Ue,onMouseEnter:Ue,onMouseLeave:Ue,manualRef:Ue};var ve=w(function(Pe,nt){var bt=Pe.activeKey,Ot=Pe.selectedKeys,ae=nt.eventKey,pe=nt.subMenuKey;return{active:bt[pe]===ae,isSelected:Ot.indexOf(ae)!==-1}})(we),me=ve,he=function(Pe){Object(v.a)(bt,Pe);var nt=Object(h.a)(bt);function bt(){var Ot;return Object(f.a)(this,bt),Ot=nt.apply(this,arguments),Ot.renderInnerMenuItem=function(ae){var pe=Ot.props,J=pe.renderMenuItem,ne=pe.index;return J(ae,ne,Ot.props.subMenuKey)},Ot}return Object(y.a)(bt,[{key:"render",value:function(){var ae=Object(S.a)({},this.props),pe=ae.className,J=pe===void 0?"":pe,ne=ae.rootPrefixCls,xe="".concat(ne,"-item-group-title"),De="".concat(ne,"-item-group-list"),Fe=ae.title,$e=ae.children;return lt.forEach(function(vt){return delete ae[vt]}),delete ae.onClick,delete ae.direction,c.createElement("li",Object.assign({},ae,{className:"".concat(J," ").concat(ne,"-item-group")}),c.createElement("div",{className:xe,title:typeof Fe=="string"?Fe:void 0},Fe),c.createElement("ul",{className:De},c.Children.map($e,this.renderInnerMenuItem)))}}]),bt}(c.Component);he.isMenuItemGroup=!0,he.defaultProps={disabled:!0};var Re=he,He=function(nt){var bt=nt.className,Ot=nt.rootPrefixCls,ae=nt.style;return c.createElement("li",{className:"".concat(bt," ").concat(Ot,"-item-divider"),style:ae})};He.defaultProps={disabled:!0,className:"",style:{}};var ze=He,Ye=_.f=Bt},"1n7x":function(D,_,e){(function(g,f){(function(y,m){D.exports=m(e("5RHE"),e("wOnQ"))})(this,function(y,m){"use strict";y=y&&y.hasOwnProperty("default")?y.default:y,m=m&&m.hasOwnProperty("default")?m.default:m;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 O in T.style)L.style[O]=T.style[O];return L},i=function A(S,T){for(var L=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")&&L.appendChild(A(x,T));return S.nodeType===1&&(S.nodeName==="CANVAS"?(L.width=S.width,L.height=S.height,L.getContext("2d").drawImage(S,0,0)):(S.nodeName==="TEXTAREA"||S.nodeName==="SELECT")&&(L.value=S.value),L.addEventListener("load",function(){L.scrollTop=S.scrollTop,L.scrollLeft=S.scrollLeft},!0)),L},r=function(S,T){if(c(S)==="number")return S*72/96/T;var L={};for(var x in S)L[x]=S[x]*72/96/T;return L},o=function(S,T){return Math.floor(S*T/72*96)},d=typeof window!="undefined"?window:typeof g!="undefined"?g:typeof self!="undefined"?self:{};function n(){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,L){A.exports=L()})(d,function(){function T(dt){var ct=typeof dt;return dt!==null&&(ct==="object"||ct==="function")}function L(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,O=0,N=void 0,F=void 0,k=function(ct,yt){ge[O]=ct,ge[O+1]=yt,O+=2,O===2&&(F?F(q):Ce())};function P(dt){F=dt}function B(dt){k=dt}var z=typeof window!="undefined"?window:void 0,R=z||{},U=R.MutationObserver||R.WebKitMutationObserver,j=typeof self=="undefined"&&typeof f!="undefined"&&{}.toString.call(f)==="[object process]",H=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function V(){return function(){return f.nextTick(q)}}function X(){return typeof N!="undefined"?function(){N(q)}:$()}function W(){var dt=0,ct=new U(q),yt=document.createTextNode("");return ct.observe(yt,{characterData:!0}),function(){yt.data=dt=++dt%2}}function G(){var dt=new MessageChannel;return dt.port1.onmessage=q,function(){return dt.port2.postMessage(0)}}function $(){var dt=setTimeout;return function(){return dt(q,1)}}var ge=new Array(1e3);function q(){for(var dt=0;dtN){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:O};return P};var p={toContainer:u.prototype.toContainer};u.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},u.prototype.toContainer=function(){return p.toContainer.call(this).then(function(){var T=this.prop.container,L=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},O={},N=this;["before","after","avoid"].forEach(function(P){var B=C.avoidAll&&P==="avoid";O[P]=B?[]:[].concat(N.opt.pagebreak[P]||[]),O[P].length>0&&(O[P]=Array.prototype.slice.call(T.querySelectorAll(O[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(B){var z={before:!1,after:C.legacy&&F.indexOf(B)!==-1,avoid:C.avoidAll};if(C.css){var R=window.getComputedStyle(B),U=["always","page","left","right"],j=["avoid","avoid-page"];z={before:z.before||U.indexOf(R.breakBefore||R.pageBreakBefore)!==-1,after:z.after||U.indexOf(R.breakAfter||R.pageBreakAfter)!==-1,avoid:z.avoid||j.indexOf(R.breakInside||R.pageBreakInside)!==-1}}Object.keys(z).forEach(function($){z[$]=z[$]||O[$].indexOf(B)!==-1});var H=B.getBoundingClientRect();if(z.avoid&&!z.before){var V=Math.floor(H.top/L),X=Math.floor(H.bottom/L),W=Math.abs(H.bottom-H.top)/L;X!==V&&W<=1&&(z.before=!0)}if(z.before){var G=a("div",{style:{display:"block",height:L-H.top%L+"px"}});B.parentNode.insertBefore(G,B)}if(z.after){var G=a("div",{style:{display:"block",height:L-H.bottom%L+"px"}});B.parentNode.insertBefore(G,B.nextSibling)}})})};var w=[],b={toContainer:u.prototype.toContainer,toPdf:u.prototype.toPdf};u.prototype.toContainer=function(){return b.toContainer.call(this).then(function(){if(this.opt.enableLinks){var T=this.prop.container,L=T.querySelectorAll("a"),x=r(T.getBoundingClientRect(),this.prop.pageSize.k);w=[],Array.prototype.forEach.call(L,function(C){for(var O=C.getClientRects(),N=0;Nn.getHeight()&&(T.textPosition="top",O=!0);var N=O?-5-L.height:s+8;x+L.width/2>n.getWidth()?(T.textPosition=["100%",N],T.textAlign="right"):x-L.width/2<0&&(T.textPosition=[0,N],T.textAlign="left")}})},updateView:function(o,d,n,l){f.each(this._features,function(t){t.updateView&&t.updateView(t.model,d,n,l)})},remove:function(o,d){f.each(this._features,function(n){n.remove&&n.remove(o,d)}),this.group.removeAll()},dispose:function(o,d){f.each(this._features,function(n){n.dispose&&n.dispose(o,d)})}});function r(o){return o.indexOf("my")===0}D.exports=i},"2B6p":function(D,_){function e(g,f,y){var m=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 a=y.min||0,i=y.max||Infinity;h=Math.max(Math.min(m*h,i),a)/m}g.scale[0]*=h,g.scale[1]*=h;var r=g.position,o=(f.originX-r[0])*(h-1),d=(f.originY-r[1])*(h-1);r[0]-=o,r[1]-=d,g.updateTransform();var v=g.pointToData(c);g.setCenter(v),g.setZoom(h*m)}return{center:g.getCenter(),zoom:g.getZoom()}}_.updateCenterAndZoom=e},"2BaD":function(D,_,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,m=e("6VBw"),v=function(a,i){return g.createElement(m.a,Object.assign({},a,{ref:i,icon:y}))};v.displayName="CloseCircleOutlined";var h=_.a=g.forwardRef(v)},"2DNl":function(D,_,e){var g=e("IMiH"),f=e("loD1"),y=e("59Ip"),m=e("aKvl"),v=e("n1HI"),h=e("hX1E"),c=h.normalizeRadian,a=e("Sj9i"),i=e("hyiK"),r=g.CMD,o=Math.PI*2,d=1e-4;function n(S,T){return Math.abs(S-T)T&&P>x&&P>O&&P>F||P1&&s(),U=a.cubicAt(T,x,O,F,t[0]),R>1&&(j=a.cubicAt(T,x,O,F,t[1]))),R===2?VT&&F>x&&F>O||F=0&&P<=1){for(var B=0,z=a.quadraticAt(T,x,O,P),R=0;RL||F<-L)return 0;var k=Math.sqrt(L*L-F*F);l[0]=-k,l[1]=k;var P=Math.abs(x-C);if(P<1e-4)return 0;if(P%o<1e-4){x=0,C=o;var B=O?1:-1;return N>=l[0]+S&&N<=l[1]+S?B:0}if(O){var k=x;x=c(C),C=c(k)}else x=c(x),C=c(C);x>C&&(C+=o);for(var z=0,R=0;R<2;R++){var U=l[R];if(U+S>N){var j=Math.atan2(F,U),B=O?1:-1;j<0&&(j=o+j),(j>=x&&j<=C||j+o>=x&&j+o<=C)&&(j>Math.PI/2&&j1&&(L||(O+=i(N,F,k,P,x,C))),B===1&&(N=S[B],F=S[B+1],k=N,P=F);switch(z){case r.M:k=S[B++],P=S[B++],N=k,F=P;break;case r.L:if(L){if(f.containStroke(N,F,S[B],S[B+1],T,x,C))return!0}else O+=i(N,F,S[B],S[B+1],x,C)||0;N=S[B++],F=S[B++];break;case r.C:if(L){if(y.containStroke(N,F,S[B++],S[B++],S[B++],S[B++],S[B],S[B+1],T,x,C))return!0}else O+=u(N,F,S[B++],S[B++],S[B++],S[B++],S[B],S[B+1],x,C)||0;N=S[B++],F=S[B++];break;case r.Q:if(L){if(m.containStroke(N,F,S[B++],S[B++],S[B],S[B+1],T,x,C))return!0}else O+=p(N,F,S[B++],S[B++],S[B],S[B+1],x,C)||0;N=S[B++],F=S[B++];break;case r.A:var R=S[B++],U=S[B++],j=S[B++],H=S[B++],V=S[B++],X=S[B++];B+=1;var W=1-S[B++],G=Math.cos(V)*j+R,$=Math.sin(V)*H+U;B>1?O+=i(N,F,G,$,x,C):(k=G,P=$);var ge=(x-R)*H/j+R;if(L){if(v.containStroke(R,U,H,V,V+X,W,T,ge,C))return!0}else O+=w(R,U,H,V,V+X,W,ge,C);N=Math.cos(V+X)*j+R,F=Math.sin(V+X)*H+U;break;case r.R:k=N=S[B++],P=F=S[B++];var q=S[B++],Se=S[B++],G=k+q,$=P+Se;if(L){if(f.containStroke(k,P,G,P,T,x,C)||f.containStroke(G,P,G,$,T,x,C)||f.containStroke(G,$,k,$,T,x,C)||f.containStroke(k,$,k,P,T,x,C))return!0}else O+=i(G,P,G,$,x,C),O+=i(k,$,k,P,x,C);break;case r.Z:if(L){if(f.containStroke(N,F,k,P,T,x,C))return!0}else O+=i(N,F,k,P,x,C);N=k,F=P;break}}return!L&&!n(F,P)&&(O+=i(N,F,k,P,x,C)||0),O!==0}function E(S,T,L){return b(S,0,!1,T,L)}function A(S,T,L,x){return b(S,T,!0,L,x)}_.contain=E,_.containStroke=A},"2Qr1":function(D,_,e){"use strict";e.d(_,"d",function(){return n}),e.d(_,"c",function(){return t}),e.d(_,"e",function(){return s}),e.d(_,"b",function(){return w}),e.d(_,"f",function(){return b}),e.d(_,"g",function(){return E}),e.d(_,"a",function(){return A});var g=e("rePB"),f=e("KQm4"),y=e("DSFK"),m=e("25BE"),v=e("BsWD"),h=e("PYwp");function c(S){return Object(y.a)(S)||Object(m.a)(S)||Object(v.a)(S)||Object(h.a)()}var a=e("U8pU"),i=e("VTBJ"),r=e("Kwbf"),o=e("WKfj");function d(S,T){var L=S.key,x;return"value"in S&&(x=S.value),L!=null?L:x!==void 0?x:"rc-index-key-".concat(T)}function n(S){var T=[];function L(x,C){x.forEach(function(O){C||!("options"in O)?T.push({key:d(O,T.length),groupOption:C,data:O}):(T.push({key:d(O,T.length),group:!0,data:O}),L(O.options,!0))})}return L(S,!1),T}function l(S){var T=Object(i.a)({},S);return"props"in T||Object.defineProperty(T,"props",{get:function(){return Object(r.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 L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x=L.prevValueOptions,C=x===void 0?[]:x,O=new Map;return T.forEach(function(N){if(!N.group){var F=N.data;O.set(F.value,F)}}),S.map(function(N){var F=O.get(N);return F||(F=Object(i.a)({},C.find(function(k){return k._INTERNAL_OPTION_VALUE_===N}))),l(F)})}var s=function(T,L){var x=L.options,C=L.prevValue,O=L.labelInValue,N=L.optionLabelProp,F=t([T],x)[0],k={value:T},P,B=Object(o.d)(C);return O&&(P=B.find(function(z){return Object(a.a)(z)==="object"&&"value"in z?z.value===T:z.key===T})),P&&Object(a.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(r.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 u(S){return Object(o.d)(S).join("")}function p(S){return function(T,L){var x=T.toLowerCase();if("options"in L)return u(L.label).toLowerCase().includes(x);var C=L[S],O=u(C).toLowerCase();return O.includes(x)&&!L.disabled}}function w(S,T,L){var x=L.optionFilterProp,C=L.filterOption,O=[],N;return C===!1?T:(typeof C=="function"?N=C:N=p(x),T.forEach(function(F){if("options"in F){var k=N(S,F);if(k)O.push(F);else{var P=F.options.filter(function(B){return N(S,B)});P.length&&O.push(Object(i.a)(Object(i.a)({},F),{},{options:P}))}return}N(S,l(F))&&O.push(F)}),O)}function b(S,T){if(!T||!T.length)return null;var L=!1;function x(O,N){var F=c(N),k=F[0],P=F.slice(1);if(!k)return[O];var B=O.split(k);return L=L||B.length>1,B.reduce(function(z,R){return[].concat(Object(f.a)(z),Object(f.a)(x(R,P)))},[]).filter(function(z){return z})}var C=x(S,T);return L?C:null}function E(S,T){var L=t([S],T)[0];return L.disabled}function A(S,T,L,x){var C=Object(o.d)(T).slice().sort(),O=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;O.push(x?(P={},Object(g.a)(P,L,F.label),Object(g.a)(P,"value",k),P):{value:k})}}),O}},"2dDv":function(D,_,e){var g=e("bYtY"),f=e("Fofx"),y=e("+TT/"),m=e("aX7z"),v=e("D1WM"),h=e("IwbS"),c=e("OELB"),a=e("72pK"),i=g.each,r=Math.min,o=Math.max,d=Math.floor,n=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,L=E.parallelAxisIndex;i(T,function(x,C){var O=L[C],N=A.getComponent("parallelAxis",O),F=this._axesMap.set(x,new v(x,m.createScaleByModel(N),[0,0],N.get("type"),O)),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,L=A.pixelDimIndex,x=E[1-L],C=E[L];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(L){var x=this._axesMap.get(L);x.scale.unionExtentFromData(T,T.mapDimension(L)),m.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"],L=E.get("layout"),x=L==="horizontal"?0:1,C=A[T[x]],O=[0,C],N=this.dimensions.length,F=u(E.get("axisExpandWidth"),O),k=u(E.get("axisExpandCount")||0,[0,N]),P=E.get("axisExpandable")&&N>3&&N>k&&k>1&&F>0&&C>0,B=E.get("axisExpandWindow"),z;if(B)z=u(B[1]-B[0],O),B[1]=B[0]+z;else{z=u(F*(k-1),O);var R=E.get("axisExpandCenter")||d(N/2);B=[F*R-z/2],B[1]=B[0]+z}var U=(C-z)/(N-k);U<3&&(U=0);var j=[d(l(B[0]/F,1))+1,n(l(B[1]/F,1))-1],H=U/F*B[0];return{layout:L,pixelDimIndex:x,layoutBase:A[S[x]],layoutLength:C,axisBase:A[S[1-x]],axisLength:A[T[1-x]],axisExpandable:P,axisExpandWidth:F,axisCollapseWidth:U,axisExpandWindow:B,axisCount:N,winInnerIndices:j,axisExpandWindow0Pos:H}},_layoutAxes:function(){var E=this._rect,A=this._axesMap,S=this.dimensions,T=this._makeLayoutInfo(),L=T.layout;A.each(function(x){var C=[0,T.axisLength],O=x.inverse?1:0;x.setExtent(C[O],C[1-O])}),i(S,function(x,C){var O=(T.axisExpandable?w:p)(C,T),N={horizontal:{x:O.position,y:T.axisLength},vertical:{x:0,y:O.position}},F={horizontal:t/2,vertical:0},k=[N[L].x+E.x,N[L].y+E.y],P=F[L],B=f.create();f.rotate(B,B,P),f.translate(B,B,k),this._axesLayout[x]={position:k,rotation:P,transform:B,axisNameAvailableWidth:O.axisNameAvailableWidth,axisLabelShow:O.axisLabelShow,nameTruncateMaxWidth:O.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 L=this._axesMap,x=this.dimensions,C=[],O=[];g.each(x,function(U){C.push(E.mapDimension(U)),O.push(L.get(U).model)});for(var N=this.hasAxisBrushed(),F=S;FL*(1-k[0])?(N="jump",O=C-L*(1-k[2])):(O=C-L*k[1])>=0&&(O=C-L*(1-k[1]))<=0&&(O=0),O*=A.axisExpandWidth/F,O?a(O,T,x,"all"):N="none";else{var L=T[1]-T[0],B=x[1]*C/L;T=[o(0,B-L/2)],T[1]=r(x[1],T[0]+L),T[0]=T[1]-L}return{axisExpandWindow:T,behavior:N}}};function u(E,A){return r(o(E,A[0]),A[1])}function p(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,L=A.axisCount,x=A.axisCollapseWidth,C=A.winInnerIndices,O,N=x,F=!1,k;return E1&&arguments[1]!==void 0?arguments[1]:1,Re=re.length,He=0;He1&&arguments[1]!==void 0?arguments[1]:!1;return Object(j.a)(Y).map(function(Q,ye){if(!n.isValidElement(Q)||!Q.type)return null;var ue=Q.type.isSelectOptGroup,Ne=Q.key,Te=Q.props,oe=Te.children,de=Object(A.a)(Te,["children"]);return K||!ue?H(Q):Object(U.a)(Object(U.a)({key:"__RC_SELECT_GRP__".concat(Ne===null?ye:Ne,"__"),label:Ne},de),{},{options:V(oe)})}).filter(function(Q){return Q})}var X=e("2Qr1"),W=e("qNPg"),G=e("U8pU"),$=e("Kwbf"),ge=e("WKfj");function q(Y){var K=Y.mode,Q=Y.options,ye=Y.children,ue=Y.backfill,Ne=Y.allowClear,Te=Y.placeholder,oe=Y.getInputElement,de=Y.showSearch,Le=Y.onSearch,Ge=Y.defaultOpen,ht=Y.autoFocus,Et=Y.labelInValue,Be=Y.value,Dt=Y.inputValue,Ke=Y.optionLabelProp,At=K==="multiple"||K==="tags",Xe=de!==void 0?de:At||K==="combobox",et=Q||V(ye);if(Object($.a)(K!=="tags"||et.every(function(se){return!se.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),K==="tags"||K==="combobox"){var tt=et.some(function(se){return se.options?se.options.some(function(re){return typeof("value"in re?re.value:re.key)=="number"}):typeof("value"in se?se.value:se.key)=="number"});Object($.a)(!tt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object($.a)(K!=="combobox"||!Ke,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object($.a)(K==="combobox"||!ue,"`backfill` only works with `combobox` mode."),Object($.a)(K==="combobox"||!oe,"`getInputElement` only work with `combobox` mode."),Object($.b)(K!=="combobox"||!oe||!Ne||!Te,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Le&&!Xe&&K!=="combobox"&&K!=="tags"&&Object($.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object($.b)(!Ge||ht,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Be!=null){var ot=Object(ge.d)(Be);Object($.a)(!Et||ot.every(function(se){return Object(G.a)(se)==="object"&&("key"in se||"value"in se)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object($.a)(!At||Array.isArray(Be),"`value` should be array when `mode` is `multiple` or `tags`")}if(ye){var Ve=null;Object(j.a)(ye).some(function(se){if(!n.isValidElement(se)||!se.type)return!1;var re=se.type;if(re.isSelectOption)return!1;if(re.isSelectOptGroup){var it=Object(j.a)(se.props.children).every(function(qe){return!n.isValidElement(qe)||!se.type||qe.type.isSelectOption?!0:(Ve=qe.type,!1)});return!it}return Ve=re,!0}),Ve&&Object($.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ve.displayName||Ve.name||Ve,"`.")),Object($.a)(Dt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var Se=q,Ce=Object(W.a)({prefixCls:"rc-select",components:{optionList:k},convertChildrenToData:V,flattenOptions:X.d,getLabeledValue:X.e,filterOptions:X.b,isValueDisabled:X.g,findValueOption:X.c,warningProps:Se,fillOptionsWithMissingValue:X.a}),Ae=function(Y){Object(w.a)(Q,Y);var K=Object(b.a)(Q);function Q(){var ye;return Object(u.a)(this,Q),ye=K.apply(this,arguments),ye.selectRef=n.createRef(),ye.focus=function(){ye.selectRef.current.focus()},ye.blur=function(){ye.selectRef.current.blur()},ye}return Object(p.a)(Q,[{key:"render",value:function(){return n.createElement(Ce,Object.assign({ref:this.selectRef},this.props))}}]),Q}(n.Component);Ae.Option=B,Ae.OptGroup=R;var Ue=Ae,Qe=Ue,gt=e("H84U"),_e=e("1vzs"),Oe=e("3Nzz"),lt=function(Y){r()(Q,Y);var K=d()(Q);function Q(){var ye;return h()(this,Q),ye=K.apply(this,arguments),ye.selectRef=n.createRef(),ye.focus=function(){ye.selectRef.current&&ye.selectRef.current.focus()},ye.blur=function(){ye.selectRef.current&&ye.selectRef.current.blur()},ye.getMode=function(){var ue=ye.props.mode;return ue==="combobox"?void 0:ue===Q.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":ue},ye.renderSelect=function(ue){var Ne=ue.getPopupContainer,Te=ue.getPrefixCls,oe=ue.renderEmpty,de=ue.direction,Le=ue.virtual,Ge=ue.dropdownMatchSelectWidth,ht=ye.props,Et=ht.prefixCls,Be=ht.notFoundContent,Dt=ht.className,Ke=ht.size,At=ht.listHeight,Xe=At===void 0?256:At,et=ht.listItemHeight,tt=et===void 0?24:et,ot=ht.getPopupContainer,Ve=ht.dropdownClassName,se=ht.bordered,re=Te("select",Et),it=ye.getMode(),qe=it==="multiple"||it==="tags",be;Be!==void 0?be=Be:it==="combobox"?be=null:be=oe("Select");var Zt=Object(_e.a)(m()(m()({},ye.props),{multiple:qe,prefixCls:re})),dt=Zt.suffixIcon,ct=Zt.itemIcon,yt=Zt.removeIcon,_t=Zt.clearIcon,or=Object(l.default)(ye.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),Bt=s()(Ve,f()({},"".concat(re,"-dropdown-").concat(de),de==="rtl"));return n.createElement(Oe.b.Consumer,null,function(we){var ve,me=Ke||we,he=s()(Dt,(ve={},f()(ve,"".concat(re,"-lg"),me==="large"),f()(ve,"".concat(re,"-sm"),me==="small"),f()(ve,"".concat(re,"-rtl"),de==="rtl"),f()(ve,"".concat(re,"-borderless"),!se),ve));return n.createElement(Qe,m()({ref:ye.selectRef,virtual:Le,dropdownMatchSelectWidth:Ge},or,{listHeight:Xe,listItemHeight:tt,mode:it,prefixCls:re,direction:de,inputIcon:dt,menuItemSelectedIcon:ct,removeIcon:yt,clearIcon:_t,notFoundContent:be,className:he,getPopupContainer:ot||Ne,dropdownClassName:Bt}))})},ye}return a()(Q,[{key:"render",value:function(){return n.createElement(gt.a,null,this.renderSelect)}}]),Q}(n.Component);lt.Option=B,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 ce=_.a=lt},"2fw6":function(D,_,e){var g=e("y+Vt"),f=g.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(m,v,h){h&&m.moveTo(v.cx+v.r,v.cy),m.arc(v.cx,v.cy,v.r,0,Math.PI*2,!0)}});D.exports=f},"2gN3":function(D,_,e){var g=e("Kz5y"),f=g["__core-js_shared__"];D.exports=f},"2jpz":function(D,_,e){"use strict";e.d(_,"a",function(){return p});var g=e("cDf5"),f=e.n(g),y=e("q1tI"),m=e.n(y),v=e("TSYQ"),h=e.n(v),c=e("gZBC"),a=e.n(c),i=e("vk+C"),r=e.n(i),o=e("pG52"),d=e.n(o),n=e("Csr3"),l=e.n(n),t=e("e5VY"),s=e.n(t),u=e("0n0R");function p(w,b,E,A){var S=A.isLeaf,T=A.expanded,L=A.loading;if(L)return y.createElement(a.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(r.a,{className:"".concat(w,"-switcher-line-icon")}):null;var C="".concat(w,"-switcher-icon");return Object(u.b)(b)?Object(u.a)(b,{className:h()(b.props.className||"",C)}):b||(E?T?y.createElement(d.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,_,e){"use strict";Object.defineProperty(_,"__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"};_.default=g},"2uGb":function(D,_,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,_,e){var g=e("ProS");e("qMZE"),e("g0SD"),g.registerPreprocessor(function(f){f.markPoint=f.markPoint||{}})},"33Ds":function(D,_,e){var g=e("ProS"),f=e("b9oc"),y=e("Kagy"),m=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,r,o){f.clear(i),r.dispatchAction({type:"restore",from:this.uid})},m.register("restore",h),g.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(i,r){r.resetOption("recreate")});var a=h;D.exports=a},"34/K":function(D,_,e){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.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]=(p[w+A]>>2&3)*255/3,E[A*4+2]=(p[w+A]>>4&3)*255/3,E[A*4+4]=0;p=E,w=0}return d.blitImage(c,s,i,u,p,w),o.rQskipBytes(u*t),this._lines-=u,!(this._lines>0)}}]),v}();_.default=m},"3690":function(D,_,e){"use strict";function g(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g=function(o){return typeof o}:g=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},g(i)}Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var f=m(e("Lo0S"));function y(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return y=function(){return i},i}function m(i){if(i&&i.__esModule)return i;if(i===null||g(i)!=="object"&&typeof i!="function")return{default:i};var r=y();if(r&&r.has(i))return r.get(i);var o={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var l=d?Object.getOwnPropertyDescriptor(i,n):null;l&&(l.get||l.set)?Object.defineProperty(o,n,l):o[n]=i[n]}return o.default=i,r&&r.set(i,o),o}function v(i,r){if(!(i instanceof r))throw new TypeError("Cannot call a class as a function")}function h(i,r){for(var o=0;o0;){var p=1;if(t.rQwait("HEXTILE",p))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),L=o+S*16,x=d+T*16,C=Math.min(16,o+n-L),O=Math.min(16,d+l-x);if(E&1)p+=C*O*4;else if(E&2&&(p+=4),E&4&&(p+=4),E&8){if(p++,t.rQwait("HEXTILE",p))return!1;var N=w[b+p-1];E&16?p+=N*(4+2):p+=N*2}if(t.rQwait("HEXTILE",p))return!1;if(b++,E===0)this._lastsubencoding&1?f.Debug(" Ignoring blank after RAW"):s.fillRect(L,x,C,O,this._background);else if(E&1)s.blitImage(L,x,C,O,w,b),b+=p-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(L,x,C,O,this._background),E&8){var F=w[b];b++;for(var k=0;k>4,R=B&15,U=w[b];b++;var j=(U>>4)+1,H=(U&15)+1;s.subTile(z,R,j,H,P)}}s.finishTile()}t.rQi=b,this._lastsubencoding=E,this._tiles--}return!0}}]),i}();_.default=a},"3A9y":function(D,_){function e(g){return this.__data__.has(g)}D.exports=e},"3C/r":function(D,_){var e=function(y,m){this.image=y,this.repeat=m,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,_,e){var g=e("hydK"),f=g.createElement,y=e("bYtY"),m=e("SUKs"),v=e("y+Vt"),h=e("Dagg"),c=e("dqUG"),a=e("DBLp"),i=e("sW+o"),r=e("n6Mw"),o=e("vKoX"),d=e("P47w"),n=d.path,l=d.image,t=d.text;function s(C){return parseInt(C,10)}function u(C){return C instanceof v?n:C instanceof h?l:C instanceof c?t:n}function p(C,O){return O&&C&&O.parentNode!==C}function w(C,O,N){if(p(C,O)&&N){var F=N.nextSibling;F?C.insertBefore(O,F):C.appendChild(O)}}function b(C,O){if(p(C,O)){var N=C.firstChild;N?C.insertBefore(O,N):C.appendChild(O)}}function E(C,O){O&&C&&O.parentNode===C&&C.removeChild(O)}function A(C){return C.__textSvgEl}function S(C){return C.__svgEl}var T=function(O,N,F,k){this.root=O,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 B=f("g");P.appendChild(B);var z=f("g");P.appendChild(z),this.gradientManager=new i(k,z),this.clipPathManager=new r(k,z),this.shadowManager=new o(k,z);var R=document.createElement("div");R.style.cssText="overflow:hidden;position:relative",this._svgDom=P,this._svgRoot=z,this._backgroundRoot=B,this._viewport=R,O.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 O=this.getViewportRoot();if(O)return{offsetLeft:O.offsetLeft||0,offsetTop:O.offsetTop||0}},refresh:function(){var O=this.storage.getDisplayList(!0);this._paintList(O)},setBackgroundColor:function(O){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=O,this._backgroundRoot.appendChild(N),this._backgroundNode=N},_paintList:function(O){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var N=this._svgRoot,F=this._visibleList,k=O.length,P=[],B;for(B=0;B=0;--z)if(B[z]===P)return!0;return!1}),F}else return null;else return F[0]},resize:function(O,N){var F=this._viewport;F.style.display="none";var k=this._opts;if(O!=null&&(k.width=O),N!=null&&(k.height=N),O=this._getSize(0),N=this._getSize(1),F.style.display="",this._width!==O||this._height!==N){this._width=O,this._height=N;var P=F.style;P.width=O+"px",P.height=N+"px";var B=this._svgDom;B.setAttribute("width",O),B.setAttribute("height",N)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",O),this._backgroundNode.setAttribute("height",N))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(O){var N=this._opts,F=["width","height"][O],k=["clientWidth","clientHeight"][O],P=["paddingLeft","paddingTop"][O],B=["paddingRight","paddingBottom"][O];if(N[F]!=null&&N[F]!=="auto")return parseFloat(N[F]);var z=this.root,R=document.defaultView.getComputedStyle(z);return(z[k]||s(R[F])||s(z.style[F]))-(s(R[P])||0)-(s(R[B])||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 O=encodeURIComponent(this._svgDom.outerHTML.replace(/> \r<`));return"data:image/svg+xml;charset=UTF-8,"+O}};function L(C){return function(){m('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]=L(C)});var x=T;D.exports=x},"3Fdi":function(D,_){var e=Function.prototype,g=e.toString;function f(y){if(y!=null){try{return g.call(y)}catch(m){}try{return y+""}catch(m){}}return""}D.exports=f},"3LNs":function(D,_,e){var g=e("bYtY"),f=e("Yl7c"),y=e("IwbS"),m=e("zTMp"),v=e("YH21"),h=e("iLNv"),c=e("4NO4"),a=c.makeInner,i=a(),r=g.clone,o=g.bind;function d(){}d.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 L=this._group,x=this._handle;if(!T||T==="hide"){L&&L.hide(),x&&x.hide();return}L&&L.show(),x&&x.show();var C={};this.makeElOption(C,S,w,b,E);var O=C.graphicKey;O!==this._lastGraphicKey&&this.clear(E),this._lastGraphicKey=O;var N=this._moveAnimation=this.determineAnimation(w,b);if(!L)L=this._group=new y.Group,this.createPointerEl(L,C,w,b),this.createLabelEl(L,C,w,b),E.getZr().add(L);else{var F=g.curry(n,b,N);this.updatePointerEl(L,C,F,b),this.updateLabelEl(L,C,F,b)}u(L,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 L=this.animationThreshold;if(S&&A.getBandWidth()>L)return!0;if(T){var x=m.getAxisInfo(w).seriesDataCount,C=A.getExtent();return Math.abs(C[0]-C[1])/x>L}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](r(b.pointer));w.add(T)}},createLabelEl:function(w,b,E,A){if(b.label){var S=i(w).labelEl=new y.Rect(r(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 L;this._handle||(L=!0,A=this._handle=y.createIcon(S.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(O){v.stop(O.event)},onmousedown:o(this._onHandleDragMove,this,0,0),drift:o(this._onHandleDragMove,this),ondragend:o(this._onHandleDragEnd,this)}),E.add(A)),u(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,L)},_moveHandleToValue:function(w,b){n(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]}}},d.prototype.constructor=d;function n(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 u(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(d);var p=d;D.exports=p},"3OrL":function(D,_,e){var g=e("bYtY"),f=e("6Ic6"),y=e("IwbS"),m=e("y+Vt"),v=["itemStyle"],h=["emphasis","itemStyle"],c=f.extend({type:"boxplot",render:function(n,l,t){var s=n.getData(),u=this.group,p=this._data;this._data||u.removeAll();var w=n.get("layout")==="horizontal"?1:0;s.diff(p).add(function(b){if(s.hasValue(b)){var E=s.getItemLayout(b),A=i(E,s,b,w,!0);s.setItemGraphicEl(b,A),u.add(A)}}).update(function(b,E){var A=p.getItemGraphicEl(E);if(!s.hasValue(b)){u.remove(A);return}var S=s.getItemLayout(b);A?r(S,A,s,b):A=i(S,s,b,w),u.add(A),s.setItemGraphicEl(b,A)}).remove(function(b){var E=p.getItemGraphicEl(b);E&&u.remove(E)}).execute(),this._data=s},remove:function(n){var l=this.group,t=this._data;this._data=null,t&&t.eachItemGraphicEl(function(s){s&&l.remove(s)})},dispose:g.noop}),a=m.extend({type:"boxplotBoxPath",shape:{},buildPath:function(n,l){var t=l.points,s=0;for(n.moveTo(t[s][0],t[s][1]),s++;s<4;s++)n.lineTo(t[s][0],t[s][1]);for(n.closePath();s=0)continue;if(!Object.prototype.propertyIsEnumerable.call(X,$))continue;G[$]=X[$]}}return G}function E(X,W){if(X==null)return{};var G={},$=Object.keys(X),ge,q;for(q=0;q<$.length;q++){if(ge=$[q],W.indexOf(ge)>=0)continue;G[ge]=X[ge]}return G}var A=function(W,G){var $=W.overlayClassName,ge=W.trigger,q=ge===void 0?["hover"]:ge,Se=W.mouseEnterDelay,Ce=Se===void 0?0:Se,Ae=W.mouseLeaveDelay,Ue=Ae===void 0?.1:Ae,Qe=W.overlayStyle,gt=W.prefixCls,_e=gt===void 0?"rc-tooltip":gt,Oe=W.children,lt=W.onVisibleChange,ce=W.afterVisibleChange,Y=W.transitionName,K=W.animation,Q=W.placement,ye=Q===void 0?"right":Q,ue=W.align,Ne=ue===void 0?{}:ue,Te=W.destroyTooltipOnHide,oe=Te===void 0?!1:Te,de=W.defaultVisible,Le=W.getTooltipContainer,Ge=W.overlayInnerStyle,ht=b(W,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),Et=Object(c.useRef)(null);Object(c.useImperativeHandle)(G,function(){return Et.current});var Be=p({},ht);"visible"in W&&(Be.popupVisible=W.visible);var Dt=function(){var tt=W.arrowContent,ot=tt===void 0?null:tt,Ve=W.overlay,se=W.id;return[a.a.createElement("div",{className:"".concat(_e,"-arrow"),key:"arrow"},ot),a.a.createElement(t,{key:"content",prefixCls:_e,id:se,overlay:Ve,overlayInnerStyle:Ge})]},Ke=!1,At=!1;if(typeof oe=="boolean")Ke=oe;else if(oe&&s(oe)==="object"){var Xe=oe.keepParent;Ke=Xe===!0,At=Xe===!1}return a.a.createElement(i.a,Object.assign({popupClassName:$,prefixCls:_e,popup:Dt,action:q,builtinPlacements:d,popupPlacement:ye,ref:Et,popupAlign:Ne,getPopupContainer:Le,onPopupVisibleChange:lt,afterPopupVisibleChange:ce,popupTransitionName:Y,popupAnimation:K,defaultPopupVisible:de,destroyPopupOnHide:Ke,autoDestroy:At,mouseLeaveDelay:Ue,popupStyle:Qe,mouseEnterDelay:Ce},Be),Oe)},S=Object(c.forwardRef)(A),T=S,L=e("TSYQ"),x=e.n(L),C={adjustX:1,adjustY:1},O={adjustX:0,adjustY:0},N=[0,0];function F(X){return typeof X=="boolean"?X?C:O:h()(h()({},O),X)}function k(X){var W=X.arrowWidth,G=W===void 0?5:W,$=X.horizontalArrowShift,ge=$===void 0?16:$,q=X.verticalArrowShift,Se=q===void 0?8:q,Ce=X.autoAdjustOverflow,Ae={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:[-(ge+G),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(Se+G)]},topRight:{points:["br","tc"],offset:[ge+G,-4]},rightTop:{points:["tl","cr"],offset:[4,-(Se+G)]},bottomRight:{points:["tr","bc"],offset:[ge+G,4]},rightBottom:{points:["bl","cr"],offset:[4,Se+G]},bottomLeft:{points:["tl","bc"],offset:[-(ge+G),4]},leftBottom:{points:["br","cl"],offset:[-4,Se+G]}};return Object.keys(Ae).forEach(function(Ue){Ae[Ue]=X.arrowPointAtCenter?h()(h()({},Ae[Ue]),{overflow:F(Ce),targetOffset:N}):h()(h()({},d[Ue]),{overflow:F(Ce)}),Ae[Ue].ignoreShake=!0}),Ae}var P=e("0n0R"),B=e("H84U"),z=e("09Wf"),R=function(W,G){var $={},ge=h()({},W);return G.forEach(function(q){W&&q in W&&($[q]=W[q],delete ge[q])}),{picked:$,omitted:ge}},U=new RegExp("^(".concat(z.a.join("|"),")(-inverse)?$"));function j(X,W){var G=X.type;if((G.__ANT_BUTTON===!0||G.__ANT_SWITCH===!0||G.__ANT_CHECKBOX===!0||X.type==="button")&&X.props.disabled){var $=R(X.props.style,["position","left","right","top","bottom","float","display","zIndex"]),ge=$.picked,q=$.omitted,Se=h()(h()({display:"inline-block"},ge),{cursor:"not-allowed",width:X.props.block?"100%":null}),Ce=h()(h()({},q),{pointerEvents:"none"}),Ae=Object(P.a)(X,{style:Ce,className:null});return c.createElement("span",{style:Se,className:x()(X.props.className,"".concat(W,"-disabled-compatible-wrapper"))},Ae)}return X}var H=c.forwardRef(function(X,W){var G,$=c.useContext(B.b),ge=$.getPopupContainer,q=$.getPrefixCls,Se=$.direction,Ce=c.useState(!!X.visible||!!X.defaultVisible),Ae=m()(Ce,2),Ue=Ae[0],Qe=Ae[1];c.useEffect(function(){"visible"in X&&Qe(X.visible)},[X.visible]);var gt=function(){var Xe=X.title,et=X.overlay;return!Xe&&!et&&Xe!==0},_e=function(Xe){"visible"in X||Qe(gt()?!1:Xe),X.onVisibleChange&&!gt()&&X.onVisibleChange(Xe)},Oe=function(){var Xe=X.builtinPlacements,et=X.arrowPointAtCenter,tt=X.autoAdjustOverflow;return Xe||k({arrowPointAtCenter:et,autoAdjustOverflow:tt})},lt=function(Xe,et){var tt=Oe(),ot=Object.keys(tt).filter(function(re){return tt[re].points[0]===et.points[0]&&tt[re].points[1]===et.points[1]})[0];if(!ot)return;var Ve=Xe.getBoundingClientRect(),se={top:"50%",left:"50%"};ot.indexOf("top")>=0||ot.indexOf("Bottom")>=0?se.top="".concat(Ve.height-et.offset[1],"px"):(ot.indexOf("Top")>=0||ot.indexOf("bottom")>=0)&&(se.top="".concat(-et.offset[1],"px")),ot.indexOf("left")>=0||ot.indexOf("Right")>=0?se.left="".concat(Ve.width-et.offset[0],"px"):(ot.indexOf("right")>=0||ot.indexOf("Left")>=0)&&(se.left="".concat(-et.offset[0],"px")),Xe.style.transformOrigin="".concat(se.left," ").concat(se.top)},ce=function(){var Xe=X.title,et=X.overlay;return Xe===0?Xe:et||Xe||""},Y=X.prefixCls,K=X.openClassName,Q=X.getPopupContainer,ye=X.getTooltipContainer,ue=X.overlayClassName,Ne=X.color,Te=X.overlayInnerStyle,oe=X.children,de=q("tooltip",Y),Le=Ue;!("visible"in X)&>()&&(Le=!1);var Ge=j(Object(P.b)(oe)?oe:c.createElement("span",null,oe),de),ht=Ge.props,Et=x()(ht.className,f()({},K||"".concat(de,"-open"),!0)),Be=x()(ue,(G={},f()(G,"".concat(de,"-rtl"),Se==="rtl"),f()(G,"".concat(de,"-").concat(Ne),Ne&&U.test(Ne)),G)),Dt,Ke;return Ne&&!U.test(Ne)&&(Dt=h()(h()({},Te),{background:Ne}),Ke={background:Ne}),c.createElement(T,h()({},X,{prefixCls:de,overlayClassName:Be,getTooltipContainer:Q||ye||ge,ref:W,builtinPlacements:Oe(),overlay:ce(),visible:Le,onVisibleChange:_e,onPopupAlign:lt,overlayInnerStyle:Dt,arrowContent:c.createElement("span",{className:"".concat(de,"-arrow-content"),style:Ke})}),Le?Object(P.a)(Ge,{className:Et}):Ge)});H.displayName="Tooltip",H.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var V=_.a=H},"3TkU":function(D,_,e){e("aTJb"),e("OlYY"),e("fc+c"),e("QUw5"),e("Swgg"),e("LBfv"),e("noeP")},"3X6L":function(D,_,e){var g=e("bYtY"),f=e("7a+S"),y=e("OKJ2"),m=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(m,y);var v=m;D.exports=v},"3dVZ":function(D,_,e){},"3e3G":function(D,_,e){var g=e("bYtY"),f=e("QuXc"),y=function(h,c,a,i,r){this.x=h==null?.5:h,this.y=c==null?.5:c,this.r=a==null?.5:a,this.type="radial",this.global=r||!1,f.call(this,i)};y.prototype={constructor:y},g.inherits(y,f);var m=y;D.exports=m},"3gBT":function(D,_){var e=2311;function g(){return e++}D.exports=g},"3hzK":function(D,_){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,_){function e(f){return f instanceof Array||(f=[f,f]),f}function g(f){f.eachSeriesByType("graph",function(y){var m=y.getGraph(),v=y.getEdgeData(),h=e(y.get("edgeSymbol")),c=e(y.get("edgeSymbolSize")),a="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(a)),v.setVisual("opacity",y.get(i)),v.each(function(r){var o=v.getItemModel(r),d=m.getEdgeByIndex(r),n=e(o.getShallow("symbol",!0)),l=e(o.getShallow("symbolSize",!0)),t=o.get(a),s=o.get(i);switch(t){case"source":t=d.node1.getVisual("color");break;case"target":t=d.node2.getVisual("color");break}n[0]&&d.setVisual("fromSymbol",n[0]),n[1]&&d.setVisual("toSymbol",n[1]),l[0]&&d.setVisual("fromSymbolSize",l[0]),l[1]&&d.setVisual("toSymbolSize",l[1]),d.setVisual("color",t),d.setVisual("opacity",s)})})}D.exports=g},"3ouR":function(D,_,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,m=e("6VBw"),v=function(a,i){return g.createElement(m.a,Object.assign({},a,{ref:i,icon:y}))};v.displayName="CloseSquareOutlined";var h=_.a=g.forwardRef(v)},"3zoK":function(D,_,e){var g=e("bYtY"),f=e("bLfw"),y=e("KCsZ"),m=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(o){var d=this.activeIntervals=g.clone(o);if(d)for(var n=d.length-1;n>=0;n--)v.asc(d[n])},getActiveState:function(o){var d=this.activeIntervals;if(!d.length)return"normal";if(o==null||isNaN(o))return"inactive";if(d.length===1){var n=d[0];if(n[0]<=o&&o<=n[1])return"active"}else for(var l=0,t=d.length;l40&&(k=Math.max(1,Math.floor(F/40)));for(var P=N[0],B=T.dataToCoord(P+1)-T.dataToCoord(P),z=Math.abs(B*Math.cos(C)),R=Math.abs(B*Math.sin(C)),U=0,j=0;P<=N[1];P+=k){var H=0,V=0,X=f.getBoundingRect(x(P),L.font,"center","top");H=X.width*1.3,V=X.height*1.3,U=Math.max(U,H,7),j=Math.max(j,V,7)}var W=U/z,G=j/R;isNaN(W)&&(W=Infinity),isNaN(G)&&(G=Infinity);var $=Math.max(0,Math.floor(Math.min(W,G))),ge=i(T.model),q=T.getExtent(),Se=ge.lastAutoInterval,Ce=ge.lastTickCount;return Se!=null&&Ce!=null&&Math.abs(Se-$)<=1&&Math.abs(Ce-F)<=1&&Se>$&&ge.axisExtend0===q[0]&&ge.axisExtend1===q[1]?$=Se:(ge.lastTickCount=F,ge.lastAutoInterval=$,ge.axisExtend0=q[0],ge.axisExtend1=q[1]),$}function E(T){var L=T.getLabelModel();return{axisRotate:T.getRotate?T.getRotate():T.isHorizontal&&!T.isHorizontal()?90:0,labelRotate:L.get("rotate")||0,font:L.getFont()}}function A(T,L,x){var C=h(T),O=T.scale,N=O.getExtent(),F=T.getLabelModel(),k=[],P=Math.max((L||0)+1,1),B=N[0],z=O.count();B!==0&&P>1&&z/P>2&&(B=Math.round(Math.ceil(B/P)*P));var R=a(T),U=F.get("showMinLabel")||R,j=F.get("showMaxLabel")||R;U&&B!==N[0]&&V(N[0]);for(var H=B;H<=N[1];H+=P)V(H);j&&H-P!==N[1]&&V(N[1]);function V(X){k.push(x?X:{formattedLabel:C(X),rawLabel:O.getLabel(X),tickValue:X})}return k}function S(T,L,x){var C=T.scale,O=h(T),N=[];return g.each(C.getTicks(),function(F){var k=C.getLabel(F);L(F,k)&&N.push(x?F:{formattedLabel:O(F),rawLabel:k,tickValue:F})}),N}_.createAxisLabels=r,_.createAxisTicks=o,_.calculateCategoryInterval=b},"4NO4":function(D,_,e){var g=e("bYtY"),f=e("ItGF"),y=g.each,m=g.isObject,v=g.isArray,h="series\0";function c(x){return x instanceof Array?x:x==null?[]:[x]}function a(x,C,O){if(x){x[C]=x[C]||{},x.emphasis=x.emphasis||{},x.emphasis[C]=x.emphasis[C]||{};for(var N=0,F=O.length;N=O.length&&O.push({option:N})}),O}function n(x){var C=g.createHashMap();y(x,function(O,N){var F=O.exist;F&&C.set(F.id,O)}),y(x,function(O,N){var F=O.option;g.assert(!F||F.id==null||!C.get(F.id)||C.get(F.id)===O,"id duplicates: "+(F&&F.id)),F&&F.id!=null&&C.set(F.id,O),!O.keyInfo&&(O.keyInfo={})}),y(x,function(O,N){var F=O.exist,k=O.option,P=O.keyInfo;if(!m(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 B=0;do P.id="\0"+P.name+"\0"+B++;while(C.get(P.id))}C.set(P.id,O)})}function l(x){var C=x.name;return!!(C&&C.indexOf(h))}function t(x){return m(x)&&x.id&&(x.id+"").indexOf("\0_ec_\0")===0}function s(x,C){var O={},N={};return F(x||[],O),F(C||[],N,O),[k(O),k(N)];function F(P,B,z){for(var R=0,U=P.length;R=v[0]&&m<=v[1]},f.prototype.normalize=function(m){var v=this._extent;return v[1]===v[0]?.5:(m-v[0])/(v[1]-v[0])},f.prototype.scale=function(m){var v=this._extent;return m*(v[1]-v[0])+v[0]},f.prototype.unionExtent=function(m){var v=this._extent;m[0]v[1]&&(v[1]=m[1])},f.prototype.unionExtentFromData=function(m,v){this.unionExtent(m.getApproximateExtent(v))},f.prototype.getExtent=function(){return this._extent.slice()},f.prototype.setExtent=function(m,v){var h=this._extent;isNaN(m)||(h[0]=m),isNaN(v)||(h[1]=v)},f.prototype.isBlank=function(){return this._isBlank},f.prototype.setBlank=function(m){this._isBlank=m},f.prototype.getLabel=null,g.enableClassExtend(f),g.enableClassManagement(f,{registerWhenExtend:!0});var y=f;D.exports=y},"4fz+":function(D,_,e){var g=e("bYtY"),f=e("1bdT"),y=e("mFDi"),m=function(c){c=c||{},f.call(this,c);for(var a in c)c.hasOwnProperty(a)&&(this[a]=c[a]);this._children=[],this.__storage=null,this.__dirty=!0};m.prototype={constructor:m,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(c){return this._children[c]},childOfName:function(c){for(var a=this._children,i=0;i=0&&(i.splice(r,0,c),this._doAdd(c))}return this},_doAdd:function(c){c.parent&&c.parent.remove(c),c.parent=this;var a=this.__storage,i=this.__zr;a&&a!==c.__storage&&(a.addToStorage(c),c instanceof m&&c.addChildrenToStorage(a)),i&&i.refresh()},remove:function(c){var a=this.__zr,i=this.__storage,r=this._children,o=g.indexOf(r,c);return o<0?this:(r.splice(o,1),c.parent=null,i&&(i.delFromStorage(c),c instanceof m&&c.delChildrenFromStorage(i)),a&&a.refresh(),this)},removeAll:function(){var c=this._children,a=this.__storage,i,r;for(r=0;r1e-4){L[0]=p-b,L[1]=w-E,x[0]=p+b,x[1]=w+E;return}if(a[0]=h(A)*b+p,a[1]=v(A)*E+w,i[0]=h(S)*b+p,i[1]=v(S)*E+w,C(L,a,i),O(x,a,i),A=A%c,A<0&&(A=A+c),S=S%c,S<0&&(S=S+c),A>S&&!T?S+=c:AA&&(r[0]=h(k)*b+p,r[1]=v(k)*E+w,C(L,r,L),O(x,r,x))}_.fromPoints=o,_.fromLine=d,_.fromCubic=t,_.fromQuadratic=s,_.fromArc=u},"4vCz":function(D,_,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var y=f(e("q1tI")),m=g(e("X2/X")),v=g(e("KQxl")),h=function(i,r){return y.createElement(v.default,Object.assign({},i,{ref:r,icon:m.default}))};h.displayName="PlusSquareOutlined";var c=y.forwardRef(h);_.default=c},"4xFK":function(D,_,e){"use strict";Object.defineProperty(_,"__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"};_.default=g},"56rv":function(D,_,e){var g=e("IwbS"),f=e("x3X8"),y=f.getDefaultLabel;function m(h,c,a,i,r,o,d){var n=a.getModel("label"),l=a.getModel("emphasis.label");g.setLabelStyle(h,c,n,l,{labelFetcher:r,labelDataIndex:o,defaultText:y(r.getData(),o),isRectText:!0,autoColor:i}),v(h),v(c)}function v(h,c){h.textPosition==="outside"&&(h.textPosition=c)}_.setLabel=m},"59Ip":function(D,_,e){var g=e("Sj9i");function f(y,m,v,h,c,a,i,r,o,d,n){if(o===0)return!1;var l=o;if(n>m+l&&n>h+l&&n>a+l&&n>r+l||ny+l&&d>v+l&&d>c+l&&d>i+l||da)return c[r];return c[i-1]}var h={clearColorPalette:function(){m(this).colorIdx=0,m(this).colorNameMap={}},getColorFromPalette:function(c,a,i){a=a||this;var r=m(a),o=r.colorIdx||0,d=r.colorNameMap=r.colorNameMap||{};if(d.hasOwnProperty(c))return d[c];var n=y(this.get("color",!0)),l=this.get("colorLayer",!0),t=i==null||!l?n:v(l,i);if(t=t||n,!t||!t.length)return;var s=t[o];return c&&(d[c]=s),r.colorIdx=(o+1)%t.length,s}};D.exports=h},"5NDa":function(D,_,e){"use strict";var g=e("cIOH"),f=e.n(g),y=e("OnYD"),m=e.n(y),v=e("+L6B")},"5NHt":function(D,_,e){e("aTJb"),e("OlYY"),e("fc+c"),e("N5BQ"),e("IyUQ"),e("LBfv"),e("noeP")},"5OYt":function(D,_,e){"use strict";var g=e("J4zp"),f=e.n(g),y=e("q1tI"),m=e.n(y),v=e("ACnJ");function h(){var c=Object(y.useState)({}),a=f()(c,2),i=a[0],r=a[1];return Object(y.useEffect)(function(){var o=v.a.subscribe(function(d){r(d)});return function(){return v.a.unsubscribe(o)}},[]),i}_.a=h},"5RHE":function(D,_,e){(function(g){var f,y,y;!function(m){!(f=m,y=typeof f=="function"?f.call(_,e,_,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 m(we){return(m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve})(we)}!function(we){if(m(we.console)!=="object"){we.console={};for(var ve,me,he=we.console,Re=function(){},He=["memory"],ze="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(",");ve=He.pop();)he[ve]||(he[ve]={});for(;me=ze.pop();)he[me]||(he[me]=Re)}var Ye,Pe,nt,bt,Ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";we.btoa===void 0&&(we.btoa=function(ae){var pe,J,ne,xe,De,Fe=0,$e=0,vt="",Wt=[];if(!ae)return ae;for(;pe=(De=ae.charCodeAt(Fe++)<<16|ae.charCodeAt(Fe++)<<8|ae.charCodeAt(Fe++))>>18&63,J=De>>12&63,ne=De>>6&63,xe=63&De,Wt[$e++]=Ot.charAt(pe)+Ot.charAt(J)+Ot.charAt(ne)+Ot.charAt(xe),Fe>16&255,J=Fe>>8&255,ne=255&Fe,Wt[vt++]=xe==64?String.fromCharCode(pe):De==64?String.fromCharCode(pe,J):String.fromCharCode(pe,J,ne),$e>>0,ne=new Array(J),xe=1>>0,xe=0;xe>>0;if(typeof pe!="function")throw new TypeError("predicate must be a function");for(var xe=arguments[1],De=0;De>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=Fe(sr/255)+" "+rn[0];break;case 3:default:Vt=$e(sr/255)+" "+rn[0]}else if(Dr===void 0||m(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=[Fe(sr/255),Fe(br/255),Fe(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=[Fe(sr/255),Fe(br/255),Fe(Mr/255),Fe(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=ae.__private__.getFilters=function(){return Pe},xa=ae.__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=me.API.processDataByFilters!==void 0?me.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=ae.__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},_i=ae.__private__.putPages=function(){var St,Vt,sr=[];for(St=1;St<=Yr;St++)un[St].objId=Pn(),un[St].contentsObjId=Pn();for(St=1;St<=Yr;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:Yn,resourceDictionaryObjId:Vn}));zn(Yn,!0),Xt("<>"),Xt("endobj"),jr.publish("postPutPages")},Ci=function(){!function(){for(var Vt in fr)fr.hasOwnProperty(Vt)&&(bt===!1||bt===!0&&Ot.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)&&(bt===!1||bt===!0&&Ot.hasOwnProperty(Vt))&&Xt("/"+Vt+" "+fr[Vt].objectNumber+" 0 R");Xt(">>"),Xt("/XObject <<"),jr.publish("putXobjectDict"),Xt(">>")}(),Xt(">>"),Xt("endobj"),jr.publish("postPutResources")},Gn=function(Vt,sr,br){xr.hasOwnProperty(sr)||(xr[sr]={}),xr[sr][br]=Vt},Oa=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,Gn(rn,sr,br)),rn},mn=ae.__private__.pdfEscape=ae.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,"\\)")},On=ae.__private__.beginPage=function(St,Vt){var sr,br=typeof Vt=="string"&&Vt.toLowerCase();if(typeof St=="string"&&(sr=xe(St.toLowerCase()))&&(St=sr[0],Vt=sr[1]),Array.isArray(St)&&(Vt=St[1],St=St[0]),(isNaN(St)||isNaN(Vt))&&(St=He[0],Vt=He[1]),br){switch(br.substr(0,1)){case"l":St>"),Xt("endobj")},Na=ae.__private__.putCatalog=function(St){var Vt=(St=St||{}).rootDictionaryObjId||Yn;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 "+Fe(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")}st&&Xt("/PageMode /"+st),jr.publish("putCatalog"),Xt(">>"),Xt("endobj")},Qi=ae.__private__.putTrailer=function(){Xt("trailer"),Xt("<<"),Xt("/Size "+(pr+1)),Xt("/Root "+pr+" 0 R"),Xt("/Info "+(pr-1)+" 0 R"),Xt("/ID [ <"+vt+"> <"+vt+"> ]"),Xt(">>")},ma=ae.__private__.putHeader=function(){Xt("%PDF-"+pe),Xt("%\xBA\xDF\xAC\xE0")},Ba=ae.__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=ae.__private__.buildDocument=function(){ft=!1,ir=pr=0,Ft=[],cr=[],Nn=[],Yn=Pn(),Vn=Pn(),jr.publish("buildDocument"),ma(),_i(),function(){jr.publish("putAdditionalObjects");for(var Vt=0;Vt',Dr=we.open();if(Dr!==null&&Dr.document.write(Mr),Dr||typeof safari=="undefined")return Dr;case"datauri":case"dataurl":return we.document.location.href="data:application/pdf;filename="+sr.filename+";base64,"+btoa(br);default:return null}}).foo=function(){try{return It.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(!we.console)throw new Error(Vt);we.console.error(Vt,sr),we.alert&&alert(Vt)}},(It.foo.bar=It).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"),Ot[ut]=!0,bn},ae.__private__.lstext=ae.lstext=function(St,Vt,sr,br){return console.warn("jsPDF.lstext is deprecated"),this.text(St,Vt,sr,{charSpace:br})},ae.__private__.clip=ae.clip=function(St){Xt(St==="evenodd"?"W*":"W"),Xt("n")},ae.__private__.clip_fixed=ae.clip_fixed=function(St){console.log("clip_fixed is deprecated"),ae.clip(St)};var mo=ae.__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=ae.__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};ae.__private__.line=ae.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)},ae.__private__.lines=ae.lines=function(St,Vt,sr,br,Mr,Dr){var rn,fn,wn,Hn,Sn,bn,Mn,vn,Rn,En,In,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,In=sr,wn=0;wn=xr.length-1;if(ta&&!_i){An+=" ";continue}if(ta||_i){if(_i)Yn=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;Yn=xa}for(var Ci="",Gn=qn;Gn<=Yn;Gn++)Ci+=xr[Gn]+" ";switch(Ci=Ci.substr(Ci.length-1)==" "?Ci.substr(0,Ci.length-1):Ci,Vn=Wt(Ci,ur,Yr).width,ur.textAlign){case"right":Pn=Nn-Vn-2;break;case"center":Pn=(Nn-Vn)/2;break;case"left":default:Pn=2}pr+=ze(Pn)+" "+ze(zn)+` Td `,pr+="("+Re(Ci)+`) Tj `,pr+=-ze(Pn)+` 0 Td `,zn=-(Yr+2),Vn=0,qn=Yn+1,on++,An=""}break}return fr.text=pr,fr.fontSize=Yr,fr},Wt=function(ur,pr,cr){var fr=me.internal.getFont(pr.fontName,pr.fontStyle),xr=me.getStringUnitWidth(ur,{font:fr,fontSize:parseFloat(cr),charSpace:0})*parseFloat(cr);return{height:me.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},Rt=function(){me.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var ur=me.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(me,cr)}},Kt=function(ur){var pr={type:"reference",object:ur};me.internal.getPageInfo(ur.page).pageContext.annotations.find(function(cr){return cr.type===pr.type&&cr.object===pr.object})===void 0&&me.internal.getPageInfo(ur.page).pageContext.annotations.push(pr)},Gt=function(){if(me.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");me.internal.write("/AcroForm "+me.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},Qt=function(){me.internal.events.unsubscribe(me.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete me.internal.acroformPlugin.acroFormDictionaryRoot._eventID,me.internal.acroformPlugin.printedOut=!0},Mt=function(ur){var pr=!ur;ur||(me.internal.newObjectDeferredBegin(me.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),me.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),ur=ur||me.internal.acroformPlugin.acroFormDictionaryRoot.Kids;for(var cr in ur)if(ur.hasOwnProperty(cr)){var fr=ur[cr],xr=[],Yr=fr.Rect;if(fr.Rect&&(fr.Rect=Fe.call(this,fr.Rect)),me.internal.newObjectDeferredBegin(fr.objId,!0),fr.DA=Lr.createDefaultAppearanceStream(fr),m(fr)==="object"&&typeof fr.getKeyValueListForStream=="function"&&(xr=fr.getKeyValueListForStream()),fr.Rect=Yr,fr.hasAppearanceStream&&!fr.appearanceStreamContent){var un=$e.call(this,fr);xr.push({key:"AP",value:"<>"}),me.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<=me.internal.acroformPlugin.xForms.indexOf(gn)||me.internal.acroformPlugin.xForms.push(gn))}else typeof(gn=Tn)=="function"&&(gn=gn.call(this,fr)),Nn+="/"+cr+" "+gn,0<=me.internal.acroformPlugin.xForms.indexOf(gn)||me.internal.acroformPlugin.xForms.push(gn);Nn+=">>"}xr.push({key:"AP",value:`<< `+Nn+">>"})}me.internal.putStream({additionalKeyValues:xr}),me.internal.out("endobj")}pr&&dr.call(this,me.internal.acroformPlugin.xForms)},dr=function(ur){for(var pr in ur)if(ur.hasOwnProperty(pr)){var cr=pr,fr=ur[pr];me.internal.newObjectDeferredBegin(fr&&fr.objId,!0),m(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(me=this,Tt.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify($t)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");he=me.internal.scaleFactor,me.internal.acroformPlugin.acroFormDictionaryRoot=new It,me.internal.acroformPlugin.acroFormDictionaryRoot._eventID=me.internal.events.subscribe("postPutResources",Qt),me.internal.events.subscribe("buildDocument",Rt),me.internal.events.subscribe("putCatalog",Gt),me.internal.events.subscribe("postPutPages",Mt),me.internal.acroformPlugin.isInitialized=!0}},st=we.__acroform__.arrayToPdfArray=function(_r){if(Array.isArray(_r)){for(var ur="[",pr=0;pr<_r.length;pr++)switch(pr!==0&&(ur+=" "),m(_r[pr])){case"boolean":case"number":case"object":ur+=_r[pr].toString();break;case"string":_r[pr].substr(0,1)!=="/"?ur+="("+Re(_r[pr].toString())+")":ur+=_r[pr].toString()}return ur+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},xt=function(ur){return(ur=ur||"").toString(),ur="("+Re(ur)+")"},ut=function(){var ur;Object.defineProperty(this,"objId",{configurable:!0,get:function(){if(ur||(ur=me.internal.newObjectDeferred()),!ur)throw new Error("AcroFormPDFObject: Couldn't create Object ID");return ur},set:function(cr){ur=cr}})};ut.prototype.toString=function(){return this.objId+" 0 R"},ut.prototype.putStream=function(){var _r=this.getKeyValueListForStream();me.internal.putStream({data:this.stream,additionalKeyValues:_r}),me.internal.out("endobj")},ut.prototype.getKeyValueListForStream=function(){return function(_r){var ur=[],pr=Object.getOwnPropertyNames(_r).filter(function(Yr){return Yr!="content"&&Yr!="appearanceStreamContent"&&Yr.substring(0,1)!="_"});for(var cr in pr)if(Object.getOwnPropertyDescriptor(_r,pr[cr]).configurable===!1){var fr=pr[cr],xr=_r[fr];xr&&(Array.isArray(xr)?ur.push({key:fr,value:st(xr)}):xr instanceof ut?ur.push({key:fr,value:xr.objId+" 0 R"}):typeof xr!="function"&&ur.push({key:fr,value:xr}))}return ur}(this)};var pt=function(){ut.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writeable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writeable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writeable:!0});var ur,pr=[];Object.defineProperty(this,"BBox",{configurable:!1,writeable:!0,get:function(){return pr},set:function(fr){pr=fr}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writeable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(fr){ur=fr.trim()},get:function(){return ur||null}})};Pe(pt,ut);var It=function(){ut.call(this);var ur,pr=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return 0>"),xr.join(` `)}},set:function(fr){m(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}})};Pe(Xt,Tt);var mr=function(){Xt.call(this),this.pushButton=!0};Pe(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:[]}})};Pe(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(Yr){ur=Yr}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return pr},set:function(Yr){pr=Yr}});var cr,fr={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Yr,un=[];for(Yr in un.push("<<"),fr)un.push("/"+Yr+" ("+fr[Yr]+")");return un.push(">>"),un.join(` `)},set:function(Yr){m(Yr)==="object"&&(fr=Yr)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return fr.CA||""},set:function(Yr){typeof Yr=="string"&&(fr.CA=Yr)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return cr},set:function(Yr){cr=Yr}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return cr.substr(1,cr.length-1)},set:function(Yr){cr="/"+Yr}}),this.optionName=name,this.caption="l",this.appearanceState="Off",this._AppearanceType=Lr.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(name)};Pe(Nr,Tt),Ar.prototype.setAppearance=function(_r){if(!("createAppearanceStream"in _r&&"getCA"in _r))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=_r.createAppearanceStream(pr.optionName),pr.caption=_r.getCA()}},Ar.prototype.createOption=function(_r){this.Kids.length;var ur=new Nr;return ur.Parent=this,ur.optionName=_r,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=Lr.CheckBox.createAppearanceStream()};Pe(Fr,Xt);var tn=function(){Tt.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(ne(this.Ff,13))},set:function(cr){Boolean(cr)===!0?this.Ff=xe(this.Ff,13):this.Ff=De(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ne(this.Ff,21))},set:function(cr){Boolean(cr)===!0?this.Ff=xe(this.Ff,21):this.Ff=De(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ne(this.Ff,23))},set:function(cr){Boolean(cr)===!0?this.Ff=xe(this.Ff,23):this.Ff=De(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(ne(this.Ff,24))},set:function(cr){Boolean(cr)===!0?this.Ff=xe(this.Ff,24):this.Ff=De(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(ne(this.Ff,25))},set:function(cr){Boolean(cr)===!0?this.Ff=xe(this.Ff,25):this.Ff=De(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(ne(this.Ff,26))},set:function(cr){Boolean(cr)===!0?this.Ff=xe(this.Ff,26):this.Ff=De(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}})};Pe(tn,Tt);var qr=function(){tn.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(ne(this.Ff,14))},set:function(pr){Boolean(pr)===!0?this.Ff=xe(this.Ff,14):this.Ff=De(this.Ff,14)}}),this.password=!0};Pe(qr,tn);var Lr={CheckBox:{createAppearanceStream:function(){return{N:{On:Lr.CheckBox.YesNormal},D:{On:Lr.CheckBox.YesPushDown,Off:Lr.CheckBox.OffPushDown}}},YesPushDown:function(ur){var pr=Ot(ur),cr=[],fr=me.internal.getFont(ur.fontName,ur.fontStyle).id,xr=me.__private__.encodeColorString(ur.color),Yr=vt(ur,ur.caption);return cr.push("0.749023 g"),cr.push("0 0 "+ze(Lr.internal.getWidth(ur))+" "+ze(Lr.internal.getHeight(ur))+" re"),cr.push("f"),cr.push("BMC"),cr.push("q"),cr.push("0 0 1 rg"),cr.push("/"+fr+" "+ze(Yr.fontSize)+" Tf "+xr),cr.push("BT"),cr.push(Yr.text),cr.push("ET"),cr.push("Q"),cr.push("EMC"),pr.stream=cr.join(` `),pr},YesNormal:function(ur){var pr=Ot(ur),cr=me.internal.getFont(ur.fontName,ur.fontStyle).id,fr=me.__private__.encodeColorString(ur.color),xr=[],Yr=Lr.internal.getHeight(ur),un=Lr.internal.getWidth(ur),Nn=vt(ur,ur.caption);return xr.push("1 g"),xr.push("0 0 "+ze(un)+" "+ze(Yr)+" re"),xr.push("f"),xr.push("q"),xr.push("0 0 1 rg"),xr.push("0 0 "+ze(un-1)+" "+ze(Yr-1)+" re"),xr.push("W"),xr.push("n"),xr.push("0 g"),xr.push("BT"),xr.push("/"+cr+" "+ze(Nn.fontSize)+" Tf "+fr),xr.push(Nn.text),xr.push("ET"),xr.push("Q"),pr.stream=xr.join(` `),pr},OffPushDown:function(ur){var pr=Ot(ur),cr=[];return cr.push("0.749023 g"),cr.push("0 0 "+ze(Lr.internal.getWidth(ur))+" "+ze(Lr.internal.getHeight(ur))+" re"),cr.push("f"),pr.stream=cr.join(` `),pr}},RadioButton:{Circle:{createAppearanceStream:function(ur){var pr={D:{Off:Lr.RadioButton.Circle.OffPushDown},N:{}};return pr.N[ur]=Lr.RadioButton.Circle.YesNormal,pr.D[ur]=Lr.RadioButton.Circle.YesPushDown,pr},getCA:function(){return"l"},YesNormal:function(ur){var pr=Ot(ur),cr=[],fr=Lr.internal.getWidth(ur)<=Lr.internal.getHeight(ur)?Lr.internal.getWidth(ur)/4:Lr.internal.getHeight(ur)/4;fr=Number((.9*fr).toFixed(5));var xr=Lr.internal.Bezier_C,Yr=Number((fr*xr).toFixed(5));return cr.push("q"),cr.push("1 0 0 1 "+Ye(Lr.internal.getWidth(ur)/2)+" "+Ye(Lr.internal.getHeight(ur)/2)+" cm"),cr.push(fr+" 0 m"),cr.push(fr+" "+Yr+" "+Yr+" "+fr+" 0 "+fr+" c"),cr.push("-"+Yr+" "+fr+" -"+fr+" "+Yr+" -"+fr+" 0 c"),cr.push("-"+fr+" -"+Yr+" -"+Yr+" -"+fr+" 0 -"+fr+" c"),cr.push(Yr+" -"+fr+" "+fr+" -"+Yr+" "+fr+" 0 c"),cr.push("f"),cr.push("Q"),pr.stream=cr.join(` `),pr},YesPushDown:function(ur){var pr=Ot(ur),cr=[],fr=Lr.internal.getWidth(ur)<=Lr.internal.getHeight(ur)?Lr.internal.getWidth(ur)/4:Lr.internal.getHeight(ur)/4,xr=(fr=Number((.9*fr).toFixed(5)),Number((2*fr).toFixed(5))),Yr=Number((xr*Lr.internal.Bezier_C).toFixed(5)),un=Number((fr*Lr.internal.Bezier_C).toFixed(5));return cr.push("0.749023 g"),cr.push("q"),cr.push("1 0 0 1 "+Ye(Lr.internal.getWidth(ur)/2)+" "+Ye(Lr.internal.getHeight(ur)/2)+" cm"),cr.push(xr+" 0 m"),cr.push(xr+" "+Yr+" "+Yr+" "+xr+" 0 "+xr+" c"),cr.push("-"+Yr+" "+xr+" -"+xr+" "+Yr+" -"+xr+" 0 c"),cr.push("-"+xr+" -"+Yr+" -"+Yr+" -"+xr+" 0 -"+xr+" c"),cr.push(Yr+" -"+xr+" "+xr+" -"+Yr+" "+xr+" 0 c"),cr.push("f"),cr.push("Q"),cr.push("0 g"),cr.push("q"),cr.push("1 0 0 1 "+Ye(Lr.internal.getWidth(ur)/2)+" "+Ye(Lr.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=Ot(ur),cr=[],fr=Lr.internal.getWidth(ur)<=Lr.internal.getHeight(ur)?Lr.internal.getWidth(ur)/4:Lr.internal.getHeight(ur)/4,xr=(fr=Number((.9*fr).toFixed(5)),Number((2*fr).toFixed(5))),Yr=Number((xr*Lr.internal.Bezier_C).toFixed(5));return cr.push("0.749023 g"),cr.push("q"),cr.push("1 0 0 1 "+Ye(Lr.internal.getWidth(ur)/2)+" "+Ye(Lr.internal.getHeight(ur)/2)+" cm"),cr.push(xr+" 0 m"),cr.push(xr+" "+Yr+" "+Yr+" "+xr+" 0 "+xr+" c"),cr.push("-"+Yr+" "+xr+" -"+xr+" "+Yr+" -"+xr+" 0 c"),cr.push("-"+xr+" -"+Yr+" -"+Yr+" -"+xr+" 0 -"+xr+" c"),cr.push(Yr+" -"+xr+" "+xr+" -"+Yr+" "+xr+" 0 c"),cr.push("f"),cr.push("Q"),pr.stream=cr.join(` `),pr}},Cross:{createAppearanceStream:function(ur){var pr={D:{Off:Lr.RadioButton.Cross.OffPushDown},N:{}};return pr.N[ur]=Lr.RadioButton.Cross.YesNormal,pr.D[ur]=Lr.RadioButton.Cross.YesPushDown,pr},getCA:function(){return"8"},YesNormal:function(ur){var pr=Ot(ur),cr=[],fr=Lr.internal.calculateCross(ur);return cr.push("q"),cr.push("1 1 "+ze(Lr.internal.getWidth(ur)-2)+" "+ze(Lr.internal.getHeight(ur)-2)+" re"),cr.push("W"),cr.push("n"),cr.push(ze(fr.x1.x)+" "+ze(fr.x1.y)+" m"),cr.push(ze(fr.x2.x)+" "+ze(fr.x2.y)+" l"),cr.push(ze(fr.x4.x)+" "+ze(fr.x4.y)+" m"),cr.push(ze(fr.x3.x)+" "+ze(fr.x3.y)+" l"),cr.push("s"),cr.push("Q"),pr.stream=cr.join(` `),pr},YesPushDown:function(ur){var pr=Ot(ur),cr=Lr.internal.calculateCross(ur),fr=[];return fr.push("0.749023 g"),fr.push("0 0 "+ze(Lr.internal.getWidth(ur))+" "+ze(Lr.internal.getHeight(ur))+" re"),fr.push("f"),fr.push("q"),fr.push("1 1 "+ze(Lr.internal.getWidth(ur)-2)+" "+ze(Lr.internal.getHeight(ur)-2)+" re"),fr.push("W"),fr.push("n"),fr.push(ze(cr.x1.x)+" "+ze(cr.x1.y)+" m"),fr.push(ze(cr.x2.x)+" "+ze(cr.x2.y)+" l"),fr.push(ze(cr.x4.x)+" "+ze(cr.x4.y)+" m"),fr.push(ze(cr.x3.x)+" "+ze(cr.x3.y)+" l"),fr.push("s"),fr.push("Q"),pr.stream=fr.join(` `),pr},OffPushDown:function(ur){var pr=Ot(ur),cr=[];return cr.push("0.749023 g"),cr.push("0 0 "+ze(Lr.internal.getWidth(ur))+" "+ze(Lr.internal.getHeight(ur))+" re"),cr.push("f"),pr.stream=cr.join(` `),pr}}},createDefaultAppearanceStream:function(ur){var pr=me.internal.getFont(ur.fontName,ur.fontStyle).id,cr=me.__private__.encodeColorString(ur.color);return"/"+pr+" "+ur.fontSize+" Tf "+cr}};Lr.internal={Bezier_C:.551915024494,calculateCross:function(ur){var pr=Lr.internal.getWidth(ur),cr=Lr.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}}}},Lr.internal.getWidth=function(_r){var ur=0;return m(_r)==="object"&&(ur=nt(_r.Rect[2])),ur},Lr.internal.getHeight=function(_r){var ur=0;return m(_r)==="object"&&(ur=nt(_r.Rect[3])),ur};var Qr=we.addField=function(_r){if(er.call(this),!(_r instanceof Tt))throw new Error("Invalid argument passed to jsPDF.addField.");return function(ur){me.internal.acroformPlugin.printedOut&&(me.internal.acroformPlugin.printedOut=!1,me.internal.acroformPlugin.acroFormDictionaryRoot=null),me.internal.acroformPlugin.acroFormDictionaryRoot||er.call(me),me.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(ur)}.call(this,_r),_r.page=me.internal.getCurrentPageInfo().pageNumber,this};we.addButton=function(_r){if(_r instanceof Xt==!1)throw new Error("Invalid argument passed to jsPDF.addButton.");return Qr.call(this,_r)},we.addTextField=function(_r){if(_r instanceof tn==!1)throw new Error("Invalid argument passed to jsPDF.addTextField.");return Qr.call(this,_r)},we.addChoiceField=function(_r){if(_r instanceof ft==!1)throw new Error("Invalid argument passed to jsPDF.addChoiceField.");return Qr.call(this,_r)},m(ve)=="object"&&ve.ChoiceField===void 0&&ve.ListBox===void 0&&ve.ComboBox===void 0&&ve.EditBox===void 0&&ve.Button===void 0&&ve.PushButton===void 0&&ve.RadioButton===void 0&&ve.CheckBox===void 0&&ve.TextField===void 0&&ve.PasswordField===void 0?(ve.ChoiceField=ft,ve.ListBox=Ht,ve.ComboBox=Ft,ve.EditBox=ir,ve.Button=Xt,ve.PushButton=mr,ve.RadioButton=Ar,ve.CheckBox=Fr,ve.TextField=tn,ve.PasswordField=qr,ve.AcroForm={Appearance:Lr}):console.warn("AcroForm-Classes are not populated into global-namespace, because the class-Names exist already."),we.AcroFormChoiceField=ft,we.AcroFormListBox=Ht,we.AcroFormComboBox=Ft,we.AcroFormEditBox=ir,we.AcroFormButton=Xt,we.AcroFormPushButton=mr,we.AcroFormRadioButton=Ar,we.AcroFormCheckBox=Fr,we.AcroFormTextField=tn,we.AcroFormPasswordField=qr,we.AcroFormAppearance=Lr,we.AcroForm={ChoiceField:ft,ListBox:Ht,ComboBox:Ft,EditBox:ir,Button:Xt,PushButton:mr,RadioButton:Ar,CheckBox:Fr,TextField:tn,PasswordField:qr,Appearance:Lr}})((window.tmp=ht).API,typeof window!="undefined"&&window||typeof g!="undefined"&&g),function(we){var ve="addImage_",me={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]]},he=we.getImageFileTypeByImageData=function(ae,pe){var J,ne;pe=pe||"UNKNOWN";var xe,De,Fe,$e="UNKNOWN";for(Fe in we.isArrayBufferView(ae)&&(ae=we.arrayBufferToBinaryString(ae)),me)for(xe=me[Fe],J=0;J>"}),"trns"in pe&&pe.trns.constructor==Array){for(var $e="",vt=0,Wt=pe.trns.length;vt>18]+ne[(258048&pe)>>12]+ne[(4032&pe)>>6]+ne[63&pe];return Fe==1?J+=ne[(252&(pe=xe[$e]))>>2]+ne[(3&pe)<<4]+"==":Fe==2&&(J+=ne[(64512&(pe=xe[$e]<<8|xe[$e+1]))>>10]+ne[(1008&pe)>>4]+ne[(15&pe)<<2]+"="),J},we.createImageInfo=function(ae,pe,J,ne,xe,De,Fe,$e,vt,Wt,$t,Rt,Kt){var Gt={alias:$e,w:pe,h:J,cs:ne,bpc:xe,i:Fe,data:ae};return De&&(Gt.f=De),vt&&(Gt.dp=vt),Wt&&(Gt.trns=Wt),$t&&(Gt.pal=$t),Rt&&(Gt.smask=Rt),Kt&&(Gt.p=Kt),Gt},we.addImage=function(ae,pe,J,ne,xe,De,Fe,$e,vt){var Wt="";if(typeof pe!="string"){var $t=De;De=xe,xe=ne,ne=J,J=pe,pe=$t}if(m(ae)==="object"&&!Pe(ae)&&"imageData"in ae){var Rt=ae;ae=Rt.imageData,pe=Rt.format||pe||"UNKNOWN",J=Rt.x||J||0,ne=Rt.y||ne||0,xe=Rt.w||xe,De=Rt.h||De,Fe=Rt.alias||Fe,$e=Rt.compression||$e,vt=Rt.rotation||Rt.angle||vt}var Kt=this.internal.getFilters();if($e===void 0&&Kt.indexOf("FlateEncode")!==-1&&($e="SLOW"),typeof ae=="string"&&(ae=unescape(ae)),isNaN(J)||isNaN(ne))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var Gt,Qt,Mt,dr,er,st,xt,ut=function(){var pt=this.internal.collections[ve+"images"];return pt||(this.internal.collections[ve+"images"]=pt={},this.internal.events.subscribe("putResources",He),this.internal.events.subscribe("putXobjectDict",ze)),pt}.call(this);if(!((Gt=bt(ae,ut))||(Pe(ae)&&(ae=nt(ae,pe)),((xt=Fe)==null||xt.length===0)&&(Fe=typeof(st=ae)=="string"?we.sHashCode(st):we.isArrayBufferView(st)?we.sHashCode(we.arrayBufferToBinaryString(st)):null),Gt=bt(Fe,ut)))){if(this.isString(ae)&&((Wt=this.convertStringToImageData(ae))!==""||(Wt=we.loadFile(ae))!==void 0)&&(ae=Wt),pe=this.getImageFileTypeByImageData(ae,pe),!Ye(pe))throw new Error("addImage does not support files of type '"+pe+"', please ensure that a plugin for '"+pe+"' support is added.");if(this.supportsArrayBuffer()&&(ae instanceof Uint8Array||(Qt=ae,ae=this.binaryStringToUint8Array(ae))),!(Gt=this["process"+pe.toUpperCase()](ae,(er=0,(dr=ut)&&(er=Object.keys?Object.keys(dr).length:function(pt){var It=0;for(var Tt in pt)pt.hasOwnProperty(Tt)&&It++;return It}(dr)),er),Fe,((Mt=$e)&&typeof Mt=="string"&&(Mt=Mt.toUpperCase()),Mt in we.image_compression?Mt:we.image_compression.NONE),Qt)))throw new Error("An unknown error occurred whilst processing the image")}return function(pt,It,Tt,ft,Ht,Ft,ir,Xt){var mr=function(Qr,_r,ur){return Qr||_r||(_r=Qr=-96),Qr<0&&(Qr=-1*ur.w*72/Qr/this.internal.scaleFactor),_r<0&&(_r=-1*ur.h*72/_r/this.internal.scaleFactor),Qr===0&&(Qr=_r*ur.w/ur.h),_r===0&&(_r=Qr*ur.h/ur.w),[Qr,_r]}.call(this,Tt,ft,Ht),Ar=this.internal.getCoordinateString,Nr=this.internal.getVerticalCoordinateString;if(Tt=mr[0],ft=mr[1],ir[Ft]=Ht,Xt){Xt*=Math.PI/180;var Fr=Math.cos(Xt),tn=Math.sin(Xt),qr=function(_r){return _r.toFixed(4)},Lr=[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(pt),Nr(It+ft),"cm"].join(" ")),this.internal.write(Lr.join(" ")),this.internal.write([Ar(Tt),"0","0",Ar(ft),"0","0","cm"].join(" "))):this.internal.write([Ar(Tt),"0","0",Ar(ft),Ar(pt),Nr(It+ft),"cm"].join(" ")),this.internal.write("/I"+Ht.i+" Do"),this.internal.write("Q")}.call(this,J,ne,xe,De,Gt,Gt.i,ut,vt),this},we.convertStringToImageData=function(ae){var pe,J="";if(this.isString(ae)){var ne;pe=(ne=this.extractImageFromDataUrl(ae))!==null?ne.data:ae;try{J=atob(pe)}catch(xe){throw we.validateStringAsBase64(pe)?new Error("atob-Error in jsPDF.convertStringToImageData "+xe.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertStringToImageData ")}}return J};var Ot=function(pe,J){return pe.subarray(J,J+5)};we.processJPEG=function(ae,pe,J,ne,xe,De){var Fe,$e=this.decode.DCT_DECODE;if(!this.isString(ae)&&!this.isArrayBuffer(ae)&&!this.isArrayBufferView(ae))return null;if(this.isString(ae)&&(Fe=function(vt){var Wt;if(he(vt)!=="JPEG")throw new Error("getJpegSize requires a binary string jpeg file");for(var $t=256*vt.charCodeAt(4)+vt.charCodeAt(5),Rt=4,Kt=vt.length;Rt>",nt.content=xe;var ae=nt.objId+" 0 R";xe="<>";else if(Pe.options.pageNumber)switch(xe="<>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+ve+" 0 R")})}return this},h=ht.API,(c=function(){var ve=void 0;Object.defineProperty(this,"pdf",{get:function(){return ve},set:function(Ye){ve=Ye}});var me=150;Object.defineProperty(this,"width",{get:function(){return me},set:function(Ye){me=isNaN(Ye)||Number.isInteger(Ye)===!1||Ye<0?150:Ye,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=me+1)}});var he=300;Object.defineProperty(this,"height",{get:function(){return he},set:function(Ye){he=isNaN(Ye)||Number.isInteger(Ye)===!1||Ye<0?300:Ye,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=he+1)}});var Re=[];Object.defineProperty(this,"childNodes",{get:function(){return Re},set:function(Ye){Re=Ye}});var He={};Object.defineProperty(this,"style",{get:function(){return He},set:function(Ye){He=Ye}}),Object.defineProperty(this,"parentNode",{get:function(){return!1}})}).prototype.getContext=function(we,ve){var me;if((we=we||"2d")!=="2d")return null;for(me in ve)this.pdf.context2d.hasOwnProperty(me)&&(this.pdf.context2d[me]=ve[me]);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}]),a=ht.API,r={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},o=1,d=function(ve,me,he,Re,He){r={x:ve,y:me,w:he,h:Re,ln:He}},n=function(){return r},l={left:0,top:0,bottom:0},a.setHeaderFunction=function(we){i=we},a.getTextDimensions=function(we,ve){var me=this.table_font_size||this.internal.getFontSize(),he=(this.internal.getFont().fontStyle,(ve=ve||{}).scaleFactor||this.internal.scaleFactor),Re=0,He=0,ze=0;if(typeof we=="string")(Re=this.getStringUnitWidth(we)*me)!=0&&(He=1);else{if(Object.prototype.toString.call(we)!=="[object Array]")throw new Error("getTextDimensions expects text-parameter to be of type String or an Array of Strings.");for(var Ye=0;Ye=this.internal.pageSize.getHeight()-nt.bottom&&(this.cellAddPage(),Pe=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(He,!0)),ve=n().y+n().h,Pe&&(ve=23)}if(Re[0]!==void 0)if(this.printingHeaderRow?this.rect(we,ve,me,he,"FD"):this.rect(we,ve,me,he),ze==="right"){Re instanceof Array||(Re=[Re]);for(var bt=0;bt=2*Math.PI&&(Ft=0,ir=2*Math.PI),this.path.push({type:"arc",x:Tt,y:ft,radius:Ht,startAngle:Ft,endAngle:ir,counterclockwise:Xt})},Pe.prototype.arcTo=function(Tt,ft,Ht,Ft,ir){throw new Error("arcTo not implemented.")},Pe.prototype.rect=function(Tt,ft,Ht,Ft){if(isNaN(Tt)||isNaN(ft)||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,ft),this.lineTo(Tt+Ht,ft),this.lineTo(Tt+Ht,ft+Ft),this.lineTo(Tt,ft+Ft),this.lineTo(Tt,ft),this.lineTo(Tt+Ht,ft),this.lineTo(Tt,ft)},Pe.prototype.fillRect=function(Tt,ft,Ht,Ft){if(isNaN(Tt)||isNaN(ft)||isNaN(Ht)||isNaN(Ft))throw console.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!bt.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,ft,Ht,Ft),this.fill(),ir.hasOwnProperty("lineCap")&&(this.lineCap=ir.lineCap),ir.hasOwnProperty("lineJoin")&&(this.lineJoin=ir.lineJoin)}},Pe.prototype.strokeRect=function(Tt,ft,Ht,Ft){if(isNaN(Tt)||isNaN(ft)||isNaN(Ht)||isNaN(Ft))throw console.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");Ot.call(this)||(this.beginPath(),this.rect(Tt,ft,Ht,Ft),this.stroke())},Pe.prototype.clearRect=function(Tt,ft,Ht,Ft){if(isNaN(Tt)||isNaN(ft)||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,ft,Ht,Ft))},Pe.prototype.save=function(Tt){Tt=typeof Tt!="boolean"||Tt;for(var ft=this.pdf.internal.getCurrentPageInfo().pageNumber,Ht=0;Ht"},u=function(ve){var me,he,Re,He,ze,Ye=String,Pe="length",nt="charCodeAt",bt="slice",Ot="replace";for(ve[bt](-2),ve=ve[bt](0,-2)[Ot](/\s/g,"")[Ot]("z","!!!!!"),Re=[],He=0,ze=(ve+=me="uuuuu"[bt](ve[Pe]%5||5))[Pe];He>24,255&he>>16,255&he>>8,255&he);return function(ae,pe){for(var J=me[Pe];0")!==-1&&(ve=ve.substr(0,ve.indexOf(">"))),ve.length%2&&(ve+="0"),me.test(ve)===!1)return"";for(var he="",Re=0;Re>8&255,he>>16&255,he>>24&255]),ve.length+2),ve=String.fromCharCode.apply(null,He)},t.processDataByFilters=function(we,ve){var me=0,he=we||"",Re=[];for(typeof(ve=ve||[])=="string"&&(ve=[ve]),me=0;me>"),this.internal.out("endobj"),O=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&&O!==void 0&&this.internal.out("/Names <>")}),this},(F=ht.API).events.push(["postPutResources",function(){var we=this,ve=/^(\d+) 0 obj$/;if(0> endobj")}var Ot=we.internal.newObject();for(we.internal.write("<< /Names [ "),he=0;he>","endobj"),we.internal.newObject(),we.internal.write("<< /Dests "+Ot+" 0 R"),we.internal.write(">>","endobj")}}]),F.events.push(["putCatalog",function(){0> \r endobj\r `},we.outline.count_r=function(ve,me){for(var he=0;he>>24&255,pe[ae++]=Pe>>>16&255,pe[ae++]=Pe>>>8&255,pe[ae++]=255&Pe,k.arrayBufferToBinaryString(pe)},z=function(ve,me){var he=Math.LOG2E*Math.log(32768)-8<<4|8,Re=he<<8;return Re|=Math.min(3,(me-1&255)>>1)<<6,Re|=0,[he,255&(Re+=31-Re%31)]},R=function(ve,me){for(var he,Re=1,He=0,ze=ve.length,Ye=0;0>>0},U=function(ve,me,he,Re){for(var He,ze,Ye,Pe=ve.length/me,nt=new Uint8Array(ve.length+Pe),bt=$(),Ot=0;Ot>>1)&255;return ze},W=function(ve,me,he){var Re,He,ze,Ye,Pe=[],nt=0,bt=ve.length;for(Pe[0]=4;nt>>J&255,J+=He.bits;De[$e]=Wt>>>J&255}if(He.bits===16){ne=(Qt=new Uint32Array(He.decodePixels().buffer)).length,xe=new Uint8Array(ne*(32/He.pixelBitlength)*He.colors),De=new Uint8Array(ne*(32/He.pixelBitlength));for(var Wt,$t=1>>0&255,$t&&(xe[vt++]=Wt>>>16&255,Wt=Qt[$e++],xe[vt++]=Wt>>>0&255),De[Rt++]=Wt>>>16&255;pe=8}he!==k.image_compression.NONE&&P()?(we=B(xe,He.width*He.colors,He.colors,he),bt=B(De,He.width,1,he)):(we=xe,bt=De,ae=null)}if(He.colorType===3&&(Ot=this.color_spaces.INDEXED,nt=He.palette,He.transparency.indexed)){var Kt=He.transparency.indexed,Gt=0;for($e=0,ne=Kt.length;$eRe&&(He.push(ve.slice(nt,ze)),Pe=0,nt=ze),Pe+=me[ze],ze++;return nt!==ze&&He.push(ve.slice(nt,ze)),He},Oe=function(ve,me,he){he||(he={});var Re,He,ze,Ye,Pe,nt,bt=[],Ot=[bt],ae=he.textIndent||0,pe=0,J=0,ne=ve.split(" "),xe=Ue.apply(this,[" ",he])[0];if(nt=he.lineIndent===-1?ne[0].length+2:he.lineIndent||0){var De=Array(nt).join(" "),Fe=[];ne.map(function(Wt){1<(Wt=Wt.split(/\s*\n/)).length?Fe=Fe.concat(Wt.map(function($t,Rt){return(Rt&&$t.length?` `:"")+$t})):Fe.push(Wt[0])}),ne=Fe,nt=gt.apply(this,[De,he])}for(ze=0,Ye=ne.length;ze>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=me,this},Ne=ht.API,de=oe=Te="",Ne.addMetadata=function(we,ve){return oe=ve||"http://jspdf.default.namespaceuri/",Te=we,this.internal.events.subscribe("postPutResources",function(){if(Te){var me='',he=unescape(encodeURIComponent('')),Re=unescape(encodeURIComponent(me)),He=unescape(encodeURIComponent(Te)),ze=unescape(encodeURIComponent("")),Ye=unescape(encodeURIComponent("")),Pe=Re.length+He.length+ze.length+he.length+Ye.length;de=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Pe+" >>"),this.internal.write("stream"),this.internal.write(he+Re+He+ze+Ye),this.internal.write("endstream"),this.internal.write("endobj")}else de=""}),this.internal.events.subscribe("putCatalog",function(){de&&this.internal.write("/Metadata "+de+" 0 R")}),this},function(we,ve){var me=we.API,he=me.pdfEscape16=function(ze,Ye){for(var Pe,nt=Ye.metadata.Unicode.widths,bt=["","0","00","000","0000"],Ot=[""],ae=0,pe=ze.length;ae> def /CMapName /Adobe-Identity-UCS def /CMapType 2 def 1 begincodespacerange <0000> endcodespacerange`,bt=[],pe=0,J=(nt=Object.keys(Ye).sort(function(ne,xe){return ne-xe})).length;pe<"+Ot+">");return bt.length&&(ae+=` `+bt.length+` beginbfchar `+bt.join(` `)+` endbfchar `),ae+=`endcmap CMapName currentdict /CMap defineresource pop end end`};me.events.push(["putFont",function(ze){!function(Ye,Pe,nt,bt){if(Ye.metadata instanceof we.API.TTFFont&&Ye.encoding==="Identity-H"){for(var Ot=Ye.metadata.Unicode.widths,ae=Ye.metadata.subset.encode(Ye.metadata.glyIdsUsed,1),pe="",J=0;J>"),Pe("endobj");var Fe=nt();Pe("<<"),Pe("/Type /Font"),Pe("/BaseFont /"+Ye.fontName),Pe("/FontDescriptor "+De+" 0 R"),Pe("/W "+we.API.PDFObject.convert(Ot)),Pe("/CIDToGIDMap /Identity"),Pe("/DW 1000"),Pe("/Subtype /CIDFontType2"),Pe("/CIDSystemInfo"),Pe("<<"),Pe("/Supplement 0"),Pe("/Registry (Adobe)"),Pe("/Ordering ("+Ye.encoding+")"),Pe(">>"),Pe(">>"),Pe("endobj"),Ye.objectNumber=nt(),Pe("<<"),Pe("/Type /Font"),Pe("/Subtype /Type0"),Pe("/ToUnicode "+xe+" 0 R"),Pe("/BaseFont /"+Ye.fontName),Pe("/Encoding /"+Ye.encoding),Pe("/DescendantFonts ["+Fe+" 0 R]"),Pe(">>"),Pe("endobj"),Ye.isAlreadyPutted=!0}}(ze.font,ze.out,ze.newObject,ze.putStream)}]),me.events.push(["putFont",function(ze){!function(Ye,Pe,nt,bt){if(Ye.metadata instanceof we.API.TTFFont&&Ye.encoding==="WinAnsiEncoding"){Ye.metadata.Unicode.widths;for(var Ot=Ye.metadata.rawData,ae="",pe=0;pe>"),Pe("endobj"),Ye.objectNumber=nt(),pe=0;pe>"),Pe("endobj"),Ye.isAlreadyPutted=!0}}(ze.font,ze.out,ze.newObject,ze.putStream)}]);var He=function(Ye){var Pe,nt,bt=Ye.text||"",Ot=Ye.x,ae=Ye.y,pe=Ye.options||{},J=Ye.mutex||{},ne=J.pdfEscape,xe=J.activeFontKey,De=J.fonts,Fe=(J.activeFontSize,""),$e=0,vt="",Wt=De[nt=xe].encoding;if(De[nt].encoding!=="Identity-H")return{text:bt,x:Ot,y:ae,options:pe,mutex:J};for(vt=bt,nt=xe,Object.prototype.toString.call(bt)==="[object Array]"&&(vt=bt[0]),$e=0;$ePe-ae.top-ae.bottom&&he.pagesplit){var De=function(Rt,Kt,Gt,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=he.backgroundColor||"#ffffff",er.fillRect(0,0,Qt,Mt),er.drawImage(Rt,Kt,Gt,Qt,Mt,0,0,Qt,Mt),dr},Fe=function(){for(var $t,Rt,Kt=0,Gt=0,Qt={},Mt=!1;;){var dr;if(Gt=0,Qt.top=Kt!==0?ae.top:me,Qt.left=Kt!==0?ae.left:ve,Mt=(Ye-ae.left-ae.right)*ze=bt.width)break;this.addPage()}else er=[dr=De(bt,0,Kt,$t,Rt),Qt.left,Qt.top,dr.width/ze,dr.height/ze,ne,null,xe],this.addImage.apply(this,er);if((Kt+=Rt)>=bt.height)break;this.addPage()}Re(J,Kt,null,er)}.bind(this);if(bt.nodeName==="CANVAS"){var $e=new Image;$e.onload=Fe,$e.src=bt.toDataURL("image/png"),bt=$e}else Fe()}else{var vt=Math.random().toString(35),Wt=[bt,ve,me,J,pe,ne,vt,xe];this.addImage.apply(this,Wt),Re(J,pe,vt,Wt)}}.bind(this),typeof html2canvas!="undefined"&&!he.rstz)return html2canvas(we,he);if(typeof rasterizeHTML=="undefined")return null;var nt="drawDocument";return typeof we=="string"&&(nt=/^http/.test(we)?"drawURL":"drawHTML"),he.width=he.width||Ye*ze,rasterizeHTML[nt](we,void 0,he).then(function(bt){he.onrendered(bt.image)},function(bt){Re(null,bt)})},function(we){var ve,me,he,Re,He,ze,Ye,Pe,nt,bt,Ot,ae,pe,J,ne,xe,De,Fe,$e,vt;ve=function(){return function(Kt){return Rt.prototype=Kt,new Rt};function Rt(){}}(),bt=function(Kt){var Gt,Qt,Mt,dr,er,st,xt;for(Qt=0,Mt=Kt.length,Gt=void 0,st=dr=!1;!dr&&Qt!==Mt;)(Gt=Kt[Qt]=Kt[Qt].trimLeft())&&(dr=!0),Qt++;for(Qt=Mt-1;Mt&&!st&&Qt!==-1;)(Gt=Kt[Qt]=Kt[Qt].trimRight())&&(st=!0),Qt--;for(er=/\s+$/g,xt=!0,Qt=0;Qt!==Mt;)Kt[Qt]!="\u2028"&&(Gt=Kt[Qt].replace(/\s+/g," "),xt&&(Gt=Gt.trimLeft()),Gt&&(xt=er.test(Gt)),Kt[Qt]=Gt),Qt++;return Kt},ae=function(Kt){var Gt,Qt,Mt;for(Gt=void 0,Qt=(Mt=Kt.split(",")).shift();!Gt&&Qt;)Gt=he[Qt.trim().toLowerCase()],Qt=Mt.shift();return Gt},pe=function(Kt){var Gt;return-1<(Kt=Kt==="auto"?"0px":Kt).indexOf("em")&&!isNaN(Number(Kt.replace("em","")))&&(Kt=18.719*Number(Kt.replace("em",""))+"px"),-1Gt.pdf.margins_doc.top&&(Gt.pdf.addPage(),Gt.y=Gt.pdf.margins_doc.top,Gt.executeWatchFunctions(Mt));var Fr=nt(Mt),tn=Gt.x,qr=12/Gt.pdf.internal.scaleFactor,Lr=(Fr["margin-left"]+Fr["padding-left"])*qr,Qr=(Fr["margin-right"]+Fr["padding-right"])*qr,_r=(Fr["margin-top"]+Fr["padding-top"])*qr,ur=(Fr["margin-bottom"]+Fr["padding-bottom"])*qr;Fr.float!==void 0&&Fr.float==="right"?tn+=Gt.settings.width-Mt.width-Qr:tn+=Lr,Gt.pdf.addImage(Ar,tn,Gt.y+_r,Mt.width,Mt.height),Ar=void 0,Fr.float==="right"||Fr.float==="left"?(Gt.watchFunctions.push(function(cr,fr,xr,Yr){return Gt.y>=fr?(Gt.x+=cr,Gt.settings.width+=xr,!0):!!(Yr&&Yr.nodeType===1&&!Wt[Yr.nodeName]&&Gt.x+Yr.width>Gt.pdf.margins_doc.left+Gt.pdf.margins_doc.width)&&(Gt.x+=cr,Gt.y=fr,Gt.settings.width+=xr,!0)}.bind(this,Fr.float==="left"?-Mt.width-Lr-Qr:0,Gt.y+Mt.height+_r+ur,Mt.width)),Gt.watchFunctions.push(function(cr,fr,xr){return!(Gt.y]*?>/gi,""),pt="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=''),u.close(),s=u.w.frames[0].document,p=s.createElement("div")}catch(w){p=m.createElement("div"),s=m.body}return function(w){var b=[].slice.call(arguments,0);b.unshift(p),s.appendChild(p),p.addBehavior("#default#userData"),p.load(y),w.apply(this,b),s.removeChild(p);return}}},RPvy:function(D,_,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},a);function a(i,r){var o=f.retrieveTargetInfo(h,[y],i);if(o){var d=i.getViewRoot();d&&(h.direction=f.aboveViewRoot(d,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}});var m="sunburstHighlight";g.registerAction({type:m,update:"updateView"},function(h,c){c.eachComponent({mainType:"series",subType:"sunburst",query:h},a);function a(i,r){var o=f.retrieveTargetInfo(h,[m],i);o&&(h.highlight=o.node)}});var v="sunburstUnhighlight";g.registerAction({type:v,update:"updateView"},function(h,c){c.eachComponent({mainType:"series",subType:"sunburst",query:h},a);function a(i,r){h.unhighlight=!0}})},RSch:function(D,_,e){var g=e("IwbS"),f=e("bYtY");function y(h,c,a){g.Group.call(this),this._createPolyline(h,c,a)}var m=y.prototype;m._createPolyline=function(h,c,a){var i=h.getItemLayout(c),r=new g.Polyline({shape:{points:i}});this.add(r),this._updateCommonStl(h,c,a)},m.updateData=function(h,c,a){var i=h.hostModel,r=this.childAt(0),o={shape:{points:h.getItemLayout(c)}};g.updateProps(r,o,i,c),this._updateCommonStl(h,c,a)},m._updateCommonStl=function(h,c,a){var i=this.childAt(0),r=h.getItemModel(c),o=h.getItemVisual(c,"color"),d=a&&a.lineStyle,n=a&&a.hoverLineStyle;(!a||h.hasItemOption)&&(d=r.getModel("lineStyle").getLineStyle(),n=r.getModel("emphasis.lineStyle").getLineStyle()),i.useStyle(f.defaults({strokeNoScale:!0,fill:"none",stroke:o},d)),i.hoverStyle=n,g.setHoverStyle(this)},m.updateLayout=function(h,c){var a=this.childAt(0);a.setShape("points",h.getItemLayout(c))},f.inherits(y,g.Group);var v=y;D.exports=v},RXMa:function(D,_,e){var g=e("y+Vt"),f=g.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(m,v){var h=v.cx,c=v.cy,a=Math.PI*2;m.moveTo(h+v.r,c),m.arc(h,c,v.r,0,a,!1),m.moveTo(h+v.r0,c),m.arc(h,c,v.r0,0,a,!0)}});D.exports=f},RZPm:function(D,_,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var y=f(e("q1tI")),m=g(e("JgUQ")),v=g(e("KQxl")),h=function(i,r){return y.createElement(v.default,Object.assign({},i,{ref:r,icon:m.default}))};h.displayName="FileOutlined";var c=y.forwardRef(h);_.default=c},RlCK:function(D,_,e){var g=e("ProS"),f=e("bYtY");function y(m,v,h){var c={},a=m==="toggleSelected",i;return h.eachComponent("legend",function(r){a&&i!=null?r[i?"select":"unSelect"](v.name):m==="allSelect"||m==="inverseSelect"?r[m]():(r[m](v.name),i=r.isSelected(v.name));var o=r.getData();f.each(o,function(d){var n=d.get("name");if(n===` `||n==="")return;var l=r.isSelected(n);c.hasOwnProperty(n)?c[n]=c[n]&&l:c[n]=l})}),m==="allSelect"||m==="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,_,e){D.exports=e("LSTS")},Rx6q:function(D,_){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(m,v){return g.dataToPoint(m,v)}}}}D.exports=e},"S/Yl":function(D,_,e){var g=e("Zvw2"),f=e("aX7z"),y=e("+TT/"),m=y.getLayoutRect,v=e("bYtY"),h=v.each;function c(i,r,o){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(i,r,o),this.model=i}c.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:c,_init:function(i,r,o){var d=this.dimension,n=new g(d,f.createScaleByModel(i),[0,0],i.get("type"),i.get("position")),l=n.type==="category";n.onBand=l&&i.get("boundaryGap"),n.inverse=i.get("inverse"),n.orient=i.get("orient"),i.axis=n,n.model=i,n.coordinateSystem=this,this._axis=n},update:function(i,r){i.eachSeries(function(o){if(o.coordinateSystem===this){var d=o.getData();h(d.mapDimension(this.dimension,!0),function(n){this._axis.scale.unionExtentFromData(d,n)},this),f.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(i,r){this._rect=m({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:r.getWidth(),height:r.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var i=this._rect,r=this._axis,o=r.isHorizontal(),d=o?[0,i.width]:[0,i.height],n=r.reverse?1:0;r.setExtent(d[n],d[1-n]),this._updateAxisTransform(r,o?i.x:i.y)},_updateAxisTransform:function(i,r){var o=i.getExtent(),d=o[0]+o[1],n=i.isHorizontal();i.toGlobalCoord=n?function(l){return l+r}:function(l){return d-l+r},i.toLocalCoord=n?function(l){return l-r}:function(l){return d-l+r}},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 r=this.getRect(),o=this.getAxis(),d=o.orient;return d==="horizontal"?o.contain(o.toLocalCoord(i[0]))&&i[1]>=r.y&&i[1]<=r.y+r.height:o.contain(o.toLocalCoord(i[1]))&&i[0]>=r.y&&i[0]<=r.y+r.height},pointToData:function(i){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(i[r.orient==="horizontal"?0:1]))]},dataToPoint:function(i){var r=this.getAxis(),o=this.getRect(),d=[],n=r.orient==="horizontal"?0:1;return i instanceof Array&&(i=i[0]),d[n]=r.toGlobalCoord(r.dataToCoord(+i)),d[1-n]=n===0?o.y+o.height/2:o.x+o.width/2,d}};var a=c;D.exports=a},"SA+Z":function(D,_,e){var g=e("wTVA"),f=e("EbDI"),y=e("ZhPi"),m=e("wkBT");function v(h){return g(h)||f(h)||y(h)||m()}D.exports=v},"SA4+":function(D,_,e){var g=e("Tghj"),f=g.__DEV__,y=e("ProS"),m=e("IwbS"),v=e("zYTA"),h=e("bYtY");function c(o,d,n){var l=o[1]-o[0];d=h.map(d,function(u){return{interval:[(u.interval[0]-o[0])/l,(u.interval[1]-o[0])/l]}});var t=d.length,s=0;return function(u){for(var p=s;p=0;p--){var w=d[p].interval;if(w[0]<=u&&u<=w[1]){s=p;break}}return p>=0&&p=d[0]&&l<=d[1]}}function i(o){var d=o.dimensions;return d[0]==="lng"&&d[1]==="lat"}var r=y.extendChartView({type:"heatmap",render:function(o,d,n){var l;d.eachComponent("visualMap",function(s){s.eachTargetSeries(function(u){u===o&&(l=s)})}),this.group.removeAll(),this._incrementalDisplayable=null;var t=o.coordinateSystem;t.type==="cartesian2d"||t.type==="calendar"?this._renderOnCartesianAndCalendar(o,n,0,o.getData().count()):i(t)&&this._renderOnGeo(t,o,l,n)},incrementalPrepareRender:function(o,d,n){this.group.removeAll()},incrementalRender:function(o,d,n,l){var t=d.coordinateSystem;t&&this._renderOnCartesianAndCalendar(d,l,o.start,o.end,!0)},_renderOnCartesianAndCalendar:function(o,d,n,l,t){var s=o.coordinateSystem,u,p;if(s.type==="cartesian2d"){var w=s.getAxis("x"),b=s.getAxis("y");u=w.getBandWidth(),p=b.getBandWidth()}for(var E=this.group,A=o.getData(),S="itemStyle",T="emphasis.itemStyle",L="label",x="emphasis.label",C=o.getModel(S).getItemStyle(["color"]),O=o.getModel(T).getItemStyle(),N=o.getModel(L),F=o.getModel(x),k=s.type,P=k==="cartesian2d"?[A.mapDimension("x"),A.mapDimension("y"),A.mapDimension("value")]:[A.mapDimension("time"),A.mapDimension("value")],B=n;B=0?b=b+A:b=b-A:C>=0?b=b-A:b=b+A}return b}function d(n,l){var t=[],s=g.quadraticSubdivide,u=[[],[],[]],p=[[],[]],w=[];l/=2,n.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 L=A.__original;if(A[2]!=null){if(f.copy(u[0],L[0]),f.copy(u[1],L[2]),f.copy(u[2],L[1]),S&&S!=="none"){var x=m(b.node1),C=o(u,L[0],x*l);s(u[0][0],u[1][0],u[2][0],C,t),u[0][0]=t[3],u[1][0]=t[4],s(u[0][1],u[1][1],u[2][1],C,t),u[0][1]=t[3],u[1][1]=t[4]}if(T&&T!=="none"){var x=m(b.node2),C=o(u,L[1],x*l);s(u[0][0],u[1][0],u[2][0],C,t),u[1][0]=t[1],u[2][0]=t[2],s(u[0][1],u[1][1],u[2][1],C,t),u[1][1]=t[1],u[2][1]=t[2]}f.copy(A[0],u[0]),f.copy(A[1],u[2]),f.copy(A[2],u[1])}else{if(f.copy(p[0],L[0]),f.copy(p[1],L[1]),f.sub(w,p[1],p[0]),f.normalize(w,w),S&&S!=="none"){var x=m(b.node1);f.scaleAndAdd(p[0],p[0],w,x*l)}if(T&&T!=="none"){var x=m(b.node2);f.scaleAndAdd(p[1],p[1],w,-x*l)}f.copy(A[0],p[0]),f.copy(A[1],p[1])}})}D.exports=d},SJMd:function(D,_){/** * @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,m,v;window.PR_SHOULD_USE_CONTINUATION=!0;var h,c;(function(){var a=window,i=["break,continue,do,else,for,if,return,while"],r=[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"],o=[r,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],d=[o,"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"],n=[o,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],l=[o,"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=[o,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],u="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",p=[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=[d,l,n,s,u,p,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",L="com",x="typ",C="lit",O="pun",N="pln",F="tag",k="dec",P="src",B="atn",z="atv",R="nocode",U="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function j(ce){for(var Y=0,K=!1,Q=!1,ye=0,ue=ce.length;ye122||(Ve<65||ot>90||Dt.push([Math.max(65,ot)|32,Math.min(Ve,90)|32]),Ve<97||ot>122||Dt.push([Math.max(97,ot)&~32,Math.min(Ve,122)&~32]))}}Dt.sort(function(qe,be){return qe[0]-be[0]||be[1]-qe[1]});for(var se=[],re=[],Xe=0;Xeit[0]&&(it[1]+1>it[0]&&At.push("-"),At.push(de(it[1])))}return At.push("]"),At.join("")}function Ge(Et){for(var Be=Et.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")),Dt=Be.length,Ke=[],At=0,Xe=0;At=2&&ot==="["?Be[At]=Le(et):ot!=="\\"&&(Be[At]=et.replace(/[a-zA-Z]/g,function(re){var it=re.charCodeAt(0);return"["+String.fromCharCode(it&~32,it|32)+"]"}))}return Be.join("")}for(var ht=[],ye=0,ue=ce.length;ye=0;)K[ht.charAt(Et)]=Ge;var Be=Ge[1],Dt=""+Be;oe.hasOwnProperty(Dt)||(Te.push(Be),oe[Dt]=null)}Te.push(/[\0-\uffff]/),Q=j(Te)})();var ye=Y.length,ue=function Ne(Te){for(var oe=Te.sourceCode,de=Te.basePos,Le=Te.sourceNode,Ge=[de,N],ht=0,Et=oe.match(Q)||[],Be={},Dt=0,Ke=Et.length;Dt=5&&Xe.substring(0,5)==="lang-",tt&&!(et&&typeof et[1]=="string")&&(tt=!1,Xe=P),tt||(Be[At]=Xe)}var se=ht;if(ht+=At.length,!tt)Ge.push(de+se,Xe);else{var re=et[1],it=At.indexOf(re),qe=it+re.length;et[2]&&(qe=At.length-et[2].length,it=qe-re.length);var be=Xe.substring(5);V(Le,de+se,At.substring(0,it),Ne,Ge),V(Le,de+se+it,re,Ue(be,re),Ge),V(Le,de+se+qe,At.substring(qe),Ne,Ge)}}Te.decorations=Ge};return ue}function $(ce){var Y=[],K=[];ce.tripleQuotedStrings?Y.push([S,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ce.multiLineStrings?Y.push([S,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Y.push([S,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ce.verbatimStrings&&K.push([S,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Q=ce.hashComments;Q&&(ce.cStyleComments?(Q>1?Y.push([L,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Y.push([L,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),K.push([S,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Y.push([L,/^#[^\r\n]*/,null,"#"])),ce.cStyleComments&&(K.push([L,/^\/\/[^\r\n]*/,null]),K.push([L,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ye=ce.regexLiterals;if(ye){var ue=ye>1?"":` \r`,Ne=ue?".":"[\\S\\s]",Te="/(?=[^/*"+ue+"])(?:[^/\\x5B\\x5C"+ue+"]|\\x5C"+Ne+"|\\x5B(?:[^\\x5C\\x5D"+ue+"]|\\x5C"+Ne+")*(?:\\x5D|$))+/";K.push(["lang-regex",RegExp("^"+U+"("+Te+")")])}var oe=ce.types;oe&&K.push([x,oe]);var de=(""+ce.keywords).replace(/^ | $/g,"");de.length&&K.push([T,new RegExp("^(?:"+de.replace(/[\s,]+/g,"|")+")\\b"),null]),Y.push([N,/^\s+/,null,` \r \xA0`]);var Le="^.[^\\s\\w.$@'\"`/\\\\]*";return ce.regexLiterals&&(Le+="(?!s*/)"),K.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],[O,new RegExp(Le),null]),G(Y,K)}var ge=$({keywords:E,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function q(ce,Y,K){for(var Q=/(?:^|\s)nocode(?:\s|$)/,ye=/\r\n?|\n/,ue=ce.ownerDocument,Ne=ue.createElement("li");ce.firstChild;)Ne.appendChild(ce.firstChild);var Te=[Ne];function oe(Be){var Dt=Be.nodeType;if(Dt==1&&!Q.test(Be.className))if(Be.nodeName==="br")de(Be),Be.parentNode&&Be.parentNode.removeChild(Be);else for(var Ke=Be.firstChild;Ke;Ke=Ke.nextSibling)oe(Ke);else if((Dt==3||Dt==4)&&K){var At=Be.nodeValue,Xe=At.match(ye);if(Xe){var et=At.substring(0,Xe.index);Be.nodeValue=et;var tt=At.substring(Xe.index+Xe[0].length);if(tt){var ot=Be.parentNode;ot.insertBefore(ue.createTextNode(tt),Be.nextSibling)}de(Be),et||Be.parentNode.removeChild(Be)}}}function de(Be){for(;!Be.nextSibling;)if(Be=Be.parentNode,!Be)return;function Dt(Xe,et){var tt=et?Xe.cloneNode(!1):Xe,ot=Xe.parentNode;if(ot){var Ve=Dt(ot,1),se=Xe.nextSibling;Ve.appendChild(tt);for(var re=se;re;re=se)se=re.nextSibling,Ve.appendChild(re)}return tt}for(var Ke=Dt(Be.nextSibling,0),At;(At=Ke.parentNode)&&At.nodeType===1;)Ke=At;Te.push(Ke)}for(var Le=0;Le=ot&&(oe+=2),ue>=Ve&&(Ge+=2)}}finally{At&&(At.style.display=Xe)}}var Ce={};function Ae(ce,Y){for(var K=Y.length;--K>=0;){var Q=Y[K];Ce.hasOwnProperty(Q)?a.console&&console.warn("cannot override language handler %s",Q):Ce[Q]=ce}}function Ue(ce,Y){return ce&&Ce.hasOwnProperty(ce)||(ce=/^\s*]*(?:>|$)/],[L,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[O,/^(?:<[%?]|[%?]>)/],["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"]),Ae(G([[N,/^[\s]+/,null,` \r `],[z,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[F,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[B,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[O,/^[=<>\/]+/],["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"]),Ae(G([],[[z,/^[\s\S]+/]]),["uq.val"]),Ae($({keywords:d,hashComments:!0,cStyleComments:!0,types:A}),["c","cc","cpp","cxx","cyc","m"]),Ae($({keywords:"null,true,false"}),["json"]),Ae($({keywords:l,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:A}),["cs"]),Ae($({keywords:n,cStyleComments:!0}),["java"]),Ae($({keywords:b,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ae($({keywords:p,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ae($({keywords:u,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ae($({keywords:w,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ae($({keywords:s,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ae($({keywords:t,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ae(G([],[[S,/^[\s\S]+/]]),["regex"]);function Qe(ce){var Y=ce.langExtension;try{var K=H(ce.sourceNode,ce.pre),Q=K.sourceCode;ce.sourceCode=Q,ce.spans=K.spans,ce.basePos=0,Ue(Y,Q)(ce),Se(ce)}catch(ye){a.console&&console.log(ye&&ye.stack||ye)}}function gt(ce,Y,K){var Q=K||!1,ye=Y||null,ue=document.createElement("div");ue.innerHTML="
"+ce+"
",ue=ue.firstChild,Q&&q(ue,Q,!0);var Ne={langExtension:ye,numberLines:Q,sourceNode:ue,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Qe(Ne),ue.innerHTML}function _e(ce,Y){var K=Y||document.body,Q=K.ownerDocument||document;function ye(tt){return K.getElementsByTagName(tt)}for(var ue=[ye("pre"),ye("code"),ye("xmp")],Ne=[],Te=0;Te=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,_,e){"use strict";var g=e("pVnL"),f=e.n(g),y=e("lSNA"),m=e.n(y),v=e("q1tI"),h=e("rePB"),c=e("ODXe"),a=e("Ff2n"),i=e("TSYQ"),r=e.n(i),o=e("6cGi"),d=e("4IlW"),n=v.forwardRef(function(T,L){var x,C=T.prefixCls,O=C===void 0?"rc-switch":C,N=T.className,F=T.checked,k=T.defaultChecked,P=T.disabled,B=T.loadingIcon,z=T.checkedChildren,R=T.unCheckedChildren,U=T.onClick,j=T.onChange,H=T.onKeyDown,V=Object(a.a)(T,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),X=Object(o.a)(!1,{value:F,defaultValue:k}),W=Object(c.a)(X,2),G=W[0],$=W[1];function ge(Ae,Ue){var Qe=G;return P||(Qe=Ae,$(Qe),j==null||j(Qe,Ue)),Qe}function q(Ae){Ae.which===d.a.LEFT?ge(!1,Ae):Ae.which===d.a.RIGHT&&ge(!0,Ae),H==null||H(Ae)}function Se(Ae){var Ue=ge(!G,Ae);U==null||U(Ue,Ae)}var Ce=r()(O,N,(x={},Object(h.a)(x,"".concat(O,"-checked"),G),Object(h.a)(x,"".concat(O,"-disabled"),P),x));return v.createElement("button",Object.assign({},V,{type:"button",role:"switch","aria-checked":G,disabled:P,className:Ce,ref:L,onKeyDown:q,onClick:Se}),B,v.createElement("span",{className:"".concat(O,"-inner")},G?z:R))});n.displayName="Switch";var l=n,t=e("gZBC"),s=e.n(t),u=e("g0mS"),p=e("H84U"),w=e("3Nzz"),b=e("uaoM"),E=function(T,L){var x={};for(var C in T)Object.prototype.hasOwnProperty.call(T,C)&&L.indexOf(C)<0&&(x[C]=T[C]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,C=Object.getOwnPropertySymbols(T);O3?1.4:w>1?1.2:1.1,S=p>0?A:1/A;o(this,"zoom","zoomOnMouseWheel",t,{scale:S,originX:b,originY:E})}if(u){var T=Math.abs(p),L=(p>0?1:-1)*(T>3?.4:T>1?.15:.05);o(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:L,originX:b,originY:E})}}function r(t){if(m.isTaken(this._zr,"globalPan"))return;var s=t.pinchScale>1?1.1:1/1.1;o(this,"zoom",null,t,{scale:s,originX:t.pinchX,originY:t.pinchY})}function o(t,s,u,p,w){t.pointerChecker&&t.pointerChecker(p,w.originX,w.originY)&&(y.stop(p.event),d(t,s,u,p,w))}function d(t,s,u,p,w){w.isAvailableBehavior=g.bind(n,null,u,p),t.trigger(s,w)}function n(t,s,u){var p=u[t];return!t||p&&(!g.isString(p)||s.event[p+"Key"])}var l=v;D.exports=l},SgaC:function(D,_,e){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.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(o.rQwait("RRE",4+8))return!1;var t=o.rQshiftBytes(4),s=o.rQshift16(),u=o.rQshift16(),p=o.rQshift16(),w=o.rQshift16();d.fillRect(c+s,a+u,p,w,t),this._subrects--}return!0}}]),v}();_.default=m},Sj0X:function(D,_,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var y=f(e("q1tI")),m=g(e("XuBP")),v=g(e("KQxl")),h=function(i,r){return y.createElement(v.default,Object.assign({},i,{ref:r,icon:m.default}))};h.displayName="DownOutlined";var c=y.forwardRef(h);_.default=c},Sj9i:function(D,_,e){var g=e("QBsz"),f=g.create,y=g.distSquare,m=Math.pow,v=Math.sqrt,h=1e-8,c=1e-4,a=v(3),i=1/3,r=f(),o=f(),d=f();function n(C){return C>-h&&Ch||C<-h}function t(C,O,N,F,k){var P=1-k;return P*P*(P*C+3*k*O)+k*k*(k*F+3*P*N)}function s(C,O,N,F,k){var P=1-k;return 3*(((O-C)*P+2*(N-O)*k)*P+(F-N)*k*k)}function u(C,O,N,F,k,P){var B=F+3*(O-N)-C,z=3*(N-O*2+C),R=3*(O-C),U=C-k,j=z*z-3*B*R,H=z*R-9*B*U,V=R*R-3*z*U,X=0;if(n(j)&&n(H))if(n(z))P[0]=0;else{var W=-R/z;W>=0&&W<=1&&(P[X++]=W)}else{var G=H*H-4*j*V;if(n(G)){var $=H/j,W=-z/B+$,ge=-$/2;W>=0&&W<=1&&(P[X++]=W),ge>=0&&ge<=1&&(P[X++]=ge)}else if(G>0){var q=v(G),Se=j*z+1.5*B*(-H+q),Ce=j*z+1.5*B*(-H-q);Se<0?Se=-m(-Se,i):Se=m(Se,i),Ce<0?Ce=-m(-Ce,i):Ce=m(Ce,i);var W=(-z-(Se+Ce))/(3*B);W>=0&&W<=1&&(P[X++]=W)}else{var Ae=(2*j*z-3*B*H)/(2*v(j*j*j)),Ue=Math.acos(Ae)/3,Qe=v(j),gt=Math.cos(Ue),W=(-z-2*Qe*gt)/(3*B),ge=(-z+Qe*(gt+a*Math.sin(Ue)))/(3*B),_e=(-z+Qe*(gt-a*Math.sin(Ue)))/(3*B);W>=0&&W<=1&&(P[X++]=W),ge>=0&&ge<=1&&(P[X++]=ge),_e>=0&&_e<=1&&(P[X++]=_e)}}return X}function p(C,O,N,F,k){var P=6*N-12*O+6*C,B=9*O+3*F-3*C-9*N,z=3*O-3*C,R=0;if(n(B)){if(l(P)){var U=-z/P;U>=0&&U<=1&&(k[R++]=U)}}else{var j=P*P-4*B*z;if(n(j))k[0]=-P/(2*B);else if(j>0){var H=v(j),U=(-P+H)/(2*B),V=(-P-H)/(2*B);U>=0&&U<=1&&(k[R++]=U),V>=0&&V<=1&&(k[R++]=V)}}return R}function w(C,O,N,F,k,P){var B=(O-C)*k+C,z=(N-O)*k+O,R=(F-N)*k+N,U=(z-B)*k+B,j=(R-z)*k+z,H=(j-U)*k+U;P[0]=C,P[1]=B,P[2]=U,P[3]=H,P[4]=H,P[5]=j,P[6]=R,P[7]=F}function b(C,O,N,F,k,P,B,z,R,U,j){var H,V=.005,X=Infinity,W,G,$,ge;r[0]=R,r[1]=U;for(var q=0;q<1;q+=.05)o[0]=t(C,N,k,B,q),o[1]=t(O,F,P,z,q),$=y(r,o),$=0&&$=0&&U<=1&&(k[R++]=U)}}else{var j=B*B-4*P*z;if(n(j)){var U=-B/(2*P);U>=0&&U<=1&&(k[R++]=U)}else if(j>0){var H=v(j),U=(-B+H)/(2*P),V=(-B-H)/(2*P);U>=0&&U<=1&&(k[R++]=U),V>=0&&V<=1&&(k[R++]=V)}}return R}function T(C,O,N){var F=C+N-2*O;return F===0?.5:(C-O)/F}function L(C,O,N,F,k){var P=(O-C)*F+C,B=(N-O)*F+O,z=(B-P)*F+P;k[0]=C,k[1]=P,k[2]=z,k[3]=z,k[4]=B,k[5]=N}function x(C,O,N,F,k,P,B,z,R){var U,j=.005,H=Infinity;r[0]=B,r[1]=z;for(var V=0;V<1;V+=.05){o[0]=E(C,N,k,V),o[1]=E(O,F,P,V);var X=y(r,o);X=0&&X=0;--b)if(w[b]===p)return!0;return!1}),u):null:u[0]},n.prototype.update=function(t,s){if(!t)return;var u=this.getDefs(!1);if(t[this._domName]&&u.contains(t[this._domName]))typeof s=="function"&&s(t);else{var p=this.add(t);p&&(t[this._domName]=p)}},n.prototype.addDom=function(t){var s=this.getDefs(!0);s.appendChild(t)},n.prototype.removeDom=function(t){var s=this.getDefs(!1);s&&t[this._domName]&&(s.removeChild(t[this._domName]),t[this._domName]=null)},n.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var s=[];return y.each(this._tagNames,function(u){var p=t.getElementsByTagName(u);s=s.concat([].slice.call(p))}),s},n.prototype.markAllUnused=function(){var t=this.getDoms(),s=this;y.each(t,function(u){u[s._markLabel]=o})},n.prototype.markUsed=function(t){t&&(t[this._markLabel]=d)},n.prototype.removeUnused=function(){var t=this.getDefs(!1);if(!t)return;var s=this.getDoms(),u=this;y.each(s,function(p){p[u._markLabel]!==d&&t.removeChild(p)})},n.prototype.getSvgProxy=function(t){return t instanceof m?a:t instanceof v?i:t instanceof h?r:a},n.prototype.getTextSvgElement=function(t){return t.__textSvgEl},n.prototype.getSvgElement=function(t){return t.__svgEl};var l=n;D.exports=l},Swgg:function(D,_,e){var g=e("fc+c"),f=g.extend({type:"dataZoom.select"});D.exports=f},Sxd8:function(D,_,e){var g=e("ZCgT");function f(y){var m=g(y),v=m%1;return m===m?v?m-v:m:0}D.exports=f},T1rO:function(D,_,e){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var g=f(e("zdCA"));function f(m){return m&&m.__esModule?m:{default:m}}var y=g;_.default=y,D.exports=y},T4UG:function(D,_,e){var g=e("Tghj"),f=g.__DEV__,y=e("bYtY"),m=e("ItGF"),v=e("7aKB"),h=v.formatTime,c=v.encodeHTML,a=v.addCommas,i=v.getTooltipMarker,r=e("4NO4"),o=e("bLfw"),d=e("5Hur"),n=e("OKJ2"),l=e("+TT/"),t=l.getLayoutParams,s=l.mergeLayoutParam,u=e("9H2F"),p=u.createTask,w=e("D5nY"),b=w.prepareSource,E=w.getSource,A=e("KxfA"),S=A.retrieveRawValue,T=r.makeInner(),L=o.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(R,U,j,H){this.seriesIndex=this.componentIndex,this.dataTask=p({count:O,reset:N}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(R,j),b(this);var V=this.getInitialData(R,j);k(V,this),this.dataTask.context.data=V,T(this).dataBeforeProcessed=V,x(this)},mergeDefaultAndTheme:function(R,U){var j=this.layoutMode,H=j?t(R):{},V=this.subType;o.hasClass(V)&&(V+="Series"),y.merge(R,U.getTheme().get(this.subType)),y.merge(R,this.getDefaultOption()),r.defaultEmphasis(R,"label",["show"]),this.fillDataTextStyle(R.data),j&&s(R,H,j)},mergeOption:function(R,U){R=y.merge(this.option,R,!0),this.fillDataTextStyle(R.data);var j=this.layoutMode;j&&s(this.option,R,j),b(this);var H=this.getInitialData(R,U);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 U=["show"],j=0;j":` `,W=H==="richText",G={},$=0;function ge(ue){var Ne=y.reduce(ue,function(Ge,ht,Et){var Be=Se.getDimensionInfo(Et);return Ge|=Be&&Be.tooltip!==!1&&Be.displayName!=null},0),Te=[];Ce.length?y.each(Ce,function(Ge){oe(S(Se,R,Ge),Ge)}):y.each(ue,oe);function oe(Ge,ht){var Et=Se.getDimensionInfo(ht);if(!Et||Et.otherDims.tooltip===!1)return;var Be=Et.type,Dt="sub"+V.seriesIndex+"at"+$,Ke=i({color:gt,type:"subItem",renderMode:H,markerId:Dt}),At=typeof Ke=="string"?Ke:Ke.content,Xe=(Ne?At+c(Et.displayName||"-")+": ":"")+c(Be==="ordinal"?Ge+"":Be==="time"?U?"":h("yyyy/MM/dd hh:mm:ss",Ge):a(Ge));Xe&&Te.push(Xe),W&&(G[Dt]=gt,++$)}var de=Ne?W?` `:"
":"",Le=de+Te.join(de||", ");return{renderMode:H,content:Le,style:G}}function q(ue){return{renderMode:H,content:c(a(ue)),style:G}}var Se=this.getData(),Ce=Se.mapDimension("defaultedTooltip",!0),Ae=Ce.length,Ue=this.getRawValue(R),Qe=y.isArray(Ue),gt=Se.getItemVisual(R,"color");y.isObject(gt)&>.colorStops&&(gt=(gt.colorStops[0]||{}).color),gt=gt||"transparent";var _e=Ae>1||Qe&&!Ae?ge(Ue):q(Ae?S(Se,R,Ce[0]):Qe?Ue[0]:Ue),Oe=_e.content,lt=V.seriesIndex+"at"+$,ce=i({color:gt,type:"item",renderMode:H,markerId:lt});G[lt]=gt,++$;var Y=Se.getName(R),K=this.name;r.isNameSpecified(this)||(K=""),K=K?c(K)+(U?": ":X):"";var Q=typeof ce=="string"?ce:ce.content,ye=U?Q+K+Oe:K+Q+(Y?c(Y)+": "+Oe:Oe);return{html:ye,markers:G}},isAnimationEnabled:function(){if(m.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,U,j){var H=this.ecModel,V=d.getColorFromPalette.call(this,R,U,j);return V||(V=H.getColorFromPalette(R,U,j)),V},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(L,n),y.mixin(L,d);function x(R){var U=R.name;r.isNameSpecified(R)||(R.name=C(R)||U)}function C(R){var U=R.getRawData(),j=U.mapDimension("seriesName",!0),H=[];return y.each(j,function(V){var X=U.getDimensionInfo(V);X.displayName&&H.push(X.displayName)}),H.join(" ")}function O(R){return R.model.getRawData().count()}function N(R){var U=R.model;return U.setData(U.getRawData().cloneShallow()),F}function F(R,U){U.outputData&&R.end>U.outputData.count()&&U.model.getRawData().cloneShallow(U.outputData)}function k(R,U){y.each(R.CHANGABLE_METHODS,function(j){R.wrapMethod(j,y.curry(P,U))})}function P(R){var U=B(R);U&&U.setOutputEnd(this.count())}function B(R){var U=(R.ecModel||{}).scheduler,j=U&&U.getPipeline(R.uid);if(j){var H=j.currentTask;if(H){var V=H.agentStubMap;V&&(H=V.get(R.uid))}return H}}var z=L;D.exports=z},T6xi:function(D,_,e){var g=e("YgsL"),f=e("nCxF");function y(m,v,h){var c=v.points,a=v.smooth;if(c&&c.length>=2){if(a&&a!=="spline"){var i=f(c,a,h,v.smoothConstraint);m.moveTo(c[0][0],c[0][1]);for(var r=c.length,o=0;o<(h?r:r-1);o++){var d=i[o*2],n=i[o*2+1],l=c[(o+1)%r];m.bezierCurveTo(d[0],d[1],n[0],n[1],l[0],l[1])}}else{a==="spline"&&(c=g(c,h)),m.moveTo(c[0][0],c[0][1]);for(var o=1,t=c.length;o0?m:v)}function n(l,t){return t.get(l>0?f:y)}}};D.exports=h},TWL2:function(D,_,e){var g=e("IwbS"),f=e("bYtY"),y=e("6Ic6");function m(i,r){g.Group.call(this);var o=new g.Polygon,d=new g.Polyline,n=new g.Text;this.add(o),this.add(d),this.add(n),this.highDownOnUpdate=function(l,t){t==="emphasis"?(d.ignore=d.hoverIgnore,n.ignore=n.hoverIgnore):(d.ignore=d.normalIgnore,n.ignore=n.normalIgnore)},this.updateData(i,r,!0)}var v=m.prototype,h=["itemStyle","opacity"];v.updateData=function(i,r,o){var d=this.childAt(0),n=i.hostModel,l=i.getItemModel(r),t=i.getItemLayout(r),s=i.getItemModel(r).get(h);s=s==null?1:s,d.useStyle({}),o?(d.setShape({points:t.points}),d.setStyle({opacity:0}),g.initProps(d,{style:{opacity:s}},n,r)):g.updateProps(d,{style:{opacity:s},shape:{points:t.points}},n,r);var u=l.getModel("itemStyle"),p=i.getItemVisual(r,"color");d.setStyle(f.defaults({lineJoin:"round",fill:p},u.getItemStyle(["opacity"]))),d.hoverStyle=u.getModel("emphasis").getItemStyle(),this._updateLabel(i,r),g.setHoverStyle(this)},v._updateLabel=function(i,r){var o=this.childAt(1),d=this.childAt(2),n=i.hostModel,l=i.getItemModel(r),t=i.getItemLayout(r),s=t.label,u=i.getItemVisual(r,"color");g.updateProps(o,{shape:{points:s.linePoints||s.linePoints}},n,r),g.updateProps(d,{style:{x:s.x,y:s.y}},n,r),d.attr({rotation:s.rotation,origin:[s.x,s.y],z2:10});var p=l.getModel("label"),w=l.getModel("emphasis.label"),b=l.getModel("labelLine"),E=l.getModel("emphasis.labelLine"),u=i.getItemVisual(r,"color");g.setLabelStyle(d.style,d.hoverStyle={},p,w,{labelFetcher:i.hostModel,labelDataIndex:r,defaultText:i.getName(r),autoColor:u,useInsideStyle:!!s.inside},{textAlign:s.textAlign,textVerticalAlign:s.verticalAlign}),d.ignore=d.normalIgnore=!p.get("show"),d.hoverIgnore=!w.get("show"),o.ignore=o.normalIgnore=!b.get("show"),o.hoverIgnore=!E.get("show"),o.setStyle({stroke:u}),o.setStyle(b.getModel("lineStyle").getLineStyle()),o.hoverStyle=E.getModel("lineStyle").getLineStyle()},f.inherits(m,g.Group);var c=y.extend({type:"funnel",render:function(i,r,o){var d=i.getData(),n=this._data,l=this.group;d.diff(n).add(function(t){var s=new m(d,t);d.setItemGraphicEl(t,s),l.add(s)}).update(function(t,s){var u=n.getItemGraphicEl(s);u.updateData(d,t),l.add(u),d.setItemGraphicEl(t,u)}).remove(function(t){var s=n.getItemGraphicEl(t);l.remove(s)}).execute(),this._data=d},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),a=c;D.exports=a},TYVI:function(D,_,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}}}),m=y;D.exports=m},Tghj:function(D,_,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;_.__DEV__=y}).call(this,e("yLpj"))},ThAp:function(D,_,e){var g=e("bYtY"),f=e("5GtS"),y=e("T4UG"),m=e("7aKB"),v=m.encodeHTML,h=m.addCommas,c=e("cCMj"),a=e("KxfA"),i=a.retrieveRawAttr,r=e("W4dC"),o=e("D5nY"),d=o.makeSeriesEncodeForNameBased,n=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(d,this)}),u=s.mapDimension("value"),p=g.createHashMap(),w=[],b=[],E=0,A=s.count();E"+v(p+" : "+u)},getTooltipPosition:function(t){if(t!=null){var s=this.getData().getName(t),u=this.coordinateSystem,p=u.getRegion(s);return p&&u.dataToPoint(p.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(n,c);var l=n;D.exports=l},TkdX:function(D,_,e){var g=e("bYtY"),f=e("IwbS"),y={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},m=2,v=4;function h(n,l,t){f.Group.call(this);var s=new f.Sector({z2:m});s.seriesIndex=l.seriesIndex;var u=new f.Text({z2:v,silent:n.getModel("label").get("silent")});this.add(s),this.add(u),this.updateData(!0,n,"normal",l,t);function p(){u.ignore=u.hoverIgnore}function w(){u.ignore=u.normalIgnore}this.on("emphasis",p).on("normal",w).on("mouseover",p).on("mouseout",w)}var c=h.prototype;c.updateData=function(n,l,t,s,u){this.node=l,l.piece=this,s=s||this._seriesModel,u=u||this._ecModel;var p=this.childAt(0);p.dataIndex=l.dataIndex;var w=l.getModel(),b=l.getLayout(),E=g.extend({},b);E.label=null;var A=i(l,s,u);d(l,s,A);var S=w.getModel("itemStyle").getItemStyle(),T;if(t==="normal")T=S;else{var L=w.getModel(t+".itemStyle").getItemStyle();T=g.merge(L,S)}T=g.defaults({lineJoin:"bevel",fill:T.fill||A},T),n?(p.setShape(E),p.shape.r=b.r0,f.updateProps(p,{shape:{r:b.r}},s,l.dataIndex),p.useStyle(T)):typeof T.fill=="object"&&T.fill.type||typeof p.style.fill=="object"&&p.style.fill.type?(f.updateProps(p,{shape:E},s),p.useStyle(T)):f.updateProps(p,{shape:E,style:T},s),this._updateLabel(s,A,t);var x=w.getShallow("cursor");if(x&&p.attr("cursor",x),n){var C=s.getShallow("highlightPolicy");this._initEvents(p,l,s,C)}this._seriesModel=s||this._seriesModel,this._ecModel=u||this._ecModel,f.setHoverStyle(this)},c.onEmphasis=function(n){var l=this;this.node.hostTree.root.eachNode(function(t){t.piece&&(l.node===t?t.piece.updateData(!1,t,"emphasis"):o(t,l.node,n)?t.piece.childAt(0).trigger("highlight"):n!==y.NONE&&t.piece.childAt(0).trigger("downplay"))})},c.onNormal=function(){this.node.hostTree.root.eachNode(function(n){n.piece&&n.piece.updateData(!1,n,"normal")})},c.onHighlight=function(){this.updateData(!1,this.node,"highlight")},c.onDownplay=function(){this.updateData(!1,this.node,"downplay")},c._updateLabel=function(n,l,t){var s=this.node.getModel(),u=s.getModel("label"),p=t==="normal"||t==="emphasis"?u:s.getModel(t+".label"),w=s.getModel("emphasis.label"),b=g.retrieve(n.getFormattedLabel(this.node.dataIndex,t,null,null,"label"),this.node.name);U("show")===!1&&(b="");var E=this.node.getLayout(),A=p.get("minAngle");A==null&&(A=u.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"?(O=(E.r+E.r0)/2,k="center"):k==="left"?(O=E.r0+F,L>Math.PI/2&&(k="right")):k==="right"&&(O=E.r-F,L>Math.PI/2&&(k="left")),T.attr("style",{text:b,textAlign:k,textVerticalAlign:U("verticalAlign")||"middle",opacity:U("opacity")});var P=O*x+E.cx,B=O*C+E.cy;T.attr("position",[P,B]);var z=U("rotate"),R=0;z==="radial"?(R=-L,R<-Math.PI/2&&(R+=Math.PI)):z==="tangential"?(R=Math.PI/2-L,R>Math.PI/2?R-=Math.PI:R<-Math.PI/2&&(R+=Math.PI)):typeof z=="number"&&(R=z*Math.PI/180),T.attr("rotation",R);function U(j){var H=p.get(j);return H==null?u.get(j):H}},c._initEvents=function(n,l,t,s){n.off("mouseover").off("mouseout").off("emphasis").off("normal");var u=this,p=function(){u.onEmphasis(s)},w=function(){u.onNormal()},b=function(){u.onDownplay()},E=function(){u.onHighlight()};t.isAnimationEnabled()&&n.on("mouseover",p).on("mouseout",w).on("emphasis",p).on("normal",w).on("downplay",b).on("highlight",E)},g.inherits(h,f.Group);var a=h;function i(n,l,t){var s=n.getVisual("color"),u=n.getVisual("visualMeta");(!u||u.length===0)&&(s=null);var p=n.getModel("itemStyle").get("color");if(p)return p;if(s)return s;if(n.depth===0)return t.option.color[0];var w=t.option.color.length;return p=t.option.color[r(n)%w],p}function r(n){for(var l=n;l.depth>1;)l=l.parentNode;var t=n.getAncestors()[0];return g.indexOf(t.children,l)}function o(n,l,t){return t===y.NONE?!1:t===y.SELF?n===l:t===y.ANCESTOR?n===l||n.isAncestorOf(l):n===l||n.isDescendantOf(l)}function d(n,l,t){var s=l.getData();s.setItemVisual(n.dataIndex,"color",t)}D.exports=a},Tp9H:function(D,_,e){var g=e("ItGF"),f=e("Kagy"),y=e("IUWy"),m=f.toolbox.saveAsImage;function v(a){this.model=a}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:m.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:m.lang.slice()},v.prototype.unusable=!g.canvasSupported;var h=v.prototype;h.onclick=function(a,i){var r=this.model,o=r.get("name")||a.get("title.0.text")||"echarts",d=i.getZr().painter.getType()==="svg",n=d?"svg":r.get("type",!0)||"png",l=i.getConnectedDataURL({type:n,backgroundColor:r.get("backgroundColor",!0)||a.get("backgroundColor")||"#fff",connectedBackgroundColor:r.get("connectedBackgroundColor"),excludeComponents:r.get("excludeComponents"),pixelRatio:r.get("pixelRatio")});if(typeof MouseEvent=="function"&&!g.browser.ie&&!g.browser.edge){var t=document.createElement("a");t.download=o+"."+n,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 u=atob(l.split(",")[1]),p=u.length,w=new Uint8Array(p);p--;)w[p]=u.charCodeAt(p);var b=new Blob([w]);window.navigator.msSaveOrOpenBlob(b,o+"."+n)}else{var E=r.get("lang"),A='',S=window.open();S.document.write(A)}},y.register("saveAsImage",v);var c=v;D.exports=c},"U/Mo":function(D,_){function e(f){var y=f.coordinateSystem;if(y.type!=="view")return 1;var m=f.option.nodeScaleRatio,v=y.scale,h=v&&v[0]||1,c=y.getZoom(),a=(c-1)*m+1;return a/h}function g(f){var y=f.getVisual("symbolSize");return y instanceof Array&&(y=(y[0]+y[1])/2),+y}_.getNodeGlobalScale=e,_.getSymbolSize=g},UADf:function(D,_,e){},UESt:function(D,_,e){"use strict";var g=e("q1tI"),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},y=f,m=e("6VBw"),v=function(a,i){return g.createElement(m.a,Object.assign({},a,{ref:i,icon:y}))};v.displayName="RightOutlined";var h=_.a=g.forwardRef(v)},"UNi/":function(D,_){function e(g,f){for(var y=-1,m=Array(g);++y=0}function h(i,r){i=i.slice();var o=g.map(i,f.capitalFirst);r=(r||[]).slice();var d=g.map(r,f.capitalFirst);return function(n,l){g.each(i,function(t,s){for(var u={name:t,capital:o[s]},p=0;p=0}function n(t,s){var u=!1;return r(function(p){g.each(o(t,p)||[],function(w){s.records[p.name][w]&&(u=!0)})}),u}function l(t,s){s.nodes.push(t),r(function(u){g.each(o(t,u)||[],function(p){s.records[u.name][p]=!0})})}}_.isCoordSupported=v,_.createNameEach=h,_.eachAxisDim=c,_.createLinkedNodesFinder=a},Uc92:function(D,_,e){"use strict";Object.defineProperty(_,"__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"};_.default=g},UmKh:function(D,_,e){"use strict";var g=e("q1tI"),f=e.n(g),y=e("aGtg");function m(z){var R=[];return f.a.Children.forEach(z,function(U){R.push(U)}),R}function v(z,R){var U=null;return z&&z.forEach(function(j){if(U)return;j&&j.key===R&&(U=j)}),U}function h(z,R,U){var j=null;return z&&z.forEach(function(H){if(H&&H.key===R&&H.props[U]){if(j)throw new Error("two child with same key for children");j=H}}),j}function c(z,R,U){var j=0;return z&&z.forEach(function(H){if(j)return;j=H&&H.key===R&&!H.props[U]}),j}function a(z,R,U){var j=z.length===R.length;return j&&z.forEach(function(H,V){var X=R[V];H&&X&&((H&&!X||!H&&X||(H.key!==X.key||U&&H.props[U]!==X.props[U]))&&(j=!1))}),j}function i(z,R){var U=[],j={},H=[];return z.forEach(function(V){V&&v(R,V.key)?H.length&&(j[V.key]=H,H=[]):H.push(V)}),R.forEach(function(V){V&&Object.prototype.hasOwnProperty.call(j,V.key)&&(U=U.concat(j[V.key])),U.push(V)}),U=U.concat(H),U}var r=e("i8i4"),o=e.n(r),d=e("UwPn"),n={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=n,t=function(){function z(R,U){for(var j=0;j children");return f.a.createElement(E,{key:$.key,ref:function(q){j.childrenRefs[$.key]=q},animation:H.animation,transitionName:H.transitionName,transitionEnter:H.transitionEnter,transitionAppear:H.transitionAppear,transitionLeave:H.transitionLeave},$)}));var W=H.component;if(W){var G=H;return typeof W=="string"&&(G=A({className:H.className,style:H.style},H.componentProps)),f.a.createElement(W,G,X)}return X[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(U){R.childrenRefs[U]&&(R.currentlyAnimatingKeys[U]=!0,R.childrenRefs[U].componentWillEnter(R.handleDoneAdding.bind(R,U,"enter")))},this.performAppear=function(U){R.childrenRefs[U]&&(R.currentlyAnimatingKeys[U]=!0,R.childrenRefs[U].componentWillAppear(R.handleDoneAdding.bind(R,U,"appear")))},this.handleDoneAdding=function(U,j){var H=R.props;if(delete R.currentlyAnimatingKeys[U],H.exclusive&&H!==R.nextProps)return;var V=m(N(H));R.isValidChildByKey(V,U)?j==="appear"?l.allowAppearCallback(H)&&(H.onAppear(U),H.onEnd(U,!0)):l.allowEnterCallback(H)&&(H.onEnter(U),H.onEnd(U,!0)):R.performLeave(U)},this.performLeave=function(U){R.childrenRefs[U]&&(R.currentlyAnimatingKeys[U]=!0,R.childrenRefs[U].componentWillLeave(R.handleDoneLeaving.bind(R,U)))},this.handleDoneLeaving=function(U){var j=R.props;if(delete R.currentlyAnimatingKeys[U],j.exclusive&&j!==R.nextProps)return;var H=m(N(j));if(R.isValidChildByKey(H,U))R.performEnter(U);else{var V=function(){l.allowLeaveCallback(j)&&(j.onLeave(U),j.onEnd(U,!1))};a(R.state.children,H,j.showProp)?V():R.setState({children:H},V)}}},B=_.a=Object(y.a)(k)},UnoB:function(D,_,e){var g=e("bYtY"),f=e("OELB");function y(h,c){h.eachSeriesByType("themeRiver",function(a){var i=a.getData(),r=a.coordinateSystem,o={},d=r.getRect();o.rect=d;var n=a.get("boundaryGap"),l=r.getAxis();if(o.boundaryGap=n,l.orient==="horizontal"){n[0]=f.parsePercent(n[0],d.height),n[1]=f.parsePercent(n[1],d.height);var t=d.height-n[0]-n[1];m(i,a,t)}else{n[0]=f.parsePercent(n[0],d.width),n[1]=f.parsePercent(n[1],d.width);var s=d.width-n[0]-n[1];m(i,a,s)}i.setLayout("layoutInfo",o)})}function m(h,c,a){if(!h.count())return;for(var i=c.coordinateSystem,r=c.getLayerSeries(),o=h.mapDimension("single"),d=h.mapDimension("value"),n=g.map(r,function(A){return g.map(A.indices,function(S){var T=i.dataToPoint(h.get(o,S));return T[1]=h.get(d,S),T})}),l=v(n),t=l.y0,s=a/l.max,u=r.length,p=r[0].indices.length,w,b=0;bo&&(o=d),i.push(d)}for(var s=0;so&&(o=p)}return n.y0=r,n.max=o,n}D.exports=y},Urep:function(D,_,e){},V6Ve:function(D,_,e){var g=e("kekF"),f=g(Object.keys,Object);D.exports=f},V7ic:function(D,_,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var y=f(e("q1tI")),m=g(e("digP")),v=g(e("KQxl")),h=function(i,r){return y.createElement(v.default,Object.assign({},i,{ref:r,icon:m.default}))};h.displayName="FileTwoTone";var c=y.forwardRef(h);_.default=c},VFCP:function(D,_,e){e("dBmv"),e("KamJ")},VPsl:function(D,_){function e(g){g.eachSeriesByType("map",function(f){var y=f.get("color"),m=f.getModel("itemStyle"),v=m.get("areaColor"),h=m.get("color")||y[f.seriesIndex%y.length];f.getData().setVisual({areaColor:v,color:h})})}D.exports=e},VR9l:function(D,_,e){var g=e("KCsZ"),f=g([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),y={getItemStyle:function(m,v){var h=f(this,m,v),c=this.getBorderLineDash();return c&&(h.lineDash=c),h},getBorderLineDash:function(){var m=this.get("borderType");return m==="solid"||m==null?null:m==="dashed"?[5,5]:[1,1]}};D.exports=y},VSLf:function(D,_,e){e("I+Bx"),e("F0hE"),e("bBKM")},VSMT:function(D,_,e){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.decodeUTF8=g,_.encodeUTF8=f;function g(y){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(y))}catch(v){if(v instanceof URIError&&m)return y;throw v}}function f(y){return unescape(encodeURIComponent(y))}},VXYp:function(D,_,e){var g=e("bYtY"),f=e("SgGq"),y=e("iLNv"),m="\0_ec_dataZoom_roams";function v(n,l){var t=a(n),s=l.dataZoomId,u=l.coordId;g.each(t,function(b,E){var A=b.dataZoomInfos;A[s]&&g.indexOf(l.allCoordIds,u)<0&&(delete A[s],b.count--)}),r(t);var p=t[u];p||(p=t[u]={coordId:u,dataZoomInfos:{},count:0},p.controller=i(n,p),p.dispatchAction=g.curry(o,n)),!p.dataZoomInfos[s]&&p.count++,p.dataZoomInfos[s]=l;var w=d(p.dataZoomInfos);p.controller.enable(w.controlType,w.opt),p.controller.setPointerChecker(l.containsPoint),y.createOrUpdate(p,"dispatchAction",l.dataZoomModel.get("throttle",!0),"fixRate")}function h(n,l){var t=a(n);g.each(t,function(s){s.controller.dispose();var u=s.dataZoomInfos;u[l]&&(delete u[l],s.count--)}),r(t)}function c(n){return n.type+"\0_"+n.id}function a(n){var l=n.getZr();return l[m]||(l[m]={})}function i(n,l){var t=new f(n.getZr());return g.each(["pan","zoom","scrollMove"],function(s){t.on(s,function(u){var p=[];g.each(l.dataZoomInfos,function(w){if(!u.isAvailableBehavior(w.dataZoomModel.option))return;var b=(w.getRange||{})[s],E=b&&b(l.controller,u);!w.dataZoomModel.get("disabled",!0)&&E&&p.push({dataZoomId:w.dataZoomId,start:E[0],end:E[1]})}),p.length&&l.dispatchAction(p)})}),t}function r(n){g.each(n,function(l,t){l.count||(l.controller.dispose(),delete n[t])})}function o(n,l){n.dispatchAction({type:"dataZoom",batch:l})}function d(n){var l,t="type_",s={type_true:2,type_move:1,type_false:0,type_undefined:-1},u=!0;return g.each(n,function(p){var w=p.dataZoomModel,b=w.get("disabled",!0)?!1:w.get("zoomLock",!0)?"move":!0;s[t+b]>s[t+l]&&(l=b),u&=w.get("preventDefaultMouseMove",!0)}),{controlType:l,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!u}}}_.register=v,_.unregister=h,_.generateCoordId=c},VaNO:function(D,_){function e(g){return this.__data__.has(g)}D.exports=e},VaxA:function(D,_,e){var g=e("bYtY");function f(h,c,a){if(h&&g.indexOf(c,h.type)>=0){var i=a.getData().tree.root,r=h.targetNode;if(typeof r=="string"&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=h.targetNodeId;if(o!=null&&(r=i.getNodeById(o)))return{node:r}}}function y(h){for(var c=[];h;)h=h.parentNode,h&&c.push(h);return c.reverse()}function m(h,c){var a=y(h);return g.indexOf(a,c)>=0}function v(h,c){for(var a=[];h;){var i=h.dataIndex;a.push({name:h.name,dataIndex:i,value:c.getRawValue(i)}),h=h.parentNode}return a.reverse(),a}_.retrieveTargetInfo=f,_.getPathToRoot=y,_.aboveViewRoot=m,_.wrapTreePathInfo=v},Vi4m:function(D,_,e){var g=e("bYtY");function f(m){m!=null&&g.extend(this,m),this.otherDims={}}var y=f;D.exports=y},Vl3Y:function(D,_,e){"use strict";var g=e("pVnL"),f=e.n(g),y=e("J4zp"),m=e.n(y),v=e("lSNA"),h=e.n(v),c=e("q1tI"),a=e("TSYQ"),i=e.n(a),r=e("85Yc"),o=e("H84U"),d=e("BGR+"),n=c.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),l=c.createContext({updateItemErrors:function(){}}),t=function(ct){var yt=Object(d.default)(ct,["prefixCls"]);return c.createElement(r.FormProvider,yt)};function s(dt){return dt!=null&&typeof dt=="object"&&dt.nodeType===1}function u(dt,ct){return ct&&dt==="hidden"?!1:dt!=="visible"&&dt!=="clip"}function p(dt){if(!dt.ownerDocument||!dt.ownerDocument.defaultView)return null;try{return dt.ownerDocument.defaultView.frameElement}catch(ct){return null}}function w(dt){var ct=p(dt);return ct?ct.clientHeightct||Bt>dt&&we=ct&&ve>=yt?Bt-dt-_t:we>ct&&veyt?we-ct+or:0}var A=function(dt,ct){var yt=ct.scrollMode,_t=ct.block,or=ct.inline,Bt=ct.boundary,we=ct.skipOverflowHiddenElements,ve=typeof Bt=="function"?Bt:function(ir){return ir!==Bt};if(!s(dt))throw new TypeError("Invalid target");for(var me=document.scrollingElement||document.documentElement,he=[],Re=dt;s(Re)&&ve(Re);){if(Re=Re.parentNode,Re===me){he.push(Re);break}if(Re===document.body&&b(Re)&&!b(document.documentElement))continue;b(Re,we)&&he.push(Re)}for(var He=window.visualViewport?visualViewport.width:innerWidth,ze=window.visualViewport?visualViewport.height:innerHeight,Ye=window.scrollX||pageXOffset,Pe=window.scrollY||pageYOffset,nt=dt.getBoundingClientRect(),bt=nt.height,Ot=nt.width,ae=nt.top,pe=nt.right,J=nt.bottom,ne=nt.left,xe=_t==="start"||_t==="nearest"?ae:_t==="end"?J:ae+bt/2,De=or==="center"?ne+Ot/2:or==="end"?pe:ne,Fe=[],$e=0;$e=0&&ne>=0&&J<=ze&&pe<=He&&ae>=Kt&&J<=Qt&&ne>=Mt&&pe<=Gt)return Fe;var dr=getComputedStyle(vt),er=parseInt(dr.borderLeftWidth,10),st=parseInt(dr.borderTopWidth,10),xt=parseInt(dr.borderRightWidth,10),ut=parseInt(dr.borderBottomWidth,10),pt=0,It=0,Tt="offsetWidth"in vt?vt.offsetWidth-vt.clientWidth-er-xt:0,ft="offsetHeight"in vt?vt.offsetHeight-vt.clientHeight-st-ut:0;if(me===vt)_t==="start"?pt=xe:_t==="end"?pt=xe-ze:_t==="nearest"?pt=E(Pe,Pe+ze,ze,st,ut,Pe+xe,Pe+xe+bt,bt):pt=xe-ze/2,or==="start"?It=De:or==="center"?It=De-He/2:or==="end"?It=De-He:It=E(Ye,Ye+He,He,er,xt,Ye+De,Ye+De+Ot,Ot),pt=Math.max(0,pt+Pe),It=Math.max(0,It+Ye);else{_t==="start"?pt=xe-Kt-st:_t==="end"?pt=xe-Qt+ut+ft:_t==="nearest"?pt=E(Kt,Qt,$t,st,ut+ft,xe,xe+bt,bt):pt=xe-(Kt+$t/2)+ft/2,or==="start"?It=De-Mt-er:or==="center"?It=De-(Mt+Rt/2)+Tt/2:or==="end"?It=De-Gt+xt+Tt:It=E(Mt,Gt,Rt,er,xt+Tt,De,De+Ot,Ot);var Ht=vt.scrollLeft,Ft=vt.scrollTop;pt=Math.max(0,Math.min(Ft+pt,vt.scrollHeight-$t+ft)),It=Math.max(0,Math.min(Ht+It,vt.scrollWidth-Rt+Tt)),xe+=Ft-pt,De+=Ht-It}Fe.push({el:vt,top:pt,left:It})}return Fe};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(_t){var or=_t.el,Bt=_t.top,we=_t.left;or.scroll&&yt?or.scroll({top:Bt,left:we,behavior:ct}):(or.scrollTop=Bt,or.scrollLeft=we)})}function L(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 _t=L(ct);return T(A(dt,_t),_t.behavior)}var C=x;function O(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=O(dt);return ct.join("_")}function k(dt){var ct=Object(r.useForm)(),yt=m()(ct,1),_t=yt[0],or=Object(c.useRef)({}),Bt=Object(c.useMemo)(function(){return dt||f()(f()({},_t),{__INTERNAL__:{itemRef:function(ve){return function(me){var he=F(ve);me?or.current[he]=me:delete or.current[he]}}},scrollToField:function(ve){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},he=O(ve),Re=N(he,Bt.__INTERNAL__.name),He=Re?document.getElementById(Re):null;He&&C(He,f()({scrollMode:"if-needed",block:"nearest"},me))},getFieldInstance:function(ve){var me=F(ve);return or.current[me]}})},[dt,_t]);return[Bt]}var P=e("3Nzz"),B=function(dt,ct){var yt={};for(var _t in dt)Object.prototype.hasOwnProperty.call(dt,_t)&&ct.indexOf(_t)<0&&(yt[_t]=dt[_t]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var or=0,_t=Object.getOwnPropertySymbols(dt);or<_t.length;or++)ct.indexOf(_t[or])<0&&Object.prototype.propertyIsEnumerable.call(dt,_t[or])&&(yt[_t[or]]=dt[_t[or]]);return yt},z=function(ct,yt){var _t,or=c.useContext(P.b),Bt=c.useContext(o.b),we=Bt.getPrefixCls,ve=Bt.direction,me=ct.name,he=ct.prefixCls,Re=ct.className,He=Re===void 0?"":Re,ze=ct.size,Ye=ze===void 0?or:ze,Pe=ct.form,nt=ct.colon,bt=ct.labelAlign,Ot=ct.labelCol,ae=ct.wrapperCol,pe=ct.hideRequiredMark,J=ct.layout,ne=J===void 0?"horizontal":J,xe=ct.scrollToFirstError,De=ct.requiredMark,Fe=ct.onFinishFailed,$e=B(ct,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed"]),vt=Object(c.useMemo)(function(){return De!==void 0?De:!pe},[pe,De]),Wt=we("form",he),$t=i()(Wt,(_t={},h()(_t,"".concat(Wt,"-").concat(ne),!0),h()(_t,"".concat(Wt,"-hide-required-mark"),vt===!1),h()(_t,"".concat(Wt,"-rtl"),ve==="rtl"),h()(_t,"".concat(Wt,"-").concat(Ye),Ye),_t),He),Rt=k(Pe),Kt=m()(Rt,1),Gt=Kt[0],Qt=Gt.__INTERNAL__;Qt.name=me;var Mt=Object(c.useMemo)(function(){return{name:me,labelAlign:bt,labelCol:Ot,wrapperCol:ae,vertical:ne==="vertical",colon:nt,requiredMark:vt,itemRef:Qt.itemRef}},[me,bt,Ot,ae,ne,nt,vt]);c.useImperativeHandle(yt,function(){return Gt});var dr=function(st){Fe&&Fe(st),xe&&st.errorFields.length&&Gt.scrollToField(st.errorFields[0].name)};return c.createElement(P.a,{size:Ye},c.createElement(n.Provider,{value:Mt},c.createElement(r.default,f()({id:me},$e,{onFinishFailed:dr,form:Gt,className:$t}))))},R=c.forwardRef(z),U=R,j=e("cDf5"),H=e.n(j),V=e("RIqP"),X=e.n(V),W=e("Y+p1"),G=e.n(W),$=e("KW7l"),ge=e("c+Xe"),q=e("qrJ5"),Se=e("CWQg"),Ce=e("uaoM"),Ae=e("/kpp"),Ue=e("YMnH"),Qe=e("ZvpZ"),gt=function(ct){var yt=ct.prefixCls,_t=ct.label,or=ct.htmlFor,Bt=ct.labelCol,we=ct.labelAlign,ve=ct.colon,me=ct.required,he=ct.requiredMark,Re=Object(Ue.b)("Form"),He=m()(Re,1),ze=He[0];return _t?c.createElement(n.Consumer,{key:"label"},function(Ye){var Pe,nt=Ye.vertical,bt=Ye.labelAlign,Ot=Ye.labelCol,ae=Ye.colon,pe,J=Bt||Ot||{},ne=we||bt,xe="".concat(yt,"-item-label"),De=i()(xe,ne==="left"&&"".concat(xe,"-left"),J.className),Fe=_t,$e=ve===!0||ae!==!1&&ve!==!1,vt=$e&&!nt;vt&&typeof _t=="string"&&_t.trim()!==""&&(Fe=_t.replace(/[:|:]\s*$/,"")),he==="optional"&&!me&&(Fe=c.createElement(c.Fragment,null,Fe,c.createElement("span",{className:"".concat(yt,"-item-optional")},(ze==null?void 0:ze.optional)||((pe=Qe.a.Form)===null||pe===void 0?void 0:pe.optional))));var Wt=i()((Pe={},h()(Pe,"".concat(yt,"-item-required"),me),h()(Pe,"".concat(yt,"-item-required-mark-optional"),he==="optional"),h()(Pe,"".concat(yt,"-item-no-colon"),!$e),Pe));return c.createElement(Ae.a,f()({},J,{className:De}),c.createElement("label",{htmlFor:or,className:Wt,title:typeof _t=="string"?_t:""},Fe))}):null},_e=gt,Oe=e("gZBC"),lt=e.n(Oe),ce=e("kbBi"),Y=e.n(ce),K=e("J84W"),Q=e.n(K),ye=e("sKbD"),ue=e.n(ye),Ne=e("YrtM"),Te=e("8XRh"),oe=e("hkKa");function de(dt,ct,yt){var _t=c.useRef({errors:dt,visible:!!dt.length}),or=Object(oe.a)(),Bt=function(){var ve=_t.current.visible,me=!!dt.length,he=_t.current.errors;_t.current.errors=dt,_t.current.visible=me,ve!==me?ct(me):(he.length!==dt.length||he.some(function(Re,He){return Re!==dt[He]}))&&or()};return c.useEffect(function(){if(!yt){var we=setTimeout(Bt,10);return function(){return clearTimeout(we)}}},[dt]),yt&&Bt(),[_t.current.visible,_t.current.errors]}var Le={success:Q.a,warning:ue.a,error:Y.a,validating:lt.a},Ge=function(ct){var yt=ct.prefixCls,_t=ct.wrapperCol,or=ct.children,Bt=ct.help,we=ct.errors,ve=ct.onDomErrorVisibleChange,me=ct.hasFeedback,he=ct.validateStatus,Re=ct.extra,He=Object(oe.a)(),ze="".concat(yt,"-item"),Ye=c.useContext(n),Pe=_t||Ye.wrapperCol||{},nt=i()("".concat(ze,"-control"),Pe.className),bt=de(we,function(Fe){Fe&&Promise.resolve().then(function(){ve(!0)}),He()},!!Bt),Ot=m()(bt,2),ae=Ot[0],pe=Ot[1];c.useEffect(function(){return function(){ve(!1)}},[]);var J=Object(Ne.a)(function(){return pe},ae,function(Fe,$e){return $e}),ne=he&&Le[he],xe=me&&ne?c.createElement("span",{className:"".concat(ze,"-children-icon")},c.createElement(ne,null)):null,De=f()({},Ye);return delete De.labelCol,delete De.wrapperCol,c.createElement(n.Provider,{value:De},c.createElement(Ae.a,f()({},Pe,{className:nt}),c.createElement("div",{className:"".concat(ze,"-control-input")},c.createElement("div",{className:"".concat(ze,"-control-input-content")},or),xe),c.createElement(Te.default,{motionDeadline:500,visible:ae,motionName:"show-help",onLeaveEnd:function(){ve(!1)},motionAppear:!0,removeOnLeave:!0},function(Fe){var $e=Fe.className;return c.createElement("div",{className:i()("".concat(ze,"-explain"),$e),key:"help"},J.map(function(vt,Wt){return c.createElement("div",{key:Wt,role:"alert"},vt)}))}),Re&&c.createElement("div",{className:"".concat(ze,"-extra")},Re)))},ht=Ge,Et=e("0n0R"),Be=e("xEkU"),Dt=e.n(Be);function Ke(dt){var ct=c.useState(dt),yt=m()(ct,2),_t=yt[0],or=yt[1],Bt=Object(c.useRef)(null),we=Object(c.useRef)([]),ve=Object(c.useRef)(!1);c.useEffect(function(){return function(){ve.current=!0,Dt.a.cancel(Bt.current)}},[]);function me(he){if(ve.current)return;Bt.current===null&&(we.current=[],Bt.current=Dt()(function(){Bt.current=null,or(function(Re){var He=Re;return we.current.forEach(function(ze){He=ze(He)}),He})})),we.current.push(he)}return[_t,me]}function At(){var dt=c.useContext(n),ct=dt.itemRef,yt=c.useRef({});function _t(or,Bt){var we=Bt&&H()(Bt)==="object"&&Bt.ref,ve=or.join("_");return(yt.current.name!==ve||yt.current.originRef!==we)&&(yt.current.name=ve,yt.current.originRef=we,yt.current.ref=Object(ge.a)(ct(or),we)),yt.current.ref}return _t}var Xe=function(dt,ct){var yt={};for(var _t in dt)Object.prototype.hasOwnProperty.call(dt,_t)&&ct.indexOf(_t)<0&&(yt[_t]=dt[_t]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var or=0,_t=Object.getOwnPropertySymbols(dt);or<_t.length;or++)ct.indexOf(_t[or])<0&&Object.prototype.propertyIsEnumerable.call(dt,_t[or])&&(yt[_t[or]]=dt[_t[or]]);return yt},et=Object(Se.a)("success","warning","error","validating",""),tt=c.memo(function(dt){var ct=dt.children;return ct},function(dt,ct){return dt.value===ct.value&&dt.update===ct.update});function ot(dt){return dt===null&&Object(Ce.a)(!1,"Form.Item","`null` is passed as `name` property"),!(dt==null)}function Ve(dt){var ct=dt.name,yt=dt.fieldKey,_t=dt.noStyle,or=dt.dependencies,Bt=dt.prefixCls,we=dt.style,ve=dt.className,me=dt.shouldUpdate,he=dt.hasFeedback,Re=dt.help,He=dt.rules,ze=dt.validateStatus,Ye=dt.children,Pe=dt.required,nt=dt.label,bt=dt.trigger,Ot=bt===void 0?"onChange":bt,ae=dt.validateTrigger,pe=dt.hidden,J=Xe(dt,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","trigger","validateTrigger","hidden"]),ne=c.useRef(!1),xe=c.useContext(o.b),De=xe.getPrefixCls,Fe=c.useContext(n),$e=Fe.name,vt=Fe.requiredMark,Wt=c.useContext(l),$t=Wt.updateItemErrors,Rt=c.useState(!!Re),Kt=m()(Rt,2),Gt=Kt[0],Qt=Kt[1],Mt=c.useRef(ze),dr=Ke({}),er=m()(dr,2),st=er[0],xt=er[1],ut=c.useContext($.b),pt=ut.validateTrigger,It=ae!==void 0?ae:pt;function Tt(tn){ne.current||Qt(tn)}var ft=ot(ct),Ht=c.useRef([]);c.useEffect(function(){return function(){ne.current=!0,$t(Ht.current.join("__SPLIT__"),[])}},[]);var Ft=De("form",Bt),ir=_t?$t:function(tn,qr){xt(function(){var Lr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return G()(Lr[tn],qr)?Lr:f()(f()({},Lr),h()({},tn,qr))})},Xt=At();function mr(tn,qr,Lr,Qr){var _r,ur;if(_t&&!pe)return tn;var pr=[];Object.keys(st).forEach(function(Yr){pr=[].concat(X()(pr),X()(st[Yr]||[]))});var cr;Re!=null?cr=O(Re):(cr=Lr?Lr.errors:[],cr=[].concat(X()(cr),X()(pr)));var fr="";ze!==void 0?fr=ze:(Lr==null?void 0:Lr.validating)?fr="validating":((ur=Lr==null?void 0:Lr.errors)===null||ur===void 0?void 0:ur.length)||pr.length?fr="error":(Lr==null?void 0:Lr.touched)&&(fr="success"),Gt&&Re&&(Mt.current=fr);var xr=(_r={},h()(_r,"".concat(Ft,"-item"),!0),h()(_r,"".concat(Ft,"-item-with-help"),Gt||Re),h()(_r,"".concat(ve),!!ve),h()(_r,"".concat(Ft,"-item-has-feedback"),fr&&he),h()(_r,"".concat(Ft,"-item-has-success"),fr==="success"),h()(_r,"".concat(Ft,"-item-has-warning"),fr==="warning"),h()(_r,"".concat(Ft,"-item-has-error"),fr==="error"),h()(_r,"".concat(Ft,"-item-has-error-leave"),!Re&&Gt&&Mt.current==="error"),h()(_r,"".concat(Ft,"-item-is-validating"),fr==="validating"),h()(_r,"".concat(Ft,"-item-hidden"),pe),_r);return c.createElement(q.a,f()({className:i()(xr),style:we,key:"row"},Object(d.default)(J,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","preserve","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),c.createElement(_e,f()({htmlFor:qr,required:Qr,requiredMark:vt},dt,{prefixCls:Ft})),c.createElement(ht,f()({},dt,Lr,{errors:cr,prefixCls:Ft,onDomErrorVisibleChange:Tt,validateStatus:fr}),c.createElement(l.Provider,{value:{updateItemErrors:ir}},tn)))}var Ar=typeof Ye=="function",Nr=c.useRef(0);if(Nr.current+=1,!ft&&!Ar&&!or)return mr(Ye);var Fr={};return typeof nt=="string"&&(Fr.label=nt),c.createElement(r.Field,f()({},dt,{messageVariables:Fr,trigger:Ot,validateTrigger:It,onReset:function(){Tt(!1)}}),function(tn,qr,Lr){var Qr=qr.errors,_r=O(ct).length&&qr?qr.name:[],ur=N(_r,$e);if(_t){if(Ht.current=X()(_r),yt){var pr=Array.isArray(yt)?yt:[yt];Ht.current=[].concat(X()(_r.slice(0,-1)),X()(pr))}$t(Ht.current.join("__SPLIT__"),Qr)}var cr=Pe!==void 0?Pe:!!(He&&He.some(function(Nn){if(Nn&&H()(Nn)==="object"&&Nn.required)return!0;if(typeof Nn=="function"){var jr=Nn(Lr);return jr&&jr.required}return!1})),fr=f()({},tn),xr=null;if(Object(Ce.a)(!(me&&or),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(Ye)&&ft)Object(Ce.a)(!1,"Form.Item","`children` is array of render props cannot have `name`."),xr=Ye;else if(Ar&&(!(me||or)||ft))Object(Ce.a)(!!(me||or),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),Object(Ce.a)(!ft,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if(or&&!Ar&&!ft)Object(Ce.a)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");else if(Object(Et.b)(Ye)){Object(Ce.a)(Ye.props.defaultValue===void 0,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var Yr=f()(f()({},Ye.props),fr);Yr.id||(Yr.id=ur),Object(ge.c)(Ye)&&(Yr.ref=Xt(_r,Ye));var un=new Set([].concat(X()(O(Ot)),X()(O(It))));un.forEach(function(Nn){Yr[Nn]=function(){for(var jr,Tn,gn,Pn,zn,qn=arguments.length,Yn=new Array(qn),Vn=0;Vnv&&(d=a+i,a*=v/d,i*=v/d),r+o>v&&(d=r+o,r*=v/d,o*=v/d),i+r>h&&(d=i+r,i*=h/d,r*=h/d),a+o>h&&(d=a+o,a*=h/d,o*=h/d),g.moveTo(y+a,m),g.lineTo(y+v-i,m),i!==0&&g.arc(y+v-i,m+i,i,-Math.PI/2,0),g.lineTo(y+v,m+h-r),r!==0&&g.arc(y+v-r,m+h-r,r,0,Math.PI/2),g.lineTo(y+o,m+h),o!==0&&g.arc(y+o,m+h-o,o,Math.PI/2,Math.PI),g.lineTo(y,m+a),a!==0&&g.arc(y+a,m+a,a,Math.PI,Math.PI*1.5)}_.buildPath=e},"VrN/":function(D,_,e){(function(g,f){D.exports=f()})(this,function(){"use strict";var g=navigator.userAgent,f=navigator.platform,y=/gecko\/\d/i.test(g),m=/MSIE \d/.test(g),v=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(g),h=/Edge\/(\d+)/.exec(g),c=m||v||h,a=c&&(m?document.documentMode||6:+(h||v)[1]),i=!h&&/WebKit\//.test(g),r=i&&/Qt\/\d+\.\d+/.test(g),o=!h&&/Chrome\//.test(g),d=/Opera\//.test(g),n=/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),u=/Android/.test(g),p=s||u||/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=d&&g.match(/Version\/(\d*\.\d*)/);A&&(A=Number(A[1])),A&&A>=15&&(d=!1,i=!0);var S=w&&(r||d&&(A==null||A<12.11)),T=y||c&&a>=9;function L(I){return new RegExp("(^|\\s)"+I+"(?:$|\\s)\\s*")}var x=function(M,Z){var ee=M.className,ie=L(Z).exec(ee);if(ie){var Me=ee.slice(ie.index+ie[0].length);M.className=ee.slice(0,ie.index)+(Me?ie[1]+Me:"")}};function C(I){for(var M=I.childNodes.length;M>0;--M)I.removeChild(I.firstChild);return I}function O(I,M){return C(I).appendChild(M)}function N(I,M,Z,ee){var ie=document.createElement(I);if(Z&&(ie.className=Z),ee&&(ie.style.cssText=ee),typeof M=="string")ie.appendChild(document.createTextNode(M));else if(M)for(var Me=0;Me=M)return mt+(M-Me);mt+=Nt-Me,mt+=Z-mt%Z,Me=Nt+1}}var X=function(){this.id=null,this.f=null,this.time=0,this.handler=j(this.onTimeout,this)};X.prototype.onTimeout=function(I){I.id=0,I.time<=+new Date?I.f():setTimeout(I.handler,I.time-+new Date)},X.prototype.set=function(I,M){this.f=M;var Z=+new Date+I;(!this.id||Z=M)return ee+Math.min(mt,M-ie);if(ie+=Me-ee,ie+=Z-ie%Z,ee=Me+1,ie>=M)return ee}}var Ae=[""];function Ue(I){for(;Ae.length<=I;)Ae.push(Qe(Ae)+" ");return Ae[I]}function Qe(I){return I[I.length-1]}function gt(I,M){for(var Z=[],ee=0;ee"\x80"&&(I.toUpperCase()!=I.toLowerCase()||ce.test(I))}function K(I,M){return M?M.source.indexOf("\\w")>-1&&Y(I)?!0:M.test(I):Y(I)}function Q(I){for(var M in I)if(I.hasOwnProperty(M)&&I[M])return!1;return!0}var ye=/[\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 ue(I){return I.charCodeAt(0)>=768&&ye.test(I)}function Ne(I,M,Z){for(;(Z<0?M>0:MZ?-1:1;;){if(M==Z)return M;var ie=(M+Z)/2,Me=ee<0?Math.ceil(ie):Math.floor(ie);if(Me==M)return I(Me)?M:Z;I(Me)?Z=Me:M=Me+ee}}function oe(I,M,Z,ee){if(!I)return ee(M,Z,"ltr",0);for(var ie=!1,Me=0;MeM||M==Z&&mt.to==M)&&(ee(Math.max(mt.from,M),Math.min(mt.to,Z),mt.level==1?"rtl":"ltr",Me),ie=!0)}ie||ee(M,Z,"ltr")}var de=null;function Le(I,M,Z){var ee;de=null;for(var ie=0;ieM)return ie;Me.to==M&&(Me.from!=Me.to&&Z=="before"?ee=ie:de=ie),Me.from==M&&(Me.from!=Me.to&&Z!="before"?ee=ie:de=ie)}return ee!=null?ee:de}var Ge=function(){var I="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",M="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function Z(Yt){return Yt<=247?I.charAt(Yt):1424<=Yt&&Yt<=1524?"R":1536<=Yt&&Yt<=1785?M.charAt(Yt-1536):1774<=Yt&&Yt<=2220?"r":8192<=Yt&&Yt<=8203?"w":Yt==8204?"b":"L"}var ee=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ie=/[stwN]/,Me=/[LRr]/,mt=/[Lb1n]/,Nt=/[1n]/;function zt(Yt,Cr,Ur){this.level=Yt,this.from=Cr,this.to=Ur}return function(Yt,Cr){var Ur=Cr=="ltr"?"L":"R";if(Yt.length==0||Cr=="ltr"&&!ee.test(Yt))return!1;for(var en=Yt.length,nn=[],xn=0;xn-1&&(ee[M]=ie.slice(0,Me).concat(ie.slice(Me+1)))}}}function At(I,M){var Z=Dt(I,M);if(!Z.length)return;for(var ee=Array.prototype.slice.call(arguments,2),ie=0;ie0}function ot(I){I.prototype.on=function(M,Z){Be(this,M,Z)},I.prototype.off=function(M,Z){Ke(this,M,Z)}}function Ve(I){I.preventDefault?I.preventDefault():I.returnValue=!1}function se(I){I.stopPropagation?I.stopPropagation():I.cancelBubble=!0}function re(I){return I.defaultPrevented!=null?I.defaultPrevented:I.returnValue==!1}function it(I){Ve(I),se(I)}function qe(I){return I.target||I.srcElement}function be(I){var M=I.which;return M==null&&(I.button&1?M=1:I.button&2?M=3:I.button&4&&(M=2)),w&&I.ctrlKey&&M==1&&(M=3),M}var Zt=function(){if(c&&a<9)return!1;var I=N("div");return"draggable"in I||"dragDrop"in I}(),dt;function ct(I){if(dt==null){var M=N("span","\u200B");O(I,N("span",[M,document.createTextNode("x")])),I.firstChild.offsetHeight!=0&&(dt=M.offsetWidth<=1&&M.offsetHeight>2&&!(c&&a<8))}var Z=dt?N("span","\u200B"):N("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return Z.setAttribute("cm-text",""),Z}var yt;function _t(I){if(yt!=null)return yt;var M=O(I,document.createTextNode("A\u062EA")),Z=k(M,0,1).getBoundingClientRect(),ee=k(M,1,2).getBoundingClientRect();return C(I),!Z||Z.left==Z.right?!1:yt=ee.right-Z.right<3}var or=` b`.split(/\n/).length!=3?function(I){for(var M=0,Z=[],ee=I.length;M<=ee;){var ie=I.indexOf(` `,M);ie==-1&&(ie=I.length);var Me=I.slice(M,I.charAt(ie-1)=="\r"?ie-1:ie),mt=Me.indexOf("\r");mt!=-1?(Z.push(Me.slice(0,mt)),M+=mt+1):(Z.push(Me),M=ie+1)}return Z}:function(I){return I.split(/\r\n?|\n/)},Bt=window.getSelection?function(I){try{return I.selectionStart!=I.selectionEnd}catch(M){return!1}}:function(I){var M;try{M=I.ownerDocument.selection.createRange()}catch(Z){}return!M||M.parentElement()!=I?!1:M.compareEndPoints("StartToEnd",M)!=0},we=function(){var I=N("div");return"oncopy"in I?!0:(I.setAttribute("oncopy","return;"),typeof I.oncopy=="function")}(),ve=null;function me(I){if(ve!=null)return ve;var M=O(I,N("span","x")),Z=M.getBoundingClientRect(),ee=k(M,0,1).getBoundingClientRect();return ve=Math.abs(Z.left-ee.left)>1}var he={},Re={};function He(I,M){arguments.length>2&&(M.dependencies=Array.prototype.slice.call(arguments,2)),he[I]=M}function ze(I,M){Re[I]=M}function Ye(I){if(typeof I=="string"&&Re.hasOwnProperty(I))I=Re[I];else if(I&&typeof I.name=="string"&&Re.hasOwnProperty(I.name)){var M=Re[I.name];typeof M=="string"&&(M={name:M}),I=lt(M,I),I.name=M.name}else{if(typeof I=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(I))return Ye("application/xml");if(typeof I=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(I))return Ye("application/json")}return typeof I=="string"?{name:I}:I||{name:"null"}}function Pe(I,M){M=Ye(M);var Z=he[M.name];if(!Z)return Pe(I,"text/plain");var ee=Z(I,M);if(nt.hasOwnProperty(M.name)){var ie=nt[M.name];for(var Me in ie){if(!ie.hasOwnProperty(Me))continue;ee.hasOwnProperty(Me)&&(ee["_"+Me]=ee[Me]),ee[Me]=ie[Me]}}if(ee.name=M.name,M.helperType&&(ee.helperType=M.helperType),M.modeProps)for(var mt in M.modeProps)ee[mt]=M.modeProps[mt];return ee}var nt={};function bt(I,M){var Z=nt.hasOwnProperty(I)?nt[I]:nt[I]={};H(M,Z)}function Ot(I,M){if(M===!0)return M;if(I.copyState)return I.copyState(M);var Z={};for(var ee in M){var ie=M[ee];ie instanceof Array&&(ie=ie.concat([])),Z[ee]=ie}return Z}function ae(I,M){for(var Z;I.innerMode&&!(Z=I.innerMode(M),!Z||Z.mode==I);)M=Z.state,I=Z.mode;return Z||{mode:I,state:M}}function pe(I,M,Z){return I.startState?I.startState(M,Z):!0}var J=function(M,Z,ee){this.pos=this.start=0,this.string=M,this.tabSize=Z||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ee};J.prototype.eol=function(){return this.pos>=this.string.length},J.prototype.sol=function(){return this.pos==this.lineStart},J.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},J.prototype.next=function(){if(this.posM},J.prototype.eatSpace=function(){for(var I=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>I},J.prototype.skipToEnd=function(){this.pos=this.string.length},J.prototype.skipTo=function(I){var M=this.string.indexOf(I,this.pos);if(M>-1)return this.pos=M,!0},J.prototype.backUp=function(I){this.pos-=I},J.prototype.column=function(){return this.lastColumnPos0?null:(Me&&M!==!1&&(this.pos+=Me[0].length),Me)}},J.prototype.current=function(){return this.string.slice(this.start,this.pos)},J.prototype.hideFirstChars=function(I,M){this.lineStart+=I;try{return M()}finally{this.lineStart-=I}},J.prototype.lookAhead=function(I){var M=this.lineOracle;return M&&M.lookAhead(I)},J.prototype.baseToken=function(){var I=this.lineOracle;return I&&I.baseToken(this.pos)};function ne(I,M){if(M-=I.first,M<0||M>=I.size)throw new Error("There is no line "+(M+I.first)+" in the document.");for(var Z=I;!Z.lines;)for(var ee=0;;++ee){var ie=Z.children[ee],Me=ie.chunkSize();if(M=I.first&&MZ?Rt(Z,ne(I,Z).text.length):xt(M,ne(I,M.line).text.length)}function xt(I,M){var Z=I.ch;return Z==null||Z>M?Rt(I.line,M):Z<0?Rt(I.line,0):I}function ut(I,M){for(var Z=[],ee=0;eethis.maxLookAhead&&(this.maxLookAhead=I),M},It.prototype.baseToken=function(I){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=I;)this.baseTokenPos+=2;var M=this.baseTokens[this.baseTokenPos+1];return{type:M&&M.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-I}},It.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},It.fromSaved=function(I,M,Z){return M instanceof pt?new It(I,Ot(I.mode,M.state),Z,M.lookAhead):new It(I,Ot(I.mode,M),Z)},It.prototype.save=function(I){var M=I!==!1?Ot(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pt(M,this.maxLookAhead):M};function Tt(I,M,Z,ee){var ie=[I.state.modeGen],Me={};Fr(I,M.text,I.doc.mode,Z,function(Yt,Cr){return ie.push(Yt,Cr)},Me,ee);for(var mt=Z.state,Nt=function(Cr){Z.baseTokens=ie;var Ur=I.state.overlays[Cr],en=1,nn=0;Z.state=!0,Fr(I,M.text,Ur.mode,Z,function(xn,Bn){for(var Zn=en;nnxn&&ie.splice(en,1,xn,ie[en+1],Jn),en+=2,nn=Math.min(xn,Jn)}if(!Bn)return;if(Ur.opaque)ie.splice(Zn,en-Zn,xn,"overlay "+Bn),en=Zn+2;else for(;ZnI.options.maxHighlightLength&&Ot(I.doc.mode,ee.state),Me=Tt(I,M,ee);ie&&(ee.state=ie),M.stateAfter=ee.save(!ie),M.styles=Me.styles,Me.classes?M.styleClasses=Me.classes:M.styleClasses&&(M.styleClasses=null),Z===I.doc.highlightFrontier&&(I.doc.modeFrontier=Math.max(I.doc.modeFrontier,++I.doc.highlightFrontier))}return M.styles}function Ht(I,M,Z){var ee=I.doc,ie=I.display;if(!ee.mode.startState)return new It(ee,!0,M);var Me=tn(I,M,Z),mt=Me>ee.first&&ne(ee,Me-1).stateAfter,Nt=mt?It.fromSaved(ee,mt,Me):new It(ee,pe(ee.mode),Me);return ee.iter(Me,M,function(zt){Ft(I,zt.text,Nt);var Yt=Nt.line;zt.stateAfter=Yt==M-1||Yt%5==0||Yt>=ie.viewFrom&&YtM.start)return Me}throw new Error("Mode "+I.name+" failed to advance stream.")}var mr=function(M,Z,ee){this.start=M.start,this.end=M.pos,this.string=M.current(),this.type=Z||null,this.state=ee};function Ar(I,M,Z,ee){var ie=I.doc,Me=ie.mode,mt;M=st(ie,M);var Nt=ne(ie,M.line),zt=Ht(I,M.line,Z),Yt=new J(Nt.text,I.options.tabSize,zt),Cr;for(ee&&(Cr=[]);(ee||Yt.posI.options.maxHighlightLength?(Nt=!1,mt&&Ft(I,M,ee,Cr.pos),Cr.pos=M.length,Ur=null):Ur=Nr(Xt(Z,Cr,ee.state,en),Me),en){var nn=en[0].name;nn&&(Ur="m-"+(Ur?nn+" "+Ur:nn))}if(!Nt||Yt!=Ur){for(;ztmt;--Nt){if(Nt<=Me.first)return Me.first;var zt=ne(Me,Nt-1),Yt=zt.stateAfter;if(Yt&&(!Z||Nt+(Yt instanceof pt?Yt.lookAhead:0)<=Me.modeFrontier))return Nt;var Cr=V(zt.text,null,I.options.tabSize);(ie==null||ee>Cr)&&(ie=Nt-1,ee=Cr)}return ie}function qr(I,M){if(I.modeFrontier=Math.min(I.modeFrontier,M),I.highlightFrontierZ;ee--){var ie=ne(I,ee).stateAfter;if(ie&&(!(ie instanceof pt)||ee+ie.lookAhead=M:Me.to>M);(ee||(ee=[])).push(new pr(mt,Me.from,zt?null:Me.to))}}return ee}function un(I,M,Z){var ee;if(I)for(var ie=0;ie=M:Me.to>M);if(Nt||Me.from==M&&mt.type=="bookmark"&&(!Z||Me.marker.insertLeft)){var zt=Me.from==null||(mt.inclusiveLeft?Me.from<=M:Me.from0&&Nt)for(var Je=0;Je0)continue;var Cr=[zt,1],Ur=Kt(Yt.from,Nt.from),en=Kt(Yt.to,Nt.to);(Ur<0||!mt.inclusiveLeft&&!Ur)&&Cr.push({from:Yt.from,to:Nt.from}),(en>0||!mt.inclusiveRight&&!en)&&Cr.push({from:Nt.to,to:Yt.to}),ie.splice.apply(ie,Cr),zt+=Cr.length-3}return ie}function gn(I){var M=I.markedSpans;if(!M)return;for(var Z=0;ZM)&&(!ee||Yn(ee,Me.marker)<0)&&(ee=Me.marker)}return ee}function xa(I,M,Z,ee,ie){var Me=ne(I,M),mt=Qr&&Me.markedSpans;if(mt)for(var Nt=0;Nt=0&&Ur<=0||Cr<=0&&Ur>=0)continue;if(Cr<=0&&(zt.marker.inclusiveRight&&ie.inclusiveLeft?Kt(Yt.to,Z)>=0:Kt(Yt.to,Z)>0)||Cr>=0&&(zt.marker.inclusiveRight&&ie.inclusiveLeft?Kt(Yt.from,ee)<=0:Kt(Yt.from,ee)<0))return!0}}function ta(I){for(var M;M=An(I);)I=M.find(-1,!0).line;return I}function _i(I){for(var M;M=on(I);)I=M.find(1,!0).line;return I}function Ci(I){for(var M,Z;M=on(I);)I=M.find(1,!0).line,(Z||(Z=[])).push(I);return Z}function Gn(I,M){var Z=ne(I,M),ee=ta(Z);return Z==ee?M:$e(ee)}function Oa(I,M){if(M>I.lastLine())return M;var Z=ne(I,M),ee;if(!mn(I,Z))return M;for(;ee=on(Z);)Z=ee.find(1,!0).line;return $e(Z)+1}function mn(I,M){var Z=Qr&&M.markedSpans;if(Z)for(var ee=void 0,ie=0;ieM.maxLineLength&&(M.maxLineLength=ie,M.maxLine=ee)})}var ni=function(M,Z,ee){this.text=M,Pn(this,Z),this.height=ee?ee(this):1};ni.prototype.lineNo=function(){return $e(this)},ot(ni);function di(I,M,Z,ee){I.text=M,I.stateAfter&&(I.stateAfter=null),I.styles&&(I.styles=null),I.order!=null&&(I.order=null),gn(I),Pn(I,Z);var ie=ee?ee(I):1;ie!=I.height&&Fe(I,ie)}function Na(I){I.parent=null,gn(I)}var Qi={},ma={};function Ba(I,M){if(!I||/^\s*$/.test(I))return null;var Z=M.addModeClass?ma:Qi;return Z[I]||(Z[I]=I.replace(/\S+/g,"cm-$&"))}function Qa(I,M){var Z=F("span",null,null,i?"padding-right: .1px":null),ee={pre:F("pre",[Z],"CodeMirror-line"),content:Z,col:0,pos:0,cm:I,trailingSpace:!1,splitSpaces:I.getOption("lineWrapping")};M.measure={};for(var ie=0;ie<=(M.rest?M.rest.length:0);ie++){var Me=ie?M.rest[ie-1]:M.line,mt=void 0;ee.pos=0,ee.addToken=Co,_t(I.display.measure)&&(mt=ht(Me,I.doc.direction))&&(ee.addToken=Hi(ee.addToken,mt)),ee.map=[];var Nt=M!=I.display.externalMeasured&&$e(Me);ha(Me,ee,ft(I,Me,Nt)),Me.styleClasses&&(Me.styleClasses.bgClass&&(ee.bgClass=R(Me.styleClasses.bgClass,ee.bgClass||"")),Me.styleClasses.textClass&&(ee.textClass=R(Me.styleClasses.textClass,ee.textClass||""))),ee.map.length==0&&ee.map.push(0,0,ee.content.appendChild(ct(I.display.measure))),ie==0?(M.measure.map=ee.map,M.measure.cache={}):((M.measure.maps||(M.measure.maps=[])).push(ee.map),(M.measure.caches||(M.measure.caches=[])).push({}))}if(i){var zt=ee.content.lastChild;(/\bcm-tab\b/.test(zt.className)||zt.querySelector&&zt.querySelector(".cm-tab"))&&(ee.content.className="cm-tab-wrap-hack")}return At(I,"renderLine",I,M.line,ee.pre),ee.pre.className&&(ee.textClass=R(ee.pre.className,ee.textClass||"")),ee}function Wi(I){var M=N("span","\u2022","cm-invalidchar");return M.title="\\u"+I.charCodeAt(0).toString(16),M.setAttribute("aria-label",M.title),M}function Co(I,M,Z,ee,ie,Me,mt){if(!M)return;var Nt=I.splitSpaces?aa(M,I.trailingSpace):M,zt=I.cm.state.specialChars,Yt=!1,Cr;if(!zt.test(M))I.col+=M.length,Cr=document.createTextNode(Nt),I.map.push(I.pos,I.pos+M.length,Cr),c&&a<9&&(Yt=!0),I.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&&a<9?Cr.appendChild(N("span",[xn])):Cr.appendChild(xn),I.map.push(I.pos,I.pos+nn,xn),I.col+=nn,I.pos+=nn}if(!en)break;Ur+=nn+1;var Bn=void 0;if(en[0]==" "){var Zn=I.cm.options.tabSize,Jn=Zn-I.col%Zn;Bn=Cr.appendChild(N("span",Ue(Jn),"cm-tab")),Bn.setAttribute("role","presentation"),Bn.setAttribute("cm-text"," "),I.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]),I.col+=1):(Bn=I.cm.options.specialCharPlaceholder(en[0]),Bn.setAttribute("cm-text",en[0]),c&&a<9?Cr.appendChild(N("span",[Bn])):Cr.appendChild(Bn),I.col+=1);I.map.push(I.pos,I.pos+1,Bn),I.pos++}}if(I.trailingSpace=Nt.charCodeAt(M.length-1)==32,Z||ee||ie||Yt||Me||mt){var oi=Z||"";ee&&(oi+=ee),ie&&(oi+=ie);var li=N("span",[Cr],oi,Me);if(mt)for(var Je in mt)mt.hasOwnProperty(Je)&&Je!="style"&&Je!="class"&&li.setAttribute(Je,mt[Je]);return I.content.appendChild(li)}I.content.appendChild(Cr)}function aa(I,M){if(I.length>1&&!/ /.test(I))return I;for(var Z=M,ee="",ie=0;ieYt&&Ur.from<=Yt);en++);if(Ur.to>=Cr)return I(Z,ee,ie,Me,mt,Nt,zt);I(Z,ee.slice(0,Ur.to-Yt),ie,Me,null,Nt,zt),Me=null,ee=ee.slice(Ur.to-Yt),Yt=Ur.to}}}function ga(I,M,Z,ee){var ie=!ee&&Z.widgetNode;ie&&I.map.push(I.pos,I.pos+M,ie),!ee&&I.cm.display.input.needsContentAttribute&&(ie||(ie=I.content.appendChild(document.createElement("span"))),ie.setAttribute("cm-marker",Z.id)),ie&&(I.cm.display.input.setUneditable(ie),I.content.appendChild(ie)),I.pos+=M,I.trailingSpace=!1}function ha(I,M,Z){var ee=I.markedSpans,ie=I.text,Me=0;if(!ee){for(var mt=1;mtzt||Ze.collapsed&&ke.to==zt&&ke.from==zt)){if(ke.to!=null&&ke.to!=zt&&nn>ke.to&&(nn=ke.to,Bn=""),Ze.className&&(xn+=" "+Ze.className),Ze.css&&(en=(en?en+";":"")+Ze.css),Ze.startStyle&&ke.from==zt&&(Zn+=" "+Ze.startStyle),Ze.endStyle&&ke.to==nn&&(Je||(Je=[])).push(Ze.endStyle,ke.to),Ze.title&&((oi||(oi={})).title=Ze.title),Ze.attributes)for(var Lt in Ze.attributes)(oi||(oi={}))[Lt]=Ze.attributes[Lt];Ze.collapsed&&(!Jn||Yn(Jn.marker,Ze)<0)&&(Jn=ke)}else ke.from>zt&&nn>ke.from&&(nn=ke.from)}if(Je)for(var tr=0;tr=Nt)break;for(var Ir=Math.min(Nt,nn);;){if(Cr){var Hr=zt+Cr.length;if(!Jn){var Kr=Hr>Ir?Cr.slice(0,Ir-zt):Cr;M.addToken(M,Kr,Ur?Ur+xn:xn,Zn,zt+Kr.length==nn?Bn:"",en,oi)}if(Hr>=Ir){Cr=Cr.slice(Ir-zt),zt=Ir;break}zt=Hr,Zn=""}Cr=ie.slice(Me,Me=Z[Yt++]),Ur=Ba(Z[Yt++],M.cm.options)}}}function mo(I,M,Z){this.line=M,this.rest=Ci(M),this.size=this.rest?$e(Qe(this.rest))-Z+1:1,this.node=this.text=null,this.hidden=mn(I,M)}function kn(I,M,Z){for(var ee=[],ie,Me=M;Me2&&Me.push((zt.bottom+Yt.top)/2-Z.top)}}Me.push(Z.bottom-Z.top)}}function wn(I,M,Z){if(I.line==M)return{map:I.measure.map,cache:I.measure.cache};for(var ee=0;eeZ)return{map:I.measure.maps[ie],cache:I.measure.caches[ie],before:!0}}function Hn(I,M){M=ta(M);var Z=$e(M),ee=I.display.externalMeasured=new mo(I.doc,M,Z);ee.lineN=Z;var ie=ee.built=Qa(I,ee);return ee.text=ie.pre,O(I.display.lineMeasure,ie.pre),ee}function Sn(I,M,Z,ee){return vn(I,Mn(I,M),Z,ee)}function bn(I,M){if(M>=I.display.viewFrom&&M=Z.lineN&&MM)&&(Me=zt-Nt,ie=Me-1,M>=zt&&(mt="right")),ie!=null){if(ee=I[Yt+2],Nt==zt&&Z==(ee.insertLeft?"left":"right")&&(mt=Z),Z=="left"&&ie==0)for(;Yt&&I[Yt-2]==I[Yt-3]&&I[Yt-1].insertLeft;)ee=I[(Yt-=3)+2],mt="left";if(Z=="right"&&ie==zt-Nt)for(;Yt=0&&!((Z=I[ie]).left!=Z.right);ie--);return Z}function Xn(I,M,Z,ee){var ie=En(M.map,Z,ee),Me=ie.node,mt=ie.start,Nt=ie.end,zt=ie.collapse,Yt;if(Me.nodeType==3){for(var Cr=0;Cr<4;Cr++){for(;mt&&ue(M.line.text.charAt(ie.coverStart+mt));)--mt;for(;ie.coverStart+Nt0&&(zt=ee="right");var Ur;I.options.lineWrapping&&(Ur=Me.getClientRects()).length>1?Yt=Ur[ee=="right"?Ur.length-1:0]:Yt=Me.getBoundingClientRect()}if(c&&a<9&&!mt&&(!Yt||!Yt.left&&!Yt.right)){var en=Me.parentNode.getClientRects()[0];en?Yt={left:en.left,right:en.left+Ii(I.display),top:en.top,bottom:en.bottom}:Yt=Rn}for(var nn=Yt.top-M.rect.top,xn=Yt.bottom-M.rect.top,Bn=(nn+xn)/2,Zn=M.view.measure.heights,Jn=0;Jn=ee.text.length?(zt=ee.text.length,Yt="before"):zt<=0&&(zt=0,Yt="after"),!Nt)return mt(Yt=="before"?zt-1:zt,Yt=="before");function Cr(xn,Bn,Zn){var Jn=Nt[Bn],oi=Jn.level==1;return mt(Zn?xn-1:xn,oi!=Zn)}var Ur=Le(Nt,zt,Yt),en=de,nn=Cr(zt,Ur,Yt=="before");return en!=null&&(nn.other=Cr(zt,en,Yt!="before")),nn}function mi(I,M){var Z=0;M=st(I.doc,M),I.options.lineWrapping||(Z=Ii(I.display)*M.ch);var ee=ne(I.doc,M.line),ie=Ln(ee)+Vt(I.display);return{left:Z,right:Z,top:ie,bottom:ie+ee.height}}function hi(I,M,Z,ee,ie){var Me=Rt(I,M,Z);return Me.xRel=ie,ee&&(Me.outside=ee),Me}function qi(I,M,Z){var ee=I.doc;if(Z+=I.display.viewOffset,Z<0)return hi(ee.first,0,null,-1,-1);var ie=vt(ee,Z),Me=ee.first+ee.size-1;if(ie>Me)return hi(ee.first+ee.size-1,ne(ee,Me).text.length,null,1,1);M<0&&(M=0);for(var mt=ne(ee,ie);;){var Nt=oa(I,mt,ie,M,Z),zt=ia(mt,Nt.ch+(Nt.xRel>0||Nt.outside>0?1:0));if(!zt)return Nt;var Yt=zt.find(1);if(Yt.line==ie)return Yt;mt=ne(ee,ie=Yt.line)}}function va(I,M,Z,ee){ee-=Un(M);var ie=M.text.length,Me=Te(function(mt){return vn(I,Z,mt-1).bottom<=ee},ie,0);return ie=Te(function(mt){return vn(I,Z,mt).top>ee},Me,ie),{begin:Me,end:ie}}function Ea(I,M,Z,ee){Z||(Z=Mn(I,M));var ie=Ri(I,M,vn(I,Z,ee),"line").top;return va(I,M,Z,ie)}function ya(I,M,Z,ee){return I.bottom<=Z?!1:I.top>Z?!0:(ee?I.left:I.right)>M}function oa(I,M,Z,ee,ie){ie-=Ln(M);var Me=Mn(I,M),mt=Un(M),Nt=0,zt=M.text.length,Yt=!0,Cr=ht(M,I.doc.direction);if(Cr){var Ur=(I.options.lineWrapping?Ni:sa)(I,M,Z,Me,Cr,ee,ie);Yt=Ur.level!=1,Nt=Yt?Ur.from:Ur.to-1,zt=Yt?Ur.to:Ur.from-1}var en=null,nn=null,xn=Te(function(te){var ke=vn(I,Me,te);return ke.top+=mt,ke.bottom+=mt,ya(ke,ee,ie,!1)?(ke.top<=ie&&ke.left<=ee&&(en=te,nn=ke),!0):!1},Nt,zt),Bn,Zn,Jn=!1;if(nn){var oi=ee-nn.left=Je.bottom?1:0}return xn=Ne(M.text,xn,1),hi(Z,xn,Zn,Jn,ee-Bn)}function sa(I,M,Z,ee,ie,Me,mt){var Nt=Te(function(Ur){var en=ie[Ur],nn=en.level!=1;return ya(Mi(I,Rt(Z,nn?en.to:en.from,nn?"before":"after"),"line",M,ee),Me,mt,!0)},0,ie.length-1),zt=ie[Nt];if(Nt>0){var Yt=zt.level!=1,Cr=Mi(I,Rt(Z,Yt?zt.from:zt.to,Yt?"after":"before"),"line",M,ee);ya(Cr,Me,mt,!0)&&Cr.top>mt&&(zt=ie[Nt-1])}return zt}function Ni(I,M,Z,ee,ie,Me,mt){var Nt=va(I,M,ee,mt),zt=Nt.begin,Yt=Nt.end;/\s/.test(M.text.charAt(Yt-1))&&Yt--;for(var Cr=null,Ur=null,en=0;en=Yt||nn.to<=zt)continue;var xn=nn.level!=1,Bn=vn(I,ee,xn?Math.min(Yt,nn.to)-1:Math.max(zt,nn.from)).right,Zn=BnZn)&&(Cr=nn,Ur=Zn)}return Cr||(Cr=ie[ie.length-1]),Cr.fromYt&&(Cr={from:Cr.from,to:Yt,level:Cr.level}),Cr}var $n;function Ai(I){if(I.cachedTextHeight!=null)return I.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"))}O(I.measure,$n);var Z=$n.offsetHeight/50;return Z>3&&(I.cachedTextHeight=Z),C(I.measure),Z||1}function Ii(I){if(I.cachedCharWidth!=null)return I.cachedCharWidth;var M=N("span","xxxxxxxxxx"),Z=N("pre",[M],"CodeMirror-line-like");O(I.measure,Z);var ee=M.getBoundingClientRect(),ie=(ee.right-ee.left)/10;return ie>2&&(I.cachedCharWidth=ie),ie||10}function Vi(I){for(var M=I.display,Z={},ee={},ie=M.gutters.clientLeft,Me=M.gutters.firstChild,mt=0;Me;Me=Me.nextSibling,++mt){var Nt=I.display.gutterSpecs[mt].className;Z[Nt]=Me.offsetLeft+Me.clientLeft+ie,ee[Nt]=Me.clientWidth}return{fixedPos:Xi(M),gutterTotalWidth:M.gutters.offsetWidth,gutterLeft:Z,gutterWidth:ee,wrapperWidth:M.wrapper.clientWidth}}function Xi(I){return I.scroller.getBoundingClientRect().left-I.sizer.getBoundingClientRect().left}function bi(I){var M=Ai(I.display),Z=I.options.lineWrapping,ee=Z&&Math.max(5,I.display.scroller.clientWidth/Ii(I.display)-3);return function(ie){if(mn(I.doc,ie))return 0;var Me=0;if(ie.widgets)for(var mt=0;mt0&&(Yt=ne(I.doc,zt.line).text).length==zt.ch){var Cr=V(Yt,Yt.length,I.options.tabSize)-Yt.length;zt=Rt(zt.line,Math.max(0,Math.round((Me-br(I.display).left)/Ii(I.display))-Cr))}return zt}function la(I,M){if(M>=I.display.viewTo)return null;if(M-=I.display.viewFrom,M<0)return null;for(var Z=I.display.view,ee=0;eeM)&&(ie.updateLineNumbers=M),I.curOp.viewChanged=!0,M>=ie.viewTo)Qr&&Gn(I.doc,M)ie.viewFrom?Ma(I):(ie.viewFrom+=ee,ie.viewTo+=ee);else if(M<=ie.viewFrom&&Z>=ie.viewTo)Ma(I);else if(M<=ie.viewFrom){var Me=ra(I,Z,Z+ee,1);Me?(ie.view=ie.view.slice(Me.index),ie.viewFrom=Me.lineN,ie.viewTo+=ee):Ma(I)}else if(Z>=ie.viewTo){var mt=ra(I,M,M,-1);mt?(ie.view=ie.view.slice(0,mt.index),ie.viewTo=mt.lineN):Ma(I)}else{var Nt=ra(I,M,M,-1),zt=ra(I,Z,Z+ee,1);Nt&&zt?(ie.view=ie.view.slice(0,Nt.index).concat(kn(I,Nt.lineN,zt.lineN)).concat(ie.view.slice(zt.index)),ie.viewTo+=ee):Ma(I)}var Yt=ie.externalMeasured;Yt&&(Z=ie.lineN&&M=ee.viewTo)return;var Me=ee.view[la(I,M)];if(Me.node==null)return;var mt=Me.changes||(Me.changes=[]);W(mt,Z)==-1&&mt.push(Z)}function Ma(I){I.display.viewFrom=I.display.viewTo=I.doc.first,I.display.view=[],I.display.viewOffset=0}function ra(I,M,Z,ee){var ie=la(I,M),Me,mt=I.display.view;if(!Qr||Z==I.doc.first+I.doc.size)return{index:ie,lineN:Z};for(var Nt=I.display.viewFrom,zt=0;zt0){if(ie==mt.length-1)return null;Me=Nt+mt[ie].size-M,ie++}else Me=Nt-M;M+=Me,Z+=Me}for(;Gn(I.doc,Z)!=Z;){if(ie==(ee<0?0:mt.length-1))return null;Z+=ee*mt[ie-(ee<0?1:0)].size,ie+=ee}return{index:ie,lineN:Z}}function Yi(I,M,Z){var ee=I.display,ie=ee.view;ie.length==0||M>=ee.viewTo||Z<=ee.viewFrom?(ee.view=kn(I,M,Z),ee.viewFrom=M):(ee.viewFrom>M?ee.view=kn(I,M,ee.viewFrom).concat(ee.view):ee.viewFromZ&&(ee.view=ee.view.slice(0,la(I,Z)))),ee.viewTo=Z}function Xa(I){for(var M=I.display.view,Z=0,ee=0;ee=I.display.viewTo||Nt.to().line0?M.blinker=setInterval(function(){I.hasFocus()||Oi(I),M.cursorDiv.style.visibility=(Z=!Z)?"":"hidden"},I.options.cursorBlinkRate):I.options.cursorBlinkRate<0&&(M.cursorDiv.style.visibility="hidden")}function Ya(I){I.state.focused||(I.display.input.focus(),pa(I))}function Ka(I){I.state.delayingBlurEvent=!0,setTimeout(function(){I.state.delayingBlurEvent&&(I.state.delayingBlurEvent=!1,Oi(I))},100)}function pa(I,M){if(I.state.delayingBlurEvent&&(I.state.delayingBlurEvent=!1),I.options.readOnly=="nocursor")return;I.state.focused||(At(I,"focus",I,M),I.state.focused=!0,z(I.display.wrapper,"CodeMirror-focused"),!I.curOp&&I.display.selForContextMenu!=I.doc.sel&&(I.display.input.reset(),i&&setTimeout(function(){return I.display.input.reset(!0)},20)),I.display.input.receivedFocus()),vi(I)}function Oi(I,M){if(I.state.delayingBlurEvent)return;I.state.focused&&(At(I,"blur",I,M),I.state.focused=!1,x(I.display.wrapper,"CodeMirror-focused")),clearInterval(I.display.blinker),setTimeout(function(){I.state.focused||(I.display.shift=!1)},150)}function So(I){for(var M=I.display,Z=M.lineDiv.offsetTop,ee=0;ee.005||Cr<-.005)&&(Fe(ie.line,mt),za(ie.line),ie.rest))for(var Ur=0;UrI.display.sizerWidth){var en=Math.ceil(Nt/Ii(I.display));en>I.display.maxLineLength&&(I.display.maxLineLength=en,I.display.maxLine=ie.line,I.display.maxLineChanged=!0)}}}function za(I){if(I.widgets)for(var M=0;M=mt&&(Me=vt(M,Ln(ne(M,zt))-I.wrapper.clientHeight),mt=zt)}return{from:Me,to:Math.max(mt,Me+1)}}function qa(I,M){if(Xe(I,"scrollCursorIntoView"))return;var Z=I.display,ee=Z.sizer.getBoundingClientRect(),ie=null;if(M.top+ee.top<0?ie=!0:M.bottom+ee.top>(window.innerHeight||document.documentElement.clientHeight)&&(ie=!1),ie!=null&&!t){var Me=N("div","\u200B",null,`position: absolute; top: `+(M.top-Z.viewOffset-Vt(I.display))+`px; height: `+(M.bottom-M.top+Mr(I)+Z.barHeight)+`px; left: `+M.left+"px; width: "+Math.max(2,M.right-M.left)+"px;");I.display.lineSpace.appendChild(Me),Me.scrollIntoView(ie),I.display.lineSpace.removeChild(Me)}}function ho(I,M,Z,ee){ee==null&&(ee=0);var ie;!I.options.lineWrapping&&M==Z&&(M=M.ch?Rt(M.line,M.sticky=="before"?M.ch-1:M.ch,"after"):M,Z=M.sticky=="before"?Rt(M.line,M.ch+1,"before"):M);for(var Me=0;Me<5;Me++){var mt=!1,Nt=Mi(I,M),zt=!Z||Z==M?Nt:Mi(I,Z);ie={left:Math.min(Nt.left,zt.left),top:Math.min(Nt.top,zt.top)-ee,right:Math.max(Nt.left,zt.left),bottom:Math.max(Nt.bottom,zt.bottom)+ee};var Yt=to(I,ie),Cr=I.doc.scrollTop,Ur=I.doc.scrollLeft;if(Yt.scrollTop!=null&&(Gi(I,Yt.scrollTop),Math.abs(I.doc.scrollTop-Cr)>1&&(mt=!0)),Yt.scrollLeft!=null&&(go(I,Yt.scrollLeft),Math.abs(I.doc.scrollLeft-Ur)>1&&(mt=!0)),!mt)break}return ie}function Ca(I,M){var Z=to(I,M);Z.scrollTop!=null&&Gi(I,Z.scrollTop),Z.scrollLeft!=null&&go(I,Z.scrollLeft)}function to(I,M){var Z=I.display,ee=Ai(I.display);M.top<0&&(M.top=0);var ie=I.curOp&&I.curOp.scrollTop!=null?I.curOp.scrollTop:Z.scroller.scrollTop,Me=rn(I),mt={};M.bottom-M.top>Me&&(M.bottom=M.top+Me);var Nt=I.doc.height+sr(Z),zt=M.topNt-ee;if(M.topie+Me){var Cr=Math.min(M.top,(Yt?Nt:M.bottom)-Me);Cr!=ie&&(mt.scrollTop=Cr)}var Ur=I.options.fixedGutter?0:Z.gutters.offsetWidth,en=I.curOp&&I.curOp.scrollLeft!=null?I.curOp.scrollLeft:Z.scroller.scrollLeft-Ur,nn=Dr(I)-Z.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 Lo(I,M){if(M==null)return;Da(I),I.curOp.scrollTop=(I.curOp.scrollTop==null?I.doc.scrollTop:I.curOp.scrollTop)+M}function Ia(I){Da(I);var M=I.getCursor();I.curOp.scrollToPos={from:M,to:M,margin:I.options.cursorScrollMargin}}function Fi(I,M,Z){(M!=null||Z!=null)&&Da(I),M!=null&&(I.curOp.scrollLeft=M),Z!=null&&(I.curOp.scrollTop=Z)}function Ja(I,M){Da(I),I.curOp.scrollToPos=M}function Da(I){var M=I.curOp.scrollToPos;if(M){I.curOp.scrollToPos=null;var Z=mi(I,M.from),ee=mi(I,M.to);pi(I,Z,ee,M.margin)}}function pi(I,M,Z,ee){var ie=to(I,{left:Math.min(M.left,Z.left),top:Math.min(M.top,Z.top)-ee,right:Math.max(M.right,Z.right),bottom:Math.max(M.bottom,Z.bottom)+ee});Fi(I,ie.scrollLeft,ie.scrollTop)}function Gi(I,M){if(Math.abs(I.doc.scrollTop-M)<2)return;y||Io(I,{top:M}),oo(I,M,!0),y&&Io(I),ps(I,100)}function oo(I,M,Z){if(M=Math.max(0,Math.min(I.display.scroller.scrollHeight-I.display.scroller.clientHeight,M)),I.display.scroller.scrollTop==M&&!Z)return;I.doc.scrollTop=M,I.display.scrollbars.setScrollTop(M),I.display.scroller.scrollTop!=M&&(I.display.scroller.scrollTop=M)}function go(I,M,Z,ee){if(M=Math.max(0,Math.min(M,I.display.scroller.scrollWidth-I.display.scroller.clientWidth)),(Z?M==I.doc.scrollLeft:Math.abs(I.doc.scrollLeft-M)<2)&&!ee)return;I.doc.scrollLeft=M,ms(I),I.display.scroller.scrollLeft!=M&&(I.display.scroller.scrollLeft=M),I.display.scrollbars.setScrollLeft(M)}function fo(I){var M=I.display,Z=M.gutters.offsetWidth,ee=Math.round(I.doc.height+sr(I.display));return{clientHeight:M.scroller.clientHeight,viewHeight:M.wrapper.clientHeight,scrollWidth:M.scroller.scrollWidth,clientWidth:M.scroller.clientWidth,viewWidth:M.wrapper.clientWidth,barLeft:I.options.fixedGutter?Z:0,docHeight:ee,scrollHeight:ee+Mr(I)+M.barHeight,nativeBarWidth:M.nativeBarWidth,gutterWidth:Z}}var Ta=function(M,Z,ee){this.cm=ee;var ie=this.vert=N("div",[N("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Me=this.horiz=N("div",[N("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ie.tabIndex=Me.tabIndex=-1,M(ie),M(Me),Be(ie,"scroll",function(){ie.clientHeight&&Z(ie.scrollTop,"vertical")}),Be(Me,"scroll",function(){Me.clientWidth&&Z(Me.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,c&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ta.prototype.update=function(I){var M=I.scrollWidth>I.clientWidth+1,Z=I.scrollHeight>I.clientHeight+1,ee=I.nativeBarWidth;if(Z){this.vert.style.display="block",this.vert.style.bottom=M?ee+"px":"0";var ie=I.viewHeight-(M?ee:0);this.vert.firstChild.style.height=Math.max(0,I.scrollHeight-I.clientHeight+ie)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(M){this.horiz.style.display="block",this.horiz.style.right=Z?ee+"px":"0",this.horiz.style.left=I.barLeft+"px";var Me=I.viewWidth-I.barLeft-(Z?ee:0);this.horiz.firstChild.style.width=Math.max(0,I.scrollWidth-I.clientWidth+Me)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&I.clientHeight>0&&(ee==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:Z?ee:0,bottom:M?ee:0}},Ta.prototype.setScrollLeft=function(I){this.horiz.scrollLeft!=I&&(this.horiz.scrollLeft=I),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ta.prototype.setScrollTop=function(I){this.vert.scrollTop!=I&&(this.vert.scrollTop=I),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ta.prototype.zeroWidthHack=function(){var I=w&&!l?"12px":"18px";this.horiz.style.height=this.vert.style.width=I,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new X,this.disableVert=new X},Ta.prototype.enableZeroWidthBar=function(I,M,Z){I.style.pointerEvents="auto";function ee(){var ie=I.getBoundingClientRect(),Me=Z=="vert"?document.elementFromPoint(ie.right-1,(ie.top+ie.bottom)/2):document.elementFromPoint((ie.right+ie.left)/2,ie.bottom-1);Me!=I?I.style.pointerEvents="none":M.set(1e3,ee)}M.set(1e3,ee)},Ta.prototype.clear=function(){var I=this.horiz.parentNode;I.removeChild(this.horiz),I.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(I,M){M||(M=fo(I));var Z=I.display.barWidth,ee=I.display.barHeight;Vo(I,M);for(var ie=0;ie<4&&Z!=I.display.barWidth||ee!=I.display.barHeight;ie++)Z!=I.display.barWidth&&I.options.lineWrapping&&So(I),Vo(I,fo(I)),Z=I.display.barWidth,ee=I.display.barHeight}function Vo(I,M){var Z=I.display,ee=Z.scrollbars.update(M);Z.sizer.style.paddingRight=(Z.barWidth=ee.right)+"px",Z.sizer.style.paddingBottom=(Z.barHeight=ee.bottom)+"px",Z.heightForcer.style.borderBottom=ee.bottom+"px solid transparent",ee.right&&ee.bottom?(Z.scrollbarFiller.style.display="block",Z.scrollbarFiller.style.height=ee.bottom+"px",Z.scrollbarFiller.style.width=ee.right+"px"):Z.scrollbarFiller.style.display="",ee.bottom&&I.options.coverGutterNextToScrollbar&&I.options.fixedGutter?(Z.gutterFiller.style.display="block",Z.gutterFiller.style.height=ee.bottom+"px",Z.gutterFiller.style.width=M.gutterWidth+"px"):Z.gutterFiller.style.display=""}var ro={native:Ta,null:ki};function vo(I){I.display.scrollbars&&(I.display.scrollbars.clear(),I.display.scrollbars.addClass&&x(I.display.wrapper,I.display.scrollbars.addClass)),I.display.scrollbars=new ro[I.options.scrollbarStyle](function(M){I.display.wrapper.insertBefore(M,I.display.scrollbarFiller),Be(M,"mousedown",function(){I.state.focused&&setTimeout(function(){return I.display.input.focus()},0)}),M.setAttribute("cm-not-content","true")},function(M,Z){Z=="horizontal"?go(I,M):Gi(I,M)},I),I.display.scrollbars.addClass&&z(I.display.wrapper,I.display.scrollbars.addClass)}var po=0;function Zi(I){I.curOp={cm:I,viewChanged:!1,startHeight:I.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(I.curOp)}function xo(I){var M=I.curOp;M&&uo(M,function(Z){for(var ee=0;ee=Z.viewTo)||Z.maxLineChanged&&M.options.lineWrapping,I.update=I.mustUpdate&&new Xo(M,I.mustUpdate&&{top:I.scrollTop,ensure:I.scrollToPos},I.forceUpdate)}function _s(I){I.updatedDisplay=I.mustUpdate&&La(I.cm,I.update)}function Cs(I){var M=I.cm,Z=M.display;I.updatedDisplay&&So(M),I.barMeasure=fo(M),Z.maxLineChanged&&!M.options.lineWrapping&&(I.adjustWidthTo=Sn(M,Z.maxLine,Z.maxLine.text.length).left+3,M.display.sizerWidth=I.adjustWidthTo,I.barMeasure.scrollWidth=Math.max(Z.scroller.clientWidth,Z.sizer.offsetLeft+I.adjustWidthTo+Mr(M)+M.display.barWidth),I.maxScrollLeft=Math.max(0,Z.sizer.offsetLeft+I.adjustWidthTo-Dr(M))),(I.updatedDisplay||I.selectionChanged)&&(I.preparedSelection=Z.input.prepareSelection())}function Ts(I){var M=I.cm;I.adjustWidthTo!=null&&(M.display.sizer.style.minWidth=I.adjustWidthTo+"px",I.maxScrollLeft=I.display.viewTo)return;var Z=+new Date+I.options.workTime,ee=Ht(I,M.highlightFrontier),ie=[];M.iter(ee.line,Math.min(M.first+M.size,I.display.viewTo+500),function(Me){if(ee.line>=I.display.viewFrom){var mt=Me.styles,Nt=Me.text.length>I.options.maxHighlightLength?Ot(M.mode,ee.state):null,zt=Tt(I,Me,ee,!0);Nt&&(ee.state=Nt),Me.styles=zt.styles;var Yt=Me.styleClasses,Cr=zt.classes;Cr?Me.styleClasses=Cr:Yt&&(Me.styleClasses=null);for(var Ur=!mt||mt.length!=Me.styles.length||Yt!=Cr&&(!Yt||!Cr||Yt.bgClass!=Cr.bgClass||Yt.textClass!=Cr.textClass),en=0;!Ur&&enZ)return ps(I,I.options.workDelay),!0}),M.highlightFrontier=ee.line,M.modeFrontier=Math.max(M.modeFrontier,ee.line),ie.length&&bo(I,function(){for(var Me=0;Me=Z.viewFrom&&M.visible.to<=Z.viewTo&&(Z.updateLineNumbers==null||Z.updateLineNumbers>=Z.viewTo)&&Z.renderedView==Z.view&&Xa(I)==0)return!1;ls(I)&&(Ma(I),M.dims=Vi(I));var ie=ee.first+ee.size,Me=Math.max(M.visible.from-I.options.viewportMargin,ee.first),mt=Math.min(ie,M.visible.to+I.options.viewportMargin);Z.viewFrommt&&Z.viewTo-mt<20&&(mt=Math.min(ie,Z.viewTo)),Qr&&(Me=Gn(I.doc,Me),mt=Oa(I.doc,mt));var Nt=Me!=Z.viewFrom||mt!=Z.viewTo||Z.lastWrapHeight!=M.wrapperHeight||Z.lastWrapWidth!=M.wrapperWidth;Yi(I,Me,mt),Z.viewOffset=Ln(ne(I.doc,Z.viewFrom)),I.display.mover.style.top=Z.viewOffset+"px";var zt=Xa(I);if(!Nt&&zt==0&&!M.force&&Z.renderedView==Z.view&&(Z.updateLineNumbers==null||Z.updateLineNumbers>=Z.viewTo))return!1;var Yt=Ls(I);return zt>4&&(Z.lineDiv.style.display="none"),ts(I,Z.updateLineNumbers,M.dims),zt>4&&(Z.lineDiv.style.display=""),Z.renderedView=Z.view,Fa(Yt),C(Z.cursorDiv),C(Z.selectionDiv),Z.gutters.style.height=Z.sizer.style.minHeight=0,Nt&&(Z.lastWrapHeight=M.wrapperHeight,Z.lastWrapWidth=M.wrapperWidth,ps(I,400)),Z.updateLineNumbers=null,!0}function Oo(I,M){for(var Z=M.viewport,ee=!0;;ee=!1){if(!ee||!I.options.lineWrapping||M.oldDisplayWidth==Dr(I)){if(Z&&Z.top!=null&&(Z={top:Math.min(I.doc.height+sr(I.display)-rn(I),Z.top)}),M.visible=ja(I.display,I.doc,Z),M.visible.from>=I.display.viewFrom&&M.visible.to<=I.display.viewTo)break}else ee&&(M.visible=ja(I.display,I.doc,Z));if(!La(I,M))break;So(I);var ie=fo(I);Ki(I),Ra(I,ie),rs(I,ie),M.force=!1}M.signal(I,"update",I),(I.display.viewFrom!=I.display.reportedViewFrom||I.display.viewTo!=I.display.reportedViewTo)&&(M.signal(I,"viewportChange",I,I.display.viewFrom,I.display.viewTo),I.display.reportedViewFrom=I.display.viewFrom,I.display.reportedViewTo=I.display.viewTo)}function Io(I,M){var Z=new Xo(I,M);if(La(I,Z)){So(I),Oo(I,Z);var ee=fo(I);Ki(I),Ra(I,ee),rs(I,ee),Z.finish()}}function ts(I,M,Z){var ee=I.display,ie=I.options.lineNumbers,Me=ee.lineDiv,mt=Me.firstChild;function Nt(xn){var Bn=xn.nextSibling;return i&&w&&I.display.currentWheelTarget==xn?xn.style.display="none":xn.parentNode.removeChild(xn),Bn}for(var zt=ee.view,Yt=ee.viewFrom,Cr=0;Cr-1&&(nn=!1),Wr(I,Ur,Yt,Z)),nn&&(C(Ur.lineNumber),Ur.lineNumber.appendChild(document.createTextNode($t(I.options,Yt)))),mt=Ur.node.nextSibling}Yt+=Ur.size}for(;mt;)mt=Nt(mt)}function Bo(I){var M=I.gutters.offsetWidth;I.sizer.style.marginLeft=M+"px"}function rs(I,M){I.display.sizer.style.minHeight=M.docHeight+"px",I.display.heightForcer.style.top=M.docHeight+"px",I.display.gutters.style.height=M.docHeight+I.display.barHeight+Mr(I)+"px"}function ms(I){var M=I.display,Z=M.view;if(!M.alignWidgets&&(!M.gutters.firstChild||!I.options.fixedGutter))return;for(var ee=Xi(M)-M.scroller.scrollLeft+I.doc.scrollLeft,ie=M.gutters.offsetWidth,Me=ee+"px",mt=0;mtmt.clientWidth,zt=mt.scrollHeight>mt.clientHeight;if(!(ee&&Nt||ie&&zt))return;if(ie&&w&&i){e:for(var Yt=M.target,Cr=Me.view;Yt!=mt;Yt=Yt.parentNode)for(var Ur=0;Ur=0&&Kt(I,ee.to())<=0)return Z}return-1};var le=function(M,Z){this.anchor=M,this.head=Z};le.prototype.from=function(){return dr(this.anchor,this.head)},le.prototype.to=function(){return Mt(this.anchor,this.head)},le.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ee(I,M,Z){var ee=I&&I.options.selectionsMayTouch,ie=M[Z];M.sort(function(en,nn){return Kt(en.from(),nn.from())}),Z=W(M,ie);for(var Me=1;Me0:zt>=0){var Yt=dr(Nt.from(),mt.from()),Cr=Mt(Nt.to(),mt.to()),Ur=Nt.empty()?mt.from()==mt.head:Nt.from()==Nt.head;Me<=Z&&--Z,M.splice(--Me,2,new le(Ur?Cr:Yt,Ur?Yt:Cr))}}return new Pt(M,Z)}function Ie(I,M){return new Pt([new le(I,M||I)],0)}function We(I){return I.text?Rt(I.from.line+I.text.length-1,Qe(I.text).length+(I.text.length==1?I.from.ch:0)):I.to}function Ct(I,M){if(Kt(I,M.from)<0)return I;if(Kt(I,M.to)<=0)return We(M);var Z=I.line+M.text.length-(M.to.line-M.from.line)-1,ee=I.ch;return I.line==M.to.line&&(ee+=We(M).ch-M.to.ch),Rt(Z,ee)}function Ut(I,M){for(var Z=[],ee=0;ee1&&I.remove(Nt.line+1,xn-1),I.insert(Nt.line+1,Jn)}Tr(I,"change",I,M)}function Cn(I,M,Z){function ee(ie,Me,mt){if(ie.linked)for(var Nt=0;Nt1&&!I.done[I.done.length-2].ranges)return I.done.pop(),Qe(I.done)}function Wa(I,M,Z,ee){var ie=I.history;ie.undone.length=0;var Me=+new Date,mt,Nt;if((ie.lastOp==ee||ie.lastOrigin==M.origin&&M.origin&&(M.origin.charAt(0)=="+"&&ie.lastModTime>Me-(I.cm?I.cm.options.historyEventDelay:500)||M.origin.charAt(0)=="*"))&&(mt=lo(ie,ie.lastOp==ee)))Nt=Qe(mt.changes),Kt(M.from,M.to)==0&&Kt(M.from,Nt.to)==0?Nt.to=We(M):mt.changes.push(ji(I,M));else{var zt=Qe(ie.done);for((!zt||!zt.ranges)&&$a(I.sel,ie.done),mt={changes:[ji(I,M)],generation:ie.generation},ie.done.push(mt);ie.done.length>ie.undoDepth;)ie.done.shift(),ie.done[0].ranges||ie.done.shift()}ie.done.push(Z),ie.generation=++ie.maxGeneration,ie.lastModTime=ie.lastSelTime=Me,ie.lastOp=ie.lastSelOp=ee,ie.lastOrigin=ie.lastSelOrigin=M.origin,Nt||At(I,"historyAdded")}function yo(I,M,Z,ee){var ie=M.charAt(0);return ie=="*"||ie=="+"&&Z.ranges.length==ee.ranges.length&&Z.somethingSelected()==ee.somethingSelected()&&new Date-I.history.lastSelTime<=(I.cm?I.cm.options.historyEventDelay:500)}function Ao(I,M,Z,ee){var ie=I.history,Me=ee&&ee.origin;Z==ie.lastSelOp||Me&&ie.lastSelOrigin==Me&&(ie.lastModTime==ie.lastSelTime&&ie.lastOrigin==Me||yo(I,Me,Qe(ie.done),M))?ie.done[ie.done.length-1]=M:$a(M,ie.done),ie.lastSelTime=+new Date,ie.lastSelOrigin=Me,ie.lastSelOp=Z,ee&&ee.clearRedo!==!1&&Sa(ie.undone)}function $a(I,M){var Z=Qe(M);Z&&Z.ranges&&Z.equals(I)||M.push(I)}function Fo(I,M,Z,ee){var ie=M["spans_"+I.id],Me=0;I.iter(Math.max(I.first,Z),Math.min(I.first+I.size,ee),function(mt){mt.markedSpans&&((ie||(ie=M["spans_"+I.id]={}))[Me]=mt.markedSpans),++Me})}function No(I){if(!I)return null;for(var M,Z=0;Z-1&&(Qe(Nt)[Ur]=Yt[Ur],delete Yt[Ur]))}}return ee}function Qo(I,M,Z,ee){if(ee){var ie=I.anchor;if(Z){var Me=Kt(M,ie)<0;Me!=Kt(Z,ie)<0?(ie=M,M=Z):Me!=Kt(M,Z)<0&&(M=Z)}return new le(ie,M)}else return new le(Z||M,M)}function wo(I,M,Z,ee,ie){ie==null&&(ie=I.cm&&(I.cm.display.shift||I.extend)),Eo(I,new Pt([Qo(I.sel.primary(),M,Z,ie)],0),ee)}function us(I,M,Z){for(var ee=[],ie=I.cm&&(I.cm.display.shift||I.extend),Me=0;Me=M.ch:Nt.to>M.ch))){if(ie&&(At(zt,"beforeCursorEnter"),zt.explicitlyCleared))if(Me.markedSpans){--mt;continue}else break;if(!zt.atomic)continue;if(Z){var Ur=zt.find(ee<0?1:-1),en=void 0;if((ee<0?Cr:Yt)&&(Ur=As(I,Ur,-ee,Ur&&Ur.line==M.line?Me:null)),Ur&&Ur.line==M.line&&(en=Kt(Ur,Z))&&(ee<0?en<0:en>0))return ys(I,Ur,M,ee,ie)}var nn=zt.find(ee<0?-1:1);return(ee<0?Yt:Cr)&&(nn=As(I,nn,ee,nn.line==M.line?Me:null)),nn?ys(I,nn,M,ee,ie):null}}return M}function Ms(I,M,Z,ee,ie){var Me=ee||1,mt=ys(I,M,Z,Me,ie)||!ie&&ys(I,M,Z,Me,!0)||ys(I,M,Z,-Me,ie)||!ie&&ys(I,M,Z,-Me,!0);return mt||(I.cantEdit=!0,Rt(I.first,0))}function As(I,M,Z,ee){return Z<0&&M.ch==0?M.line>I.first?st(I,Rt(M.line-1)):null:Z>0&&M.ch==(ee||ne(I,M.line)).text.length?M.line=0;--ie)ua(I,{from:ee[ie].from,to:ee[ie].to,text:ie?[""]:M.text,origin:M.origin});else ua(I,M)}function ua(I,M){if(M.text.length==1&&M.text[0]==""&&Kt(M.from,M.to)==0)return;var Z=Ut(I,M);Wa(I,M,Z,I.cm?I.cm.curOp.id:NaN),Wn(I,M,Z,Nn(I,M));var ee=[];Cn(I,function(ie,Me){!Me&&W(ee,ie.history)==-1&&(Zo(ie.history,M),ee.push(ie.history)),Wn(ie,M,null,Nn(ie,M))})}function ui(I,M,Z){var ee=I.cm&&I.cm.state.suppressEdits;if(ee&&!Z)return;for(var ie=I.history,Me,mt=I.sel,Nt=M=="undo"?ie.done:ie.undone,zt=M=="undo"?ie.undone:ie.done,Yt=0;Yt=0;--nn){var xn=en(nn);if(xn)return xn.v}}function Bi(I,M){if(M==0)return;if(I.first+=M,I.sel=new Pt(gt(I.sel.ranges,function(ie){return new le(Rt(ie.anchor.line+M,ie.anchor.ch),Rt(ie.head.line+M,ie.head.ch))}),I.sel.primIndex),I.cm){gi(I.cm,I.first,I.first-M,M);for(var Z=I.cm.display,ee=Z.viewFrom;eeI.lastLine())return;if(M.from.lineMe&&(M={from:M.from,to:Rt(Me,ne(I,Me).text.length),text:[M.text[0]],origin:M.origin}),M.removed=xe(I,M.from,M.to),Z||(Z=Ut(I,M)),I.cm?io(I.cm,M,ee):yn(I,M,ee),ds(I,Z,ge),I.cantEdit&&Ms(I,Rt(I.firstLine(),0))&&(I.cantEdit=!1)}function io(I,M,Z){var ee=I.doc,ie=I.display,Me=M.from,mt=M.to,Nt=!1,zt=Me.line;I.options.lineWrapping||(zt=$e(ta(ne(ee,Me.line))),ee.iter(zt,mt.line+1,function(nn){if(nn==ie.maxLine)return Nt=!0,!0})),ee.sel.contains(M.from,M.to)>-1&&et(I),yn(ee,M,Z,bi(I)),I.options.lineWrapping||(ee.iter(zt,Me.line+M.text.length,function(nn){var xn=_n(nn);xn>ie.maxLineLength&&(ie.maxLine=nn,ie.maxLineLength=xn,ie.maxLineChanged=!0,Nt=!1)}),Nt&&(I.curOp.updateMaxLine=!0)),qr(ee,Me.line),ps(I,400);var Yt=M.text.length-(mt.line-Me.line)-1;M.full?gi(I):Me.line==mt.line&&M.text.length==1&&!ln(I.doc,M)?Pa(I,Me.line,"text"):gi(I,Me.line,mt.line+1,Yt);var Cr=tt(I,"changes"),Ur=tt(I,"change");if(Ur||Cr){var en={from:Me,to:mt,text:M.text,removed:M.removed,origin:M.origin};Ur&&Tr(I,"change",I,en),Cr&&(I.curOp.changeObjs||(I.curOp.changeObjs=[])).push(en)}I.display.selForContextMenu=null}function qo(I,M,Z,ee,ie){var Me;ee||(ee=Z),Kt(ee,Z)<0&&(Me=[ee,Z],Z=Me[0],ee=Me[1]),typeof M=="string"&&(M=I.splitLines(M)),bs(I,{from:Z,to:ee,text:M,origin:ie})}function gs(I,M,Z,ee){Z1||!(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 Z=0;Z50){for(var Nt=Me.lines.length%25+25,zt=Nt;zt10);M.parent.maybeSpill()},iterN:function(M,Z,ee){for(var ie=0;ieI.display.maxLineLength&&(I.display.maxLine=Yt,I.display.maxLineLength=Cr,I.display.maxLineChanged=!0)}ee!=null&&I&&this.collapsed&&gi(I,ee,ie+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,I&&Rs(I.doc)),I&&Tr(I,"markerCleared",I,this,ee,ie),M&&xo(I),this.parent&&this.parent.clear()},Is.prototype.find=function(I,M){I==null&&this.type=="bookmark"&&(I=1);for(var Z,ee,ie=0;ie0||mt==0&&Me.clearWhenEmpty!==!1)return Me;if(Me.replacedWith&&(Me.collapsed=!0,Me.widgetNode=F("span",[Me.replacedWith],"CodeMirror-widget"),ee.handleMouseEvents||Me.widgetNode.setAttribute("cm-ignore-events","true"),ee.insertLeft&&(Me.widgetNode.insertLeft=!0)),Me.collapsed){if(xa(I,M.line,M,Z,Me)||M.line!=Z.line&&xa(I,Z.line,M,Z,Me))throw new Error("Inserting collapsed marker partially overlapping an existing one");ur()}Me.addToHistory&&Wa(I,{from:M,to:Z,origin:"markText"},I.sel,NaN);var Nt=M.line,zt=I.cm,Yt;if(I.iter(Nt,Z.line+1,function(Ur){zt&&Me.collapsed&&!zt.options.lineWrapping&&ta(Ur)==zt.display.maxLine&&(Yt=!0),Me.collapsed&&Nt!=M.line&&Fe(Ur,0),xr(Ur,new pr(Me,Nt==M.line?M.ch:null,Nt==Z.line?Z.ch:null)),++Nt}),Me.collapsed&&I.iter(M.line,Z.line+1,function(Ur){mn(I,Ur)&&Fe(Ur,0)}),Me.clearOnEnter&&Be(Me,"beforeCursorEnter",function(){return Me.clear()}),Me.readOnly&&(_r(),(I.history.done.length||I.history.undone.length)&&I.clearHistory()),Me.collapsed&&(Me.id=++Nl,Me.atomic=!0),zt){if(Yt&&(zt.curOp.updateMaxLine=!0),Me.collapsed)gi(zt,M.line,Z.line+1);else if(Me.className||Me.startStyle||Me.endStyle||Me.css||Me.attributes||Me.title)for(var Cr=M.line;Cr<=Z.line;Cr++)Pa(zt,Cr,"text");Me.atomic&&Rs(zt.doc),Tr(zt,"markerAdded",zt,Me)}return Me}var el=function(M,Z){this.markers=M,this.primary=Z;for(var ee=0;ee=0;zt--)bs(this,ee[zt]);Nt?Yo(this,Nt):this.cm&&Ia(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,Z=0,ee=0,ie=0;ie=M.ch)&&Z.push(Me.marker.parent||Me.marker)}return Z},findMarks:function(M,Z,ee){M=st(this,M),Z=st(this,Z);var ie=[],Me=M.line;return this.iter(M.line,Z.line+1,function(mt){var Nt=mt.markedSpans;if(Nt)for(var zt=0;zt=Yt.to||Yt.from==null&&Me!=M.line||Yt.from!=null&&Me==Z.line&&Yt.from>=Z.ch)&&(!ee||ee(Yt.marker))&&ie.push(Yt.marker.parent||Yt.marker)}++Me}),ie},getAllMarks:function(){var M=[];return this.iter(function(Z){var ee=Z.markedSpans;if(ee)for(var ie=0;ieM)return Z=M,!0;M-=mt,++ee}),st(this,Rt(ee,Z))},indexFromPos:function(M){M=st(this,M);var Z=M.ch;if(M.lineZ&&(Z=M.from),M.to!=null&&M.to-1){M.state.draggingText(I),setTimeout(function(){return M.display.input.focus()},20);return}try{var Cr=I.dataTransfer.getData("Text");if(Cr){var Ur;if(M.state.draggingText&&!M.state.draggingText.copy&&(Ur=M.listSelections()),ds(M.doc,Ie(Z,Z)),Ur)for(var en=0;en=0;Nt--)qo(I.doc,"",ee[Nt].from,ee[Nt].to,"+delete");Ia(I)})}function hl(I,M,Z){var ee=Ne(I.text,M+Z,Z);return ee<0||ee>I.text.length?null:ee}function il(I,M,Z){var ee=hl(I,M.ch,Z);return ee==null?null:new Rt(M.line,ee,Z<0?"after":"before")}function fl(I,M,Z,ee,ie){if(I){M.doc.direction=="rtl"&&(ie=-ie);var Me=ht(Z,M.doc.direction);if(Me){var mt=ie<0?Qe(Me):Me[0],Nt=ie<0==(mt.level==1),zt=Nt?"after":"before",Yt;if(mt.level>0||M.doc.direction=="rtl"){var Cr=Mn(M,Z);Yt=ie<0?Z.text.length-1:0;var Ur=vn(M,Cr,Yt).top;Yt=Te(function(en){return vn(M,Cr,en).top==Ur},ie<0==(mt.level==1)?mt.from:mt.to-1,Yt),zt=="before"&&(Yt=hl(Z,Yt,1))}else Yt=ie<0?mt.to:mt.from;return new Rt(ee,Yt,zt)}}return new Rt(ee,ie<0?Z.text.length:0,ie<0?"before":"after")}function El(I,M,Z,ee){var ie=ht(M,I.doc.direction);if(!ie)return il(M,Z,ee);Z.ch>=M.text.length?(Z.ch=M.text.length,Z.sticky="before"):Z.ch<=0&&(Z.ch=0,Z.sticky="after");var Me=Le(ie,Z.ch,Z.sticky),mt=ie[Me];if(I.doc.direction=="ltr"&&mt.level%2==0&&(ee>0?mt.to>Z.ch:mt.from=mt.from&&en>=Cr.begin)){var nn=Ur?"before":"after";return new Rt(Z.line,en,nn)}}var xn=function(oi,li,Je){for(var te=function(vr,Ir){return Ir?new Rt(Z.line,Nt(vr,1),"before"):new Rt(Z.line,vr,"after")};oi>=0&&oi0==(ke.level!=1),Lt=Ze?Je.begin:Nt(Je.end,-1);if(ke.from<=Lt&&Lt0?Cr.end:Nt(Cr.begin,-1);return Zn!=null&&!(ee>0&&Zn==M.text.length)&&(Bn=xn(ee>0?0:ie.length-1,ee,Yt(Zn)),Bn)?Bn:null}var zs={selectAll:Fs,singleSelection:function(M){return M.setSelection(M.getCursor("anchor"),M.getCursor("head"),ge)},killLine:function(M){return Qs(M,function(Z){if(Z.empty()){var ee=ne(M.doc,Z.head.line).text.length;return Z.head.ch==ee&&Z.head.line0)Me=new Rt(Me.line,Me.ch+1),M.replaceRange(mt.charAt(Me.ch-1)+mt.charAt(Me.ch-2),Rt(Me.line,Me.ch-2),Me,"+transpose");else if(Me.line>M.doc.first){var Nt=ne(M.doc,Me.line-1).text;Nt&&(Me=new Rt(Me.line,1),M.replaceRange(mt.charAt(0)+M.doc.lineSeparator()+Nt.charAt(Nt.length-1),Rt(Me.line-1,Nt.length-1),Me,"+transpose"))}}ee.push(new le(Me,Me))}M.setSelections(ee)})},newlineAndIndent:function(M){return bo(M,function(){for(var Z=M.listSelections(),ee=Z.length-1;ee>=0;ee--)M.replaceRange(M.doc.lineSeparator(),Z[ee].anchor,Z[ee].head,"+input");Z=M.listSelections();for(var ie=0;ieI&&Kt(M,this.pos)==0&&Z==this.button};var ol,Zs;function Pl(I,M){var Z=+new Date;return Zs&&Zs.compare(Z,I,M)?(ol=Zs=null,"triple"):ol&&ol.compare(Z,I,M)?(Zs=new xs(Z,I,M),ol=null,"double"):(ol=new xs(Z,I,M),Zs=null,"single")}function Ll(I){var M=this,Z=M.display;if(Xe(M,I)||Z.activeTouch&&Z.input.supportsTouch())return;if(Z.input.ensurePolled(),Z.shift=I.shiftKey,St(Z,I)){i||(Z.scroller.draggable=!1,setTimeout(function(){return Z.scroller.draggable=!0},100));return}if(Ol(M,I))return;var ee=ca(M,I),ie=be(I),Me=ee?Pl(ee,ie):"single";if(window.focus(),ie==1&&M.state.selectingText&&M.state.selectingText(I),ee&&vl(M,ie,ee,Me,I))return;ie==1?ee?Bl(M,ee,Me,I):qe(I)==Z.scroller&&Ve(I):ie==2?(ee&&wo(M.doc,ee),setTimeout(function(){return Z.input.focus()},20)):ie==3&&(T?M.display.input.onContextMenu(I):Ka(M))}function vl(I,M,Z,ee,ie){var Me="Click";return ee=="double"?Me="Double"+Me:ee=="triple"&&(Me="Triple"+Me),Me=(M==1?"Left":M==2?"Middle":"Right")+Me,ml(I,Fl(Me,ie),ie,function(mt){if(typeof mt=="string"&&(mt=zs[mt]),!mt)return!1;var Nt=!1;try{I.isReadOnly()&&(I.state.suppressEdits=!0),Nt=mt(I,Z)!=$}finally{I.state.suppressEdits=!1}return Nt})}function ql(I,M,Z){var ee=I.getOption("configureMouse"),ie=ee?ee(I,M,Z):{};if(ie.unit==null){var Me=b?Z.shiftKey&&Z.metaKey:Z.altKey;ie.unit=Me?"rectangle":M=="single"?"char":M=="double"?"word":"line"}return(ie.extend==null||I.doc.extend)&&(ie.extend=I.doc.extend||Z.shiftKey),ie.addNew==null&&(ie.addNew=w?Z.metaKey:Z.ctrlKey),ie.moveOnDrag==null&&(ie.moveOnDrag=!(w?Z.altKey:Z.ctrlKey)),ie}function Bl(I,M,Z,ee){c?setTimeout(j(Ya,I),0):I.curOp.focus=B();var ie=ql(I,Z,ee),Me=I.doc.sel,mt;I.options.dragDrop&&Zt&&!I.isReadOnly()&&Z=="single"&&(mt=Me.contains(M))>-1&&(Kt((mt=Me.ranges[mt]).from(),M)<0||M.xRel>0)&&(Kt(mt.to(),M)>0||M.xRel<0)?yl(I,ee,M,ie):lc(I,ee,M,ie)}function yl(I,M,Z,ee){var ie=I.display,Me=!1,mt=Za(I,function(Yt){i&&(ie.scroller.draggable=!1),I.state.draggingText=!1,Ke(ie.wrapper.ownerDocument,"mouseup",mt),Ke(ie.wrapper.ownerDocument,"mousemove",Nt),Ke(ie.scroller,"dragstart",zt),Ke(ie.scroller,"drop",mt),Me||(Ve(Yt),ee.addNew||wo(I.doc,Z,null,null,ee.extend),i&&!n||c&&a==9?setTimeout(function(){ie.wrapper.ownerDocument.body.focus({preventScroll:!0}),ie.input.focus()},20):ie.input.focus())}),Nt=function(Cr){Me=Me||Math.abs(M.clientX-Cr.clientX)+Math.abs(M.clientY-Cr.clientY)>=10},zt=function(){return Me=!0};i&&(ie.scroller.draggable=!0),I.state.draggingText=mt,mt.copy=!ee.moveOnDrag,ie.scroller.dragDrop&&ie.scroller.dragDrop(),Be(ie.wrapper.ownerDocument,"mouseup",mt),Be(ie.wrapper.ownerDocument,"mousemove",Nt),Be(ie.scroller,"dragstart",zt),Be(ie.scroller,"drop",mt),Ka(I),setTimeout(function(){return ie.input.focus()},20)}function Jl(I,M,Z){if(Z=="char")return new le(M,M);if(Z=="word")return I.findWordAt(M);if(Z=="line")return new le(Rt(M.line,0),st(I.doc,Rt(M.line+1,0)));var ee=Z(I,M);return new le(ee.from,ee.to)}function lc(I,M,Z,ee){var ie=I.display,Me=I.doc;Ve(M);var mt,Nt,zt=Me.sel,Yt=zt.ranges;if(ee.addNew&&!ee.extend?(Nt=Me.sel.contains(Z),Nt>-1?mt=Yt[Nt]:mt=new le(Z,Z)):(mt=Me.sel.primary(),Nt=Me.sel.primIndex),ee.unit=="rectangle")ee.addNew||(mt=new le(Z,Z)),Z=ca(I,M,!0,!0),Nt=-1;else{var Cr=Jl(I,Z,ee.unit);ee.extend?mt=Qo(mt,Cr.anchor,Cr.head,ee.extend):mt=Cr}ee.addNew?Nt==-1?(Nt=Yt.length,Eo(Me,Ee(I,Yt.concat([mt]),Nt),{scroll:!1,origin:"*mouse"})):Yt.length>1&&Yt[Nt].empty()&&ee.unit=="char"&&!ee.extend?(Eo(Me,Ee(I,Yt.slice(0,Nt).concat(Yt.slice(Nt+1)),0),{scroll:!1,origin:"*mouse"}),zt=Me.sel):ns(Me,Nt,mt,q):(Nt=0,Eo(Me,new Pt([mt],0),q),zt=Me.sel);var Ur=Z;function en(li){if(Kt(Ur,li)==0)return;if(Ur=li,ee.unit=="rectangle"){for(var Je=[],te=I.options.tabSize,ke=V(ne(Me,Z.line).text,Z.ch,te),Ze=V(ne(Me,li.line).text,li.ch,te),Lt=Math.min(ke,Ze),tr=Math.max(ke,Ze),vr=Math.min(Z.line,li.line),Ir=Math.min(I.lastLine(),Math.max(Z.line,li.line));vr<=Ir;vr++){var Hr=ne(Me,vr).text,Kr=Ce(Hr,Lt,te);Lt==tr?Je.push(new le(Rt(vr,Kr),Rt(vr,Kr))):Hr.length>Kr&&Je.push(new le(Rt(vr,Kr),Rt(vr,Ce(Hr,tr,te))))}Je.length||Je.push(new le(Z,Z)),Eo(Me,Ee(I,zt.ranges.slice(0,Nt).concat(Je),Nt),{origin:"*mouse",scroll:!1}),I.scrollIntoView(li)}else{var cn=mt,sn=Jl(I,li,ee.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(I,new le(st(Me,Fn),si)),Eo(Me,Ee(I,Kn,Nt),q)}}var nn=ie.wrapper.getBoundingClientRect(),xn=0;function Bn(li){var Je=++xn,te=ca(I,li,!0,ee.unit=="rectangle");if(!te)return;if(Kt(te,Ur)!=0){I.curOp.focus=B(),en(te);var ke=ja(ie,Me);(te.line>=ke.to||te.linenn.bottom?20:0;Ze&&setTimeout(Za(I,function(){if(xn!=Je)return;ie.scroller.scrollTop+=Ze,Bn(li)}),50)}}function Zn(li){I.state.selectingText=!1,xn=Infinity,li&&(Ve(li),ie.input.focus()),Ke(ie.wrapper.ownerDocument,"mousemove",Jn),Ke(ie.wrapper.ownerDocument,"mouseup",oi),Me.history.lastSelOrigin=null}var Jn=Za(I,function(li){li.buttons===0||!be(li)?Zn(li):Bn(li)}),oi=Za(I,Zn);I.state.selectingText=oi,Be(ie.wrapper.ownerDocument,"mousemove",Jn),Be(ie.wrapper.ownerDocument,"mouseup",oi)}function Zl(I,M){var Z=M.anchor,ee=M.head,ie=ne(I.doc,Z.line);if(Kt(Z,ee)==0&&Z.sticky==ee.sticky)return M;var Me=ht(ie);if(!Me)return M;var mt=Le(Me,Z.ch,Z.sticky),Nt=Me[mt];if(Nt.from!=Z.ch&&Nt.to!=Z.ch)return M;var zt=mt+(Nt.from==Z.ch==(Nt.level!=1)?0:1);if(zt==0||zt==Me.length)return M;var Yt;if(ee.line!=Z.line)Yt=(ee.line-Z.line)*(I.doc.direction=="ltr"?1:-1)>0;else{var Cr=Le(Me,ee.ch,ee.sticky),Ur=Cr-mt||(ee.ch-Z.ch)*(Nt.level==1?-1:1);Cr==zt-1||Cr==zt?Yt=Ur<0:Yt=Ur>0}var en=Me[zt+(Yt?-1:0)],nn=Yt==(en.level==1),xn=nn?en.from:en.to,Bn=nn?"after":"before";return Z.ch==xn&&Z.sticky==Bn?M:new le(new Rt(Z.line,xn,Bn),ee)}function $l(I,M,Z,ee){var ie,Me;if(M.touches)ie=M.touches[0].clientX,Me=M.touches[0].clientY;else try{ie=M.clientX,Me=M.clientY}catch(en){return!1}if(ie>=Math.floor(I.display.gutters.getBoundingClientRect().right))return!1;ee&&Ve(M);var mt=I.display,Nt=mt.lineDiv.getBoundingClientRect();if(Me>Nt.bottom||!tt(I,Z))return re(M);Me-=Nt.top-mt.viewOffset;for(var zt=0;zt=ie){var Cr=vt(I.doc,Me),Ur=I.display.gutterSpecs[zt];return At(I,Z,I,Cr,Ur.className,M),re(M)}}}function Ol(I,M){return $l(I,M,"gutterClick",!0)}function ec(I,M){if(St(I.display,M)||cc(I,M))return;if(Xe(I,M,"contextmenu"))return;T||I.display.input.onContextMenu(M)}function cc(I,M){return tt(I,"gutterContextMenu")?$l(I,M,"gutterContextMenu",!1):!1}function Il(I){I.display.wrapper.className=I.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+I.options.theme.replace(/(^|\s)\s*/g," cm-s-"),yi(I)}var js={toString:function(){return"CodeMirror.Init"}},_l={},Al={};function uc(I){var M=I.optionHandlers;function Z(ee,ie,Me,mt){I.defaults[ee]=ie,Me&&(M[ee]=mt?function(Nt,zt,Yt){Yt!=js&&Me(Nt,zt,Yt)}:Me)}I.defineOption=Z,I.Init=js,Z("value","",function(ee,ie){return ee.setValue(ie)},!0),Z("mode",null,function(ee,ie){ee.doc.modeOption=ie,Rr(ee)},!0),Z("indentUnit",2,Rr,!0),Z("indentWithTabs",!1),Z("smartIndent",!0),Z("tabSize",4,function(ee){$r(ee),yi(ee),gi(ee)},!0),Z("lineSeparator",null,function(ee,ie){if(ee.doc.lineSep=ie,!ie)return;var Me=[],mt=ee.doc.first;ee.doc.iter(function(zt){for(var Yt=0;;){var Cr=zt.text.indexOf(ie,Yt);if(Cr==-1)break;Yt=Cr+ie.length,Me.push(Rt(mt,Cr))}mt++});for(var Nt=Me.length-1;Nt>=0;Nt--)qo(ee.doc,ie,Me[Nt],Rt(Me[Nt].line,Me[Nt].ch+ie.length))}),Z("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ee,ie,Me){ee.state.specialChars=new RegExp(ie.source+(ie.test(" ")?"":"| "),"g"),Me!=js&&ee.refresh()}),Z("specialCharPlaceholder",Wi,function(ee){return ee.refresh()},!0),Z("electricChars",!0),Z("inputStyle",p?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),Z("spellcheck",!1,function(ee,ie){return ee.getInputField().spellcheck=ie},!0),Z("autocorrect",!1,function(ee,ie){return ee.getInputField().autocorrect=ie},!0),Z("autocapitalize",!1,function(ee,ie){return ee.getInputField().autocapitalize=ie},!0),Z("rtlMoveVisually",!E),Z("wholeLineUpdateBefore",!0),Z("theme","default",function(ee){Il(ee),as(ee)},!0),Z("keyMap","default",function(ee,ie,Me){var mt=xl(ie),Nt=Me!=js&&xl(Me);Nt&&Nt.detach&&Nt.detach(ee,mt),mt.attach&&mt.attach(ee,Nt||null)}),Z("extraKeys",null),Z("configureMouse",null),Z("lineWrapping",!1,sl,!0),Z("gutters",[],function(ee,ie){ee.display.gutterSpecs=Ns(ie,ee.options.lineNumbers),as(ee)},!0),Z("fixedGutter",!0,function(ee,ie){ee.display.gutters.style.left=ie?Xi(ee.display)+"px":"0",ee.refresh()},!0),Z("coverGutterNextToScrollbar",!1,function(ee){return Ra(ee)},!0),Z("scrollbarStyle","native",function(ee){vo(ee),Ra(ee),ee.display.scrollbars.setScrollTop(ee.doc.scrollTop),ee.display.scrollbars.setScrollLeft(ee.doc.scrollLeft)},!0),Z("lineNumbers",!1,function(ee,ie){ee.display.gutterSpecs=Ns(ee.options.gutters,ie),as(ee)},!0),Z("firstLineNumber",1,as,!0),Z("lineNumberFormatter",function(ee){return ee},as,!0),Z("showCursorWhenSelecting",!1,Ki,!0),Z("resetSelectionOnContextMenu",!0),Z("lineWiseCopyCut",!0),Z("pasteLinesPerSelection",!0),Z("selectionsMayTouch",!1),Z("readOnly",!1,function(ee,ie){ie=="nocursor"&&(Oi(ee),ee.display.input.blur()),ee.display.input.readOnlyChanged(ie)}),Z("screenReaderLabel",null,function(ee,ie){ie=ie===""?null:ie,ee.display.input.screenReaderLabelChanged(ie)}),Z("disableInput",!1,function(ee,ie){ie||ee.display.input.reset()},!0),Z("dragDrop",!0,dc),Z("allowDropFileTypes",null),Z("cursorBlinkRate",530),Z("cursorScrollMargin",0),Z("cursorHeight",1,Ki,!0),Z("singleCursorHeightPerLine",!0,Ki,!0),Z("workTime",100),Z("workDelay",100),Z("flattenSpans",!0,$r,!0),Z("addModeClass",!1,$r,!0),Z("pollInterval",100),Z("undoDepth",200,function(ee,ie){return ee.doc.history.undoDepth=ie}),Z("historyEventDelay",1250),Z("viewportMargin",10,function(ee){return ee.refresh()},!0),Z("maxHighlightLength",1e4,$r,!0),Z("moveInputWithCursor",!0,function(ee,ie){ie||ee.display.input.resetPosition()}),Z("tabindex",null,function(ee,ie){return ee.display.input.getField().tabIndex=ie||""}),Z("autofocus",null),Z("direction","ltr",function(ee,ie){return ee.doc.setDirection(ie)},!0),Z("phrases",null)}function dc(I,M,Z){var ee=Z&&Z!=js;if(!M!=!ee){var ie=I.display.dragFunctions,Me=M?Be:Ke;Me(I.display.scroller,"dragstart",ie.start),Me(I.display.scroller,"dragenter",ie.enter),Me(I.display.scroller,"dragover",ie.over),Me(I.display.scroller,"dragleave",ie.leave),Me(I.display.scroller,"drop",ie.drop)}}function sl(I){I.options.lineWrapping?(z(I.display.wrapper,"CodeMirror-wrap"),I.display.sizer.style.minWidth="",I.display.sizerWidth=null):(x(I.display.wrapper,"CodeMirror-wrap"),jn(I)),Aa(I),gi(I),yi(I),setTimeout(function(){return Ra(I)},100)}function at(I,M){var Z=this;if(!(this instanceof at))return new at(I,M);this.options=M=M?H(M):{},H(_l,M,!1);var ee=M.value;typeof ee=="string"?ee=new es(ee,M.mode,null,M.lineSeparator,M.direction):M.mode&&(ee.modeOption=M.mode),this.doc=ee;var ie=new at.inputStyles[M.inputStyle](this),Me=this.display=new $s(I,ee,ie,M);Me.wrapper.CodeMirror=this,Il(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 X,keySeq:null,specialChars:null},M.autofocus&&!p&&Me.input.focus(),c&&a<11&&setTimeout(function(){return Z.display.input.reset(!0)},20),fe(this),Wl(),Zi(this),this.curOp.forceUpdate=!0,Qn(this,ee),M.autofocus&&!p||this.hasFocus()?setTimeout(function(){Z.hasFocus()&&!Z.state.focused&&pa(Z)},20):Oi(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(!Xe(I,zt)&&!Me(zt)&&!Ol(I,zt)){M.input.ensurePolled(),clearTimeout(Z);var Yt=+new Date;M.activeTouch={start:Yt,moved:!1,prev:Yt-ee.end<=300?ee: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 Yt=M.activeTouch;if(Yt&&!St(M,zt)&&Yt.left!=null&&!Yt.moved&&new Date-Yt.start<300){var Cr=I.coordsChar(M.activeTouch,"page"),Ur;!Yt.prev||mt(Yt,Yt.prev)?Ur=new le(Cr,Cr):!Yt.prev.prev||mt(Yt,Yt.prev.prev)?Ur=I.findWordAt(Cr):Ur=new le(Rt(Cr.line,0),st(I.doc,Rt(Cr.line+1,0))),I.setSelection(Ur.anchor,Ur.head),I.focus(),Ve(zt)}ie()}),Be(M.scroller,"touchcancel",ie),Be(M.scroller,"scroll",function(){M.scroller.clientHeight&&(Gi(I,M.scroller.scrollTop),go(I,M.scroller.scrollLeft,!0),At(I,"scroll",I))}),Be(M.scroller,"mousewheel",function(zt){return Os(I,zt)}),Be(M.scroller,"DOMMouseScroll",function(zt){return Os(I,zt)}),Be(M.wrapper,"scroll",function(){return M.wrapper.scrollTop=M.wrapper.scrollLeft=0}),M.dragFunctions={enter:function(Yt){Xe(I,Yt)||it(Yt)},over:function(Yt){Xe(I,Yt)||(Ml(I,Yt),it(Yt))},start:function(Yt){return Rl(I,Yt)},drop:Za(I,ac),leave:function(Yt){Xe(I,Yt)||bl(I)}};var Nt=M.input.getField();Be(Nt,"keyup",function(zt){return Bs.call(I,zt)}),Be(Nt,"keydown",Za(I,Ws)),Be(Nt,"keypress",Za(I,Us)),Be(Nt,"focus",function(zt){return pa(I,zt)}),Be(Nt,"blur",function(zt){return Oi(I,zt)})}var je=[];at.defineInitHook=function(I){return je.push(I)};function wt(I,M,Z,ee){var ie=I.doc,Me;Z==null&&(Z="add"),Z=="smart"&&(ie.mode.indent?Me=Ht(I,M).state:Z="prev");var mt=I.options.tabSize,Nt=ne(ie,M),zt=V(Nt.text,null,mt);Nt.stateAfter&&(Nt.stateAfter=null);var Yt=Nt.text.match(/^\s*/)[0],Cr;if(!ee&&!/\S/.test(Nt.text))Cr=0,Z="not";else if(Z=="smart"&&(Cr=ie.mode.indent(Me,Nt.text.slice(Yt.length),Nt.text),Cr==$||Cr>150)){if(!ee)return;Z="prev"}Z=="prev"?M>ie.first?Cr=V(ne(ie,M-1).text,null,mt):Cr=0:Z=="add"?Cr=zt+I.options.indentUnit:Z=="subtract"?Cr=zt-I.options.indentUnit:typeof Z=="number"&&(Cr=zt+Z),Cr=Math.max(0,Cr);var Ur="",en=0;if(I.options.indentWithTabs)for(var nn=Math.floor(Cr/mt);nn;--nn)en+=mt,Ur+=" ";if(enmt,zt=or(M),Yt=null;if(Nt&&ee.ranges.length>1)if(kt&&kt.text.join(` `)==M){if(ee.ranges.length%kt.text.length==0){Yt=[];for(var Cr=0;Cr=0;en--){var nn=ee.ranges[en],xn=nn.from(),Bn=nn.to();nn.empty()&&(Z&&Z>0?xn=Rt(xn.line,xn.ch-Z):I.state.overwrite&&!Nt?Bn=Rt(Bn.line,Math.min(ne(Me,Bn.line).text.length,Bn.ch+Qe(zt).length)):Nt&&kt&&kt.lineWise&&kt.text.join(` `)==zt.join(` `)&&(xn=Bn=Rt(xn.line,0)));var Zn={from:xn,to:Bn,text:Yt?Yt[en%Yt.length]:zt,origin:ie||(Nt?"paste":I.state.cutIncoming>mt?"cut":"+input")};bs(I.doc,Zn),Tr(I,"inputRead",I,Zn)}M&&!Nt&&yr(I,M),Ia(I),I.curOp.updateInput<2&&(I.curOp.updateInput=Ur),I.curOp.typing=!0,I.state.pasteIncoming=I.state.cutIncoming=-1}function lr(I,M){var Z=I.clipboardData&&I.clipboardData.getData("Text");if(Z)return I.preventDefault(),!M.isReadOnly()&&!M.options.disableInput&&bo(M,function(){return ar(M,Z,0,null,"paste")}),!0}function yr(I,M){if(!I.options.electricChars||!I.options.smartIndent)return;for(var Z=I.doc.sel,ee=Z.ranges.length-1;ee>=0;ee--){var ie=Z.ranges[ee];if(ie.head.ch>100||ee&&Z.ranges[ee-1].head.line==ie.head.line)continue;var Me=I.getModeAt(ie.head),mt=!1;if(Me.electricChars){for(var Nt=0;Nt-1){mt=wt(I,ie.head.line,"smart");break}}else Me.electricInput&&(Me.electricInput.test(ne(I.doc,ie.head.line).text.slice(0,ie.head.ch))&&(mt=wt(I,ie.head.line,"smart")));mt&&Tr(I,"electricInput",I,ie.head.line)}}function Vr(I){for(var M=[],Z=[],ee=0;eeMe&&(wt(this,Nt.head.line,ee,!0),Me=Nt.head.line,mt==this.doc.sel.primIndex&&Ia(this));else{var zt=Nt.from(),Yt=Nt.to(),Cr=Math.max(Me,zt.line);Me=Math.min(this.lastLine(),Yt.line-(Yt.ch?0:1))+1;for(var Ur=Cr;Ur0&&ns(this.doc,mt,new le(zt,en[mt].to()),ge)}}}),getTokenAt:function(ie,Me){return Ar(this,ie,Me)},getLineTokens:function(ie,Me){return Ar(this,Rt(ie),Me,!0)},getTokenTypeAt:function(ie){ie=st(this.doc,ie);var Me=ft(this,ne(this.doc,ie.line)),mt=0,Nt=(Me.length-1)/2,zt=ie.ch,Yt;if(zt==0)Yt=Me[2];else for(;;){var Cr=mt+Nt>>1;if((Cr?Me[Cr*2-1]:0)>=zt)Nt=Cr;else if(Me[Cr*2+1]Yt&&(ie=Yt,Nt=!0),zt=ne(this.doc,ie)}else zt=ie;return Ri(this,zt,{top:0,left:0},Me||"page",mt||Nt).top+(Nt?this.doc.height-Ln(zt):0)},defaultTextHeight:function(){return Ai(this.display)},defaultCharWidth:function(){return Ii(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ie,Me,mt,Nt,zt){var Yt=this.display;ie=Mi(this,st(this.doc,ie));var Cr=ie.bottom,Ur=ie.left;if(Me.style.position="absolute",Me.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Me),Yt.sizer.appendChild(Me),Nt=="over")Cr=ie.top;else if(Nt=="above"||Nt=="near"){var en=Math.max(Yt.wrapper.clientHeight,this.doc.height),nn=Math.max(Yt.sizer.clientWidth,Yt.lineSpace.clientWidth);(Nt=="above"||ie.bottom+Me.offsetHeight>en)&&ie.top>Me.offsetHeight?Cr=ie.top-Me.offsetHeight:ie.bottom+Me.offsetHeight<=en&&(Cr=ie.bottom),Ur+Me.offsetWidth>nn&&(Ur=nn-Me.offsetWidth)}Me.style.top=Cr+"px",Me.style.left=Me.style.right="",zt=="right"?(Ur=Yt.sizer.clientWidth-Me.offsetWidth,Me.style.right="0px"):(zt=="left"?Ur=0:zt=="middle"&&(Ur=(Yt.sizer.clientWidth-Me.offsetWidth)/2),Me.style.left=Ur+"px"),mt&&Ca(this,{left:Ur,top:Cr,right:Ur+Me.offsetWidth,bottom:Cr+Me.offsetHeight})},triggerOnKeyDown:Ga(Ws),triggerOnKeyPress:Ga(Us),triggerOnKeyUp:Bs,triggerOnMouseDown:Ga(Ll),execCommand:function(ie){if(zs.hasOwnProperty(ie))return zs[ie].call(null,this)},triggerElectric:Ga(function(ee){yr(this,ee)}),findPosH:function(ie,Me,mt,Nt){var zt=1;Me<0&&(zt=-1,Me=-Me);for(var Yt=st(this.doc,ie),Cr=0;Cr0&&Ur(mt.charAt(Nt-1));)--Nt;for(;zt.5||this.options.lineWrapping)&&Aa(this),At(this,"refresh",this)}),swapDoc:Ga(function(ee){var ie=this.doc;return ie.cm=null,this.state.selectingText&&this.state.selectingText(),Qn(this,ee),yi(this),this.display.input.reset(),Fi(this,ee.scrollLeft,ee.scrollTop),this.curOp.forceScroll=!0,Tr(this,"swapDoc",this,ie),ie}),phrase:function(ie){var Me=this.options.phrases;return Me&&Object.prototype.hasOwnProperty.call(Me,ie)?Me[ie]:ie},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}},ot(I),I.registerHelper=function(ee,ie,Me){Z.hasOwnProperty(ee)||(Z[ee]=I[ee]={_global:[]}),Z[ee][ie]=Me},I.registerGlobalHelper=function(ee,ie,Me,mt){I.registerHelper(ee,ie,mt),Z[ee]._global.push({pred:Me,val:mt})}}function Gr(I,M,Z,ee,ie){var Me=M,mt=Z,Nt=ne(I,M.line),zt=ie&&I.direction=="rtl"?-Z:Z;function Yt(){var oi=M.line+zt;return oi=I.first+I.size?!1:(M=new Rt(oi,M.ch,M.sticky),Nt=ne(I,oi))}function Cr(oi){var li;if(ee=="codepoint"){var Je=Nt.text.charCodeAt(M.ch+(ee>0?0:-1));isNaN(Je)?li=null:li=new Rt(M.line,Math.max(0,Math.min(Nt.text.length,M.ch+Z*(Je>=55296&&Je<56320?2:1))),-Z)}else ie?li=El(I.cm,Nt,M,Z):li=il(Nt,M,Z);if(li==null)if(!oi&&Yt())M=fl(ie,I.cm,Nt,M.line,zt);else return!1;else M=li;return!0}if(ee=="char"||ee=="codepoint")Cr();else if(ee=="column")Cr(!0);else if(ee=="word"||ee=="group")for(var Ur=null,en=ee=="group",nn=I.cm&&I.cm.getHelper(M,"wordChars"),xn=!0;!(Z<0&&!Cr(!xn));xn=!1){var Bn=Nt.text.charAt(M.ch)||` `,Zn=K(Bn,nn)?"w":en&&Bn==` `?"n":!en||/\s/.test(Bn)?null:"p";if(en&&!xn&&!Zn&&(Zn="s"),Ur&&Ur!=Zn){Z<0&&(Z=1,Cr(),M.sticky="after");break}if(Zn&&(Ur=Zn),Z>0&&!Cr(!xn))break}var Jn=Ms(I,M,Me,mt,!0);return Gt(Me,Jn)&&(Jn.hitSide=!0),Jn}function dn(I,M,Z,ee){var ie=I.doc,Me=M.left,mt;if(ee=="page"){var Nt=Math.min(I.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),zt=Math.max(Nt-.5*Ai(I.display),3);mt=(Z>0?M.bottom:M.top)+Z*zt}else ee=="line"&&(mt=Z>0?M.bottom+3:M.top-3);for(var Yt;!(Yt=qi(I,Me,mt),!Yt.outside);){if(Z<0?mt<=0:mt>=ie.height){Yt.hitSide=!0;break}mt+=Z*5}return Yt}var pn=function(M){this.cm=M,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new X,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};pn.prototype.init=function(I){var M=this,Z=this,ee=Z.cm,ie=Z.div=I.lineDiv;Xr(ie,ee.options.spellcheck,ee.options.autocorrect,ee.options.autocapitalize);function Me(Nt){for(var zt=Nt.target;zt;zt=zt.parentNode){if(zt==ie)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(zt.className))break}return!1}Be(ie,"paste",function(Nt){if(!Me(Nt)||Xe(ee,Nt)||lr(Nt,ee))return;a<=11&&setTimeout(Za(ee,function(){return M.updateFromDOM()}),20)}),Be(ie,"compositionstart",function(Nt){M.composing={data:Nt.data,done:!1}}),Be(ie,"compositionupdate",function(Nt){M.composing||(M.composing={data:Nt.data,done:!1})}),Be(ie,"compositionend",function(Nt){M.composing&&(Nt.data!=M.composing.data&&M.readFromDOMSoon(),M.composing.done=!0)}),Be(ie,"touchstart",function(){return Z.forceCompositionEnd()}),Be(ie,"input",function(){M.composing||M.readFromDOMSoon()});function mt(Nt){if(!Me(Nt)||Xe(ee,Nt))return;if(ee.somethingSelected())qt({lineWise:!1,text:ee.getSelections()}),Nt.type=="cut"&&ee.replaceSelection("",null,"cut");else if(ee.options.lineWiseCopyCut){var zt=Vr(ee);qt({lineWise:!0,text:zt.text}),Nt.type=="cut"&&ee.operation(function(){ee.setSelections(zt.ranges,0,ge),ee.replaceSelection("",null,"cut")})}else return;if(Nt.clipboardData){Nt.clipboardData.clearData();var Yt=kt.text.join(` `);if(Nt.clipboardData.setData("Text",Yt),Nt.clipboardData.getData("Text")==Yt){Nt.preventDefault();return}}var Cr=Br(),Ur=Cr.firstChild;ee.display.lineSpace.insertBefore(Cr,ee.display.lineSpace.firstChild),Ur.value=kt.text.join(` `);var en=document.activeElement;U(Ur),setTimeout(function(){ee.display.lineSpace.removeChild(Cr),en.focus(),en==ie&&Z.showPrimarySelection()},50)}Be(ie,"copy",mt),Be(ie,"cut",mt)},pn.prototype.screenReaderLabelChanged=function(I){I?this.div.setAttribute("aria-label",I):this.div.removeAttribute("aria-label")},pn.prototype.prepareSelection=function(){var I=zi(this.cm,!1);return I.focus=document.activeElement==this.div,I},pn.prototype.showSelection=function(I,M){if(!I||!this.cm.display.view.length)return;(I.focus||M)&&this.showPrimarySelection(),this.showMultipleSelections(I)},pn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},pn.prototype.showPrimarySelection=function(){var I=this.getSelection(),M=this.cm,Z=M.doc.sel.primary(),ee=Z.from(),ie=Z.to();if(M.display.viewTo==M.display.viewFrom||ee.line>=M.display.viewTo||ie.line=M.display.viewFrom&&ei(M,ee)||{node:Nt[0].measure.map[2],offset:0},Yt=ie.lineI.firstLine()&&(ee=Rt(ee.line-1,ne(I.doc,ee.line-1).length)),ie.ch==ne(I.doc,ie.line).text.length&&ie.lineM.viewTo-1)return!1;var Me,mt,Nt;ee.line==M.viewFrom||(Me=la(I,ee.line))==0?(mt=$e(M.view[0].line),Nt=M.view[0].node):(mt=$e(M.view[Me].line),Nt=M.view[Me-1].node.nextSibling);var zt=la(I,ie.line),Yt,Cr;if(zt==M.view.length-1?(Yt=M.viewTo-1,Cr=M.lineDiv.lastChild):(Yt=$e(M.view[zt+1].line)-1,Cr=M.view[zt+1].node.previousSibling),!Nt)return!1;for(var Ur=I.doc.splitLines(Ji(I,Nt,Cr,mt,Yt)),en=xe(I.doc,Rt(mt,0),Rt(Yt,ne(I.doc,Yt).text.length));Ur.length>1&&en.length>1;)if(Qe(Ur)==Qe(en))Ur.pop(),en.pop(),Yt--;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);nnee.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 te=Rt(mt,nn),ke=Rt(Yt,en.length?Qe(en).length-xn:0);if(Ur.length>1||Ur[0]||Kt(te,ke))return qo(I.doc,Ur,te,ke,"+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 I=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(I.readDOMTimeout=null,I.composing)if(I.composing.done)I.composing=null;else return;I.updateFromDOM()},80)},pn.prototype.updateFromDOM=function(){var I=this;(this.cm.isReadOnly()||!this.pollContent())&&bo(this.cm,function(){return gi(I.cm)})},pn.prototype.setUneditable=function(I){I.contentEditable="false"},pn.prototype.onKeyPress=function(I){if(I.charCode==0||this.composing)return;I.preventDefault(),this.cm.isReadOnly()||Za(this.cm,ar)(this.cm,String.fromCharCode(I.charCode==null?I.keyCode:I.charCode),0)},pn.prototype.readOnlyChanged=function(I){this.div.contentEditable=String(I!="nocursor")},pn.prototype.onContextMenu=function(){},pn.prototype.resetPosition=function(){},pn.prototype.needsContentAttribute=!0;function ei(I,M){var Z=bn(I,M.line);if(!Z||Z.hidden)return null;var ee=ne(I.doc,M.line),ie=wn(Z,ee,M.line),Me=ht(ee,I.doc.direction),mt="left";if(Me){var Nt=Le(Me,M.ch);mt=Nt%2?"right":"left"}var zt=En(ie.map,M.ch,mt);return zt.offset=zt.collapse=="right"?zt.end:zt.start,zt}function ci(I){for(var M=I;M;M=M.parentNode)if(/CodeMirror-gutter-wrapper/.test(M.className))return!0;return!1}function ii(I,M){return M&&(I.bad=!0),I}function Ji(I,M,Z,ee,ie){var Me="",mt=!1,Nt=I.doc.lineSeparator(),zt=!1;function Yt(nn){return function(xn){return xn.id==nn}}function Cr(){mt&&(Me+=Nt,zt&&(Me+=Nt),mt=zt=!1)}function Ur(nn){nn&&(Cr(),Me+=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=I.findMarks(Rt(ee,0),Rt(ie+1,0),Yt(+Bn));Jn.length&&(Zn=Jn[0].find(0))&&Ur(xe(I.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),Z.poll()}),Be(ie,"paste",function(mt){if(Xe(ee,mt)||lr(mt,ee))return;ee.state.pasteIncoming=+new Date,Z.fastPoll()});function Me(mt){if(Xe(ee,mt))return;if(ee.somethingSelected())qt({lineWise:!1,text:ee.getSelections()});else if(ee.options.lineWiseCopyCut){var Nt=Vr(ee);qt({lineWise:!0,text:Nt.text}),mt.type=="cut"?ee.setSelections(Nt.ranges,null,ge):(Z.prevInput="",ie.value=Nt.text.join(` `),U(ie))}else return;mt.type=="cut"&&(ee.state.cutIncoming=+new Date)}Be(ie,"cut",Me),Be(ie,"copy",Me),Be(I.scroller,"paste",function(mt){if(St(I,mt)||Xe(ee,mt))return;if(!ie.dispatchEvent){ee.state.pasteIncoming=+new Date,Z.focus();return}var Nt=new Event("paste");Nt.clipboardData=mt.clipboardData,ie.dispatchEvent(Nt)}),Be(I.lineSpace,"selectstart",function(mt){St(I,mt)||Ve(mt)}),Be(ie,"compositionstart",function(){var mt=ee.getCursor("from");Z.composing&&Z.composing.range.clear(),Z.composing={start:mt,range:ee.markText(mt,ee.getCursor("to"),{className:"CodeMirror-composing"})}}),Be(ie,"compositionend",function(){Z.composing&&(Z.poll(),Z.composing.range.clear(),Z.composing=null)})},Ei.prototype.createField=function(I){this.wrapper=Br(),this.textarea=this.wrapper.firstChild},Ei.prototype.screenReaderLabelChanged=function(I){I?this.textarea.setAttribute("aria-label",I):this.textarea.removeAttribute("aria-label")},Ei.prototype.prepareSelection=function(){var I=this.cm,M=I.display,Z=I.doc,ee=zi(I);if(I.options.moveInputWithCursor){var ie=Mi(I,Z.sel.primary().head,"div"),Me=M.wrapper.getBoundingClientRect(),mt=M.lineDiv.getBoundingClientRect();ee.teTop=Math.max(0,Math.min(M.wrapper.clientHeight-10,ie.top+mt.top-Me.top)),ee.teLeft=Math.max(0,Math.min(M.wrapper.clientWidth-10,ie.left+mt.left-Me.left))}return ee},Ei.prototype.showSelection=function(I){var M=this.cm,Z=M.display;O(Z.cursorDiv,I.cursors),O(Z.selectionDiv,I.selection),I.teTop!=null&&(this.wrapper.style.top=I.teTop+"px",this.wrapper.style.left=I.teLeft+"px")},Ei.prototype.reset=function(I){if(this.contextMenuPending||this.composing)return;var M=this.cm;if(M.somethingSelected()){this.prevInput="";var Z=M.getSelection();this.textarea.value=Z,M.state.focused&&U(this.textarea),c&&a>=9&&(this.hasSelection=Z)}else I||(this.prevInput=this.textarea.value="",c&&a>=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"&&(!p||B()!=this.textarea))try{this.textarea.focus()}catch(I){}},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 I=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){I.poll(),I.cm.state.focused&&I.slowPoll()})},Ei.prototype.fastPoll=function(){var I=!1,M=this;M.pollingFast=!0;function Z(){var ee=M.poll();!ee&&!I?(I=!0,M.polling.set(60,Z)):(M.pollingFast=!1,M.slowPoll())}M.polling.set(20,Z)},Ei.prototype.poll=function(){var I=this,M=this.cm,Z=this.textarea,ee=this.prevInput;if(this.contextMenuPending||!M.state.focused||Bt(Z)&&!ee&&!this.composing||M.isReadOnly()||M.options.disableInput||M.state.keySeq)return!1;var ie=Z.value;if(ie==ee&&!M.somethingSelected())return!1;if(c&&a>=9&&this.hasSelection===ie||w&&/[\uf700-\uf7ff]/.test(ie))return M.display.input.reset(),!1;if(M.doc.sel==M.display.selForContextMenu){var Me=ie.charCodeAt(0);if(Me==8203&&!ee&&(ee="\u200B"),Me==8666)return this.reset(),this.cm.execCommand("undo")}for(var mt=0,Nt=Math.min(ee.length,ie.length);mt1e3||ie.indexOf(` `)>-1?Z.value=I.prevInput="":I.prevInput=ie,I.composing&&(I.composing.range.clear(),I.composing.range=M.markText(I.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&&a>=9&&(this.hasSelection=null),this.fastPoll()},Ei.prototype.onContextMenu=function(I){var M=this,Z=M.cm,ee=Z.display,ie=M.textarea;M.contextMenuPending&&M.contextMenuPending();var Me=ca(Z,I),mt=ee.scroller.scrollTop;if(!Me||d)return;var Nt=Z.options.resetSelectionOnContextMenu;Nt&&Z.doc.sel.contains(Me)==-1&&Za(Z,Eo)(Z.doc,Ie(Me),ge);var zt=ie.style.cssText,Yt=M.wrapper.style.cssText,Cr=M.wrapper.offsetParent.getBoundingClientRect();M.wrapper.style.cssText="position: static",ie.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(I.clientY-Cr.top-5)+"px; left: "+(I.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),ee.input.focus(),i&&window.scrollTo(null,Ur),ee.input.reset(),Z.somethingSelected()||(ie.value=M.prevInput=" "),M.contextMenuPending=nn,ee.selForContextMenu=Z.doc.sel,clearTimeout(ee.detectingSelectAll);function en(){if(ie.selectionStart!=null){var Bn=Z.somethingSelected(),Zn="\u200B"+(Bn?ie.value:"");ie.value="\u21DA",ie.value=Zn,M.prevInput=Bn?"":"\u200B",ie.selectionStart=1,ie.selectionEnd=Zn.length,ee.selForContextMenu=Z.doc.sel}}function nn(){if(M.contextMenuPending!=nn)return;if(M.contextMenuPending=!1,M.wrapper.style.cssText=Yt,ie.style.cssText=zt,c&&a<9&&ee.scrollbars.setScrollTop(ee.scroller.scrollTop=mt),ie.selectionStart!=null){(!c||c&&a<9)&&en();var Bn=0,Zn=function Jn(){ee.selForContextMenu==Z.doc.sel&&ie.selectionStart==0&&ie.selectionEnd>0&&M.prevInput=="\u200B"?Za(Z,Fs)(Z):Bn++<10?ee.detectingSelectAll=setTimeout(Jn,500):(ee.selForContextMenu=null,ee.input.reset())};ee.detectingSelectAll=setTimeout(Zn,200)}}if(c&&a>=9&&en(),T){it(I);var xn=function Bn(){Ke(window,"mouseup",Bn),setTimeout(nn,20)};Be(window,"mouseup",xn)}else setTimeout(nn,50)},Ei.prototype.readOnlyChanged=function(I){I||this.reset(),this.textarea.disabled=I=="nocursor",this.textarea.readOnly=!!I},Ei.prototype.setUneditable=function(){},Ei.prototype.needsContentAttribute=!1;function co(I,M){if(M=M?H(M):{},M.value=I.value,!M.tabindex&&I.tabIndex&&(M.tabindex=I.tabIndex),!M.placeholder&&I.placeholder&&(M.placeholder=I.placeholder),M.autofocus==null){var Z=B();M.autofocus=Z==I||I.getAttribute("autofocus")!=null&&Z==document.body}function ee(){I.value=Nt.getValue()}var ie;if(I.form&&(Be(I.form,"submit",ee),!M.leaveSubmitMethodAlone)){var Me=I.form;ie=Me.submit;try{var mt=Me.submit=function(){ee(),Me.submit=ie,Me.submit(),Me.submit=mt}}catch(zt){}}M.finishInit=function(zt){zt.save=ee,zt.getTextArea=function(){return I},zt.toTextArea=function(){zt.toTextArea=isNaN,ee(),I.parentNode.removeChild(zt.getWrapperElement()),I.style.display="",I.form&&(Ke(I.form,"submit",ee),!M.leaveSubmitMethodAlone&&typeof I.form.submit=="function"&&(I.form.submit=ie))}},I.style.display="none";var Nt=at(function(zt){return I.parentNode.insertBefore(zt,I.nextSibling)},M);return Nt}function Ko(I){I.off=Ke,I.on=Be,I.wheelEventPixels=Vs,I.Doc=es,I.splitLines=or,I.countColumn=V,I.findColumn=Ce,I.isWordChar=Y,I.Pass=$,I.signal=At,I.Line=ni,I.changeEnd=We,I.scrollbarModel=ro,I.Pos=Rt,I.cmpPos=Kt,I.modes=he,I.mimeModes=Re,I.resolveMode=Ye,I.getMode=Pe,I.modeExtensions=nt,I.extendMode=bt,I.copyState=Ot,I.startState=pe,I.innerMode=ae,I.commands=zs,I.keyMap=Ss,I.keyName=Vl,I.isModifierKey=Sl,I.lookupKey=Ps,I.normalizeKeyMap=nl,I.StringStream=J,I.SharedTextMarker=el,I.TextMarker=Is,I.LineWidget=ll,I.e_preventDefault=Ve,I.e_stopPropagation=se,I.e_stop=it,I.addClass=z,I.contains=P,I.rmClass=x,I.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)&&W(ao,Uo)<0&&(at.prototype[Uo]=function(I){return function(){return I.apply(this.doc,arguments)}}(es.prototype[Uo]));return ot(es),at.inputStyles={textarea:Ei,contenteditable:pn},at.defineMode=function(I){!at.defaults.mode&&I!="null"&&(at.defaults.mode=I),He.apply(this,arguments)},at.defineMIME=ze,at.defineMode("null",function(){return{token:function(M){return M.skipToEnd()}}}),at.defineMIME("text/plain","null"),at.defineExtension=function(I,M){at.prototype[I]=M},at.defineDocExtension=function(I,M){es.prototype[I]=M},at.fromTextArea=co,Ko(at),at.version="5.58.2",at})},Vy0f:function(D,_,e){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var g=f(e("iYpf"));function f(m){return m&&m.__esModule?m:{default:m}}var y=g;_.default=y,D.exports=y},W2nI:function(D,_,e){var g=e("IwbS"),f=e("ProS"),y=e("bYtY"),m=["itemStyle","opacity"],v=["emphasis","itemStyle","opacity"],h=["lineStyle","opacity"],c=["emphasis","lineStyle","opacity"];function a(l,t){return l.getVisual("opacity")||l.getModel().get(t)}function i(l,t,s){var u=l.getGraphicEl(),p=a(l,t);s!=null&&(p==null&&(p=1),p*=s),u.downplay&&u.downplay(),u.traverse(function(w){w.type!=="group"&&w.setStyle("opacity",p)})}function r(l,t){var s=a(l,t),u=l.getGraphicEl();u.traverse(function(p){p.type!=="group"&&p.setStyle("opacity",s)}),u.highlight&&u.highlight()}var o=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")}}),d=f.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(l,t,s){var u=this,p=l.getGraph(),w=this.group,b=l.layoutInfo,E=b.width,A=b.height,S=l.getData(),T=l.getData("edge"),L=l.get("orient");this._model=l,w.removeAll(),w.attr("position",[b.x,b.y]),p.eachEdge(function(x){var C=new o;C.dataIndex=x.dataIndex,C.seriesIndex=l.seriesIndex,C.dataType="edge";var O=x.getModel("lineStyle"),N=O.get("curveness"),F=x.node1.getLayout(),k=x.node1.getModel(),P=k.get("localX"),B=k.get("localY"),z=x.node2.getLayout(),R=x.node2.getModel(),U=R.get("localX"),j=R.get("localY"),H=x.getLayout(),V,X,W,G,$,ge,q,Se;C.shape.extent=Math.max(1,H.dy),C.shape.orient=L,L==="vertical"?(V=(P!=null?P*E:F.x)+H.sy,X=(B!=null?B*A:F.y)+F.dy,W=(U!=null?U*E:z.x)+H.ty,G=j!=null?j*A:z.y,$=V,ge=X*(1-N)+G*N,q=W,Se=X*N+G*(1-N)):(V=(P!=null?P*E:F.x)+F.dx,X=(B!=null?B*A:F.y)+H.sy,W=U!=null?U*E:z.x,G=(j!=null?j*A:z.y)+H.ty,$=V*(1-N)+W*N,ge=X,q=V*N+W*(1-N),Se=G),C.setShape({x1:V,y1:X,x2:W,y2:G,cpx1:$,cpy1:ge,cpx2:q,cpy2:Se}),C.setStyle(O.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)}),p.eachNode(function(x){var C=x.getLayout(),O=x.getModel(),N=O.get("localX"),F=O.get("localY"),k=O.getModel("label"),P=O.getModel("emphasis.label"),B=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:O.getModel("itemStyle").getItemStyle()}),z=x.getModel("emphasis.itemStyle").getItemStyle();g.setLabelStyle(B.style,z,k,P,{labelFetcher:l,labelDataIndex:x.dataIndex,defaultText:x.id,isRectText:!0}),B.setStyle("fill",x.getVisual("color")),g.setHoverStyle(B,z),w.add(B),S.setItemGraphicEl(x.dataIndex,B),B.dataType="node"}),S.eachItemGraphicEl(function(x,C){var O=S.getItemModel(C);O.get("draggable")&&(x.drift=function(N,F){u._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(){u._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),O.get("focusNodeAdjacency")&&(x.on("mouseover",x.focusNodeAdjHandler=function(){u._focusAdjacencyDisabled||(u._clearTimer(),s.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,dataIndex:x.dataIndex}))}),x.on("mouseout",x.unfocusNodeAdjHandler=function(){u._focusAdjacencyDisabled||u._dispatchUnfocus(s)}))}),T.eachItemGraphicEl(function(x,C){var O=T.getItemModel(C);x.focusNodeAdjHandler&&x.off("mouseover",x.focusNodeAdjHandler),x.unfocusNodeAdjHandler&&x.off("mouseout",x.unfocusNodeAdjHandler),O.get("focusNodeAdjacency")&&(x.on("mouseover",x.focusNodeAdjHandler=function(){u._focusAdjacencyDisabled||(u._clearTimer(),s.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,edgeDataIndex:x.dataIndex}))}),x.on("mouseout",x.unfocusNodeAdjHandler=function(){u._focusAdjacencyDisabled||u._dispatchUnfocus(s)}))}),!this._data&&l.get("animation")&&w.setClipPath(n(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,u){var p=l.getData(),w=p.graph,b=u.dataIndex,E=p.getItemModel(b),A=u.edgeDataIndex;if(b==null&&A==null)return;var S=w.getNodeByIndex(b),T=w.getEdgeByIndex(A);if(w.eachNode(function(x){i(x,m,.1)}),w.eachEdge(function(x){i(x,h,.1)}),S){r(S,v);var L=E.get("focusNodeAdjacency");L==="outEdges"?y.each(S.outEdges,function(x){if(x.dataIndex<0)return;r(x,c),r(x.node2,v)}):L==="inEdges"?y.each(S.inEdges,function(x){if(x.dataIndex<0)return;r(x,c),r(x.node1,v)}):L==="allEdges"&&y.each(S.edges,function(x){if(x.dataIndex<0)return;r(x,c),x.node1!==S&&r(x.node1,v),x.node2!==S&&r(x.node2,v)})}T&&(r(T,c),r(T.node1,v),r(T.node2,v))},unfocusNodeAdjacency:function(l,t,s,u){var p=l.getGraph();p.eachNode(function(w){i(w,m)}),p.eachEdge(function(w){i(w,h)})}});function n(l,t,s){var u=new g.Rect({shape:{x:l.x-10,y:l.y-10,width:0,height:l.height+20}});return g.initProps(u,{shape:{width:l.width+20}},t,s),u}D.exports=d},W4dC:function(D,_,e){var g=e("Tghj"),f=g.__DEV__,y=e("bYtY"),m=y.each,v=y.createHashMap,h=e("7DRL"),c=e("TIY9"),a=e("yS9w"),i=e("mFDi"),r={geoJSON:c,svg:a},o={load:function(t,s,u){var p=[],w=v(),b=v(),E,A=l(t);return m(A,function(S){var T=r[S.type].load(t,S,u);m(T.regions,function(x){var C=x.name;s&&s.hasOwnProperty(C)&&(x=x.cloneShallow(C=s[C])),p.push(x),w.set(C,x),b.set(C,x.center)});var L=T.boundingRect;L&&(E?E.union(L):E=L.clone())}),{regions:p,regionsMap:w,nameCoordMap:b,boundingRect:E||new i(0,0,0,0)}},makeGraphic:d("makeGraphic"),removeGraphic:d("removeGraphic")};function d(t){return function(s,u){var p=l(s),w=[];return m(p,function(b){var E=r[b.type][t];E&&w.push(E(s,b,u))}),w}}function n(t){}function l(t){var s=h.retrieveMap(t)||[];return s}D.exports=o},WGYa:function(D,_,e){var g=e("7yuC"),f=g.forceLayout,y=e("HF/U"),m=y.simpleLayout,v=e("lOQZ"),h=v.circularLayout,c=e("OELB"),a=c.linearMap,i=e("QBsz"),r=e("bYtY");function o(d){d.eachSeriesByType("graph",function(n){var l=n.coordinateSystem;if(l&&l.type!=="view")return;if(n.get("layout")==="force"){var t=n.preservedPoints||{},s=n.getGraph(),u=s.data,p=s.edgeData,w=n.getModel("force"),b=w.get("initLayout");n.preservedPoints?u.each(function(k){var P=u.getId(k);u.setItemLayout(k,t[P]||[NaN,NaN])}):!b||b==="none"?m(n):b==="circular"&&h(n,"value");var E=u.getDataExtent("value"),A=p.getDataExtent("value"),S=w.get("repulsion"),T=w.get("edgeLength");r.isArray(S)||(S=[S,S]),r.isArray(T)||(T=[T,T]),T=[T[1],T[0]];var L=u.mapArray("value",function(k,P){var B=u.getItemLayout(P),z=a(k,E,S);return isNaN(z)&&(z=(S[0]+S[1])/2),{w:z,rep:z,fixed:u.getItemModel(P).get("fixed"),p:!B||isNaN(B[0])||isNaN(B[1])?null:B}}),x=p.mapArray("value",function(k,P){var B=s.getEdgeByIndex(P),z=a(k,A,T);isNaN(z)&&(z=(T[0]+T[1])/2);var R=B.getModel();return{n1:L[B.node1.dataIndex],n2:L[B.node2.dataIndex],d:z,curveness:R.get("lineStyle.curveness")||0,ignoreForceLayout:R.get("ignoreForceLayout")}}),l=n.coordinateSystem,C=l.getBoundingRect(),O=f(L,x,{rect:C,gravity:w.get("gravity"),friction:w.get("friction")}),N=O.step;O.step=function(k){for(var P=0,B=L.length;P=0&&r[n].disabled;n-=1);var l=null;return n!==-1&&(l=d[n],d.splice(n,1)),{values:d,removedValue:l}}var h=typeof window!="undefined"&&window.document&&window.document.documentElement,c=h,a=0;function i(){var r;return c?(r=a,a+=1):r="TEST_OR_SSR",r}},"WN+l":function(D,_,e){var g=e("bYtY"),f=e("IwbS");function y(v,h,c,a){var i=c.axis;if(i.scale.isBlank())return;var r=c.getModel("splitArea"),o=r.getModel("areaStyle"),d=o.get("color"),n=a.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:r,clamp:!0});if(!l.length)return;var t=d.length,s=v.__splitAreaColors,u=g.createHashMap(),p=0;if(s)for(var w=0;w=0;N--)x[N]==null&&(delete C[L[N]],L.pop())}function d(T,L){var x=T.visual,C=[];g.isObject(x)?v(x,function(N){C.push(N)}):x!=null&&C.push(x);var O={color:1,symbol:1};!L&&C.length===1&&!O.hasOwnProperty(T.type)&&(C[1]=C[0]),b(T,C)}function n(T){return{applyVisual:function(L,x,C){L=this.mapValueToVisual(L),C("color",T(x("color"),L))},_doMap:p([0,1])}}function l(T){var L=this.option.visual;return L[Math.round(m(T,[0,1],[0,L.length-1],!0))]||{}}function t(T){return function(L,x,C){C(T,this.mapValueToVisual(L))}}function s(T){var L=this.option.visual;return L[this.option.loop&&T!==c?T%L.length:T]}function u(){return this.option.visual[0]}function p(T){return{linear:function(L){return m(L,T,this.option.visual,!0)},category:s,piecewise:function(L,x){var C=w.call(this,x);return C==null&&(C=m(L,T,this.option.visual,!0)),C},fixed:u}}function w(T){var L=this.option,x=L.pieceList;if(L.hasSpecialVisual){var C=a.findPieceIndex(T,x),O=x[C];if(O&&O.visual)return O.visual[this.type]}}function b(T,L){return T.visual=L,T.type==="color"&&(T.parsedVisual=g.map(L,function(x){return f.parse(x)})),L}var E={linear:function(T){return m(T,this.option.dataExtent,[0,1],!0)},piecewise:function(T){var L=this.option.pieceList,x=a.findPieceIndex(T,L,!0);if(x!=null)return m(x,[0,L.length-1],[0,1],!0)},category:function(T){var L=this.option.categories?this.option.categoryMap[T]:T;return L==null?c:L},fixed:g.noop};a.listVisualTypes=function(){var T=[];return g.each(i,function(L,x){T.push(x)}),T},a.addVisualHandler=function(T,L){i[T]=L},a.isValidType=function(T){return i.hasOwnProperty(T)},a.eachVisual=function(T,L,x){g.isObject(T)?g.each(T,L,x):L.call(x,T)},a.mapVisual=function(T,L,x){var C,O=g.isArray(T)?[]:g.isObject(T)?{}:(C=!0,null);return a.eachVisual(T,function(N,F){var k=L.call(x,N,F);C?O=k:O[F]=k}),O},a.retrieveVisuals=function(T){var L={},x;return T&&v(i,function(C,O){T.hasOwnProperty(O)&&(L[O]=T[O],x=!0)}),x?L:null},a.prepareVisualTypes=function(T){if(h(T)){var L=[];v(T,function(x,C){L.push(C)}),T=L}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},a.dependsOn=function(T,L){return L==="color"?!!(T&&T.indexOf(L)===0):T===L},a.findPieceIndex=function(T,L,x){for(var C,O=Infinity,N=0,F=L.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),B=P.getPropertyValue("box-sizing")||P.getPropertyValue("-moz-box-sizing")||P.getPropertyValue("-webkit-box-sizing"),z=parseFloat(P.getPropertyValue("padding-bottom"))+parseFloat(P.getPropertyValue("padding-top")),R=parseFloat(P.getPropertyValue("border-bottom-width"))+parseFloat(P.getPropertyValue("border-top-width")),U=n.map(function(H){return"".concat(H,":").concat(P.getPropertyValue(H))}).join(";"),j={sizingStyle:U,paddingSize:z,borderSize:R,boxSizing:B};return F&&k&&(l[k]=j),j}function u(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 B=s(N,F),z=B.paddingSize,R=B.borderSize,U=B.boxSizing,j=B.sizingStyle;t.setAttribute("style","".concat(j,";").concat(d)),t.value=N.value||N.placeholder||"";var H=Number.MIN_SAFE_INTEGER,V=Number.MAX_SAFE_INTEGER,X=t.scrollHeight,W;if(U==="border-box"?X+=R:U==="content-box"&&(X-=z),k!==null||P!==null){t.value=" ";var G=t.scrollHeight-z;k!==null&&(H=G*k,U==="border-box"&&(H=H+z+R),X=Math.max(H,X)),P!==null&&(V=G*P,U==="border-box"&&(V=V+z+R),W=X>V?"":"hidden",X=Math.min(V,X))}return{height:X,minHeight:H,maxHeight:V,overflowY:W}}function p(N,F){var k=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);F&&(P=P.filter(function(B){return Object.getOwnPropertyDescriptor(N,B).enumerable})),k.push.apply(k,P)}return k}function w(N){for(var F=1;F=0;if(!A)i(p,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(p,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 n(p,w,b,E){h?p.addEventListener(w,b,E):p.attachEvent("on"+w,b)}function l(p,w,b,E){h?p.removeEventListener(w,b,E):p.detachEvent("on"+w,b)}var t=h?function(p){p.preventDefault(),p.stopPropagation(),p.cancelBubble=!0}:function(p){p.returnValue=!1,p.cancelBubble=!0};function s(p){return p.which===2||p.which===3}function u(p){return p.which>1}_.clientToLocal=i,_.getNativeEvent=o,_.normalizeEvent=d,_.addEventListener=n,_.removeEventListener=l,_.stop=t,_.isMiddleOrRightButtonOnMouseUpDown=s,_.notLeftMouse=u},YJ9k:function(D,_,e){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.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[de].sort(E)}}]),Te}();function E(Te,oe){var de=Te.node.sortableInfo.index,Le=oe.node.sortableInfo.index;return de-Le}function A(Te,oe,de){return Te=Te.slice(),Te.splice(de<0?Te.length+de:de,0,Te.splice(oe,1)[0]),Te}function S(Te,oe){return Object.keys(Te).reduce(function(de,Le){return oe.indexOf(Le)===-1&&(de[Le]=Te[Le]),de},{})}var T={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},L=function(){if(typeof window=="undefined"||typeof document=="undefined")return"";var Te=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],oe=(Array.prototype.slice.call(Te).join("").match(/-(moz|webkit|ms)-/)||Te.OLink===""&&["","o"])[1];switch(oe){case"ms":return"ms";default:return oe&&oe.length?oe[0].toUpperCase()+oe.substr(1):""}}();function x(Te,oe){Object.keys(oe).forEach(function(de){Te.style[de]=oe[de]})}function C(Te,oe){Te.style["".concat(L,"Transform")]=oe==null?"":"translate3d(".concat(oe.x,"px,").concat(oe.y,"px,0)")}function O(Te,oe){Te.style["".concat(L,"TransitionDuration")]=oe==null?"":"".concat(oe,"ms")}function N(Te,oe){for(;Te;){if(oe(Te))return Te;Te=Te.parentNode}return null}function F(Te,oe,de){return Math.max(Te,Math.min(de,oe))}function k(Te){return Te.substr(-2)==="px"?parseFloat(Te):0}function P(Te){var oe=window.getComputedStyle(Te);return{bottom:k(oe.marginBottom),left:k(oe.marginLeft),right:k(oe.marginRight),top:k(oe.marginTop)}}function B(Te,oe){var de=oe.displayName||oe.name;return de?"".concat(Te,"(").concat(de,")"):Te}function z(Te,oe){var de=Te.getBoundingClientRect();return{top:de.top+oe.top,left:de.left+oe.left}}function R(Te){return Te.touches&&Te.touches.length?{x:Te.touches[0].pageX,y:Te.touches[0].pageY}:Te.changedTouches&&Te.changedTouches.length?{x:Te.changedTouches[0].pageX,y:Te.changedTouches[0].pageY}:{x:Te.pageX,y:Te.pageY}}function U(Te){return Te.touches&&Te.touches.length||Te.changedTouches&&Te.changedTouches.length}function j(Te,oe){var de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!Te)return;var Le={left:de.left+Te.offsetLeft,top:de.top+Te.offsetTop};return Te.parentNode===oe?Le:j(Te.parentNode,oe,Le)}function H(Te,oe,de){return Teoe?Te-1:Te>de&&Te0&&de[Et].height>0){var Be=ht.getContext("2d");Be.drawImage(de[Et],0,0)}}),Le}function Ce(Te){var oe,de,Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return de=oe=function(Ge){Object(a.a)(ht,Ge);function ht(){return Object(m.a)(this,ht),Object(h.a)(this,Object(c.a)(ht).apply(this,arguments))}return Object(v.a)(ht,[{key:"componentDidMount",value:function(){var Be=Object(t.findDOMNode)(this);Be.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return p()(Le.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=Le.withRef?"wrappedInstance":null;return Object(o.createElement)(Te,Object(g.a)({ref:Be},this.props))}}]),ht}(o.Component),Object(r.a)(oe,"displayName",B("sortableHandle",Te)),de}function Ae(Te){return Te.sortableHandle!=null}var Ue=function(){function Te(oe,de){Object(m.a)(this,Te),this.container=oe,this.onScrollCallback=de}return Object(v.a)(Te,[{key:"clear",value:function(){if(this.interval==null)return;clearInterval(this.interval),this.interval=null}},{key:"update",value:function(de){var Le=this,Ge=de.translate,ht=de.minTranslate,Et=de.maxTranslate,Be=de.width,Dt=de.height,Ke={x:0,y:0},At={x:1,y:1},Xe={x:10,y:10},et=this.container,tt=et.scrollTop,ot=et.scrollLeft,Ve=et.scrollHeight,se=et.scrollWidth,re=et.clientHeight,it=et.clientWidth,qe=tt===0,be=Ve-tt-re===0,Zt=ot===0,dt=se-ot-it===0;Ge.y>=Et.y-Dt/2&&!be?(Ke.y=1,At.y=Xe.y*Math.abs((Et.y-Dt/2-Ge.y)/Dt)):Ge.x>=Et.x-Be/2&&!dt?(Ke.x=1,At.x=Xe.x*Math.abs((Et.x-Be/2-Ge.x)/Be)):Ge.y<=ht.y+Dt/2&&!qe?(Ke.y=-1,At.y=Xe.y*Math.abs((Ge.y-Dt/2-ht.y)/Dt)):Ge.x<=ht.x+Be/2&&!Zt&&(Ke.x=-1,At.x=Xe.x*Math.abs((Ge.x-Be/2-ht.x)/Be)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(Ke.x!==0||Ke.y!==0)&&(this.interval=setInterval(function(){Le.isAutoScrolling=!0;var ct={left:At.x*Ke.x,top:At.y*Ke.y};Le.container.scrollTop+=ct.top,Le.container.scrollLeft+=ct.left,Le.onScrollCallback(ct)},5))}}]),Te}();function Qe(Te){var oe=Te.node;return{height:oe.offsetHeight,width:oe.offsetWidth}}function gt(Te){var oe=[q.Input,q.Textarea,q.Select,q.Option,q.Button];return oe.indexOf(Te.target.tagName)!==-1?!0:!!N(Te.target,function(de){return de.contentEditable==="true"})}var _e={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},Oe={lift:[ge.SPACE],drop:[ge.SPACE],cancel:[ge.ESC],up:[ge.UP,ge.LEFT],down:[ge.DOWN,ge.RIGHT]},lt={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:Qe,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:Oe,shouldCancelStart:gt,transitionDuration:300,useWindowAsScrollContainer:!1},ce=Object.keys(_e);function Y(Te){p()(!(Te.distance&&Te.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 K(Te,oe){try{var de=Te()}catch(Le){return oe(!0,Le)}return de&&de.then?de.then(oe.bind(null,!1),oe.bind(null,!0)):oe(!1,value)}function Q(Te){var oe,de,Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return de=oe=function(Ge){Object(a.a)(ht,Ge);function ht(Et){var Be;return Object(m.a)(this,ht),Be=Object(h.a)(this,Object(c.a)(ht).call(this,Et)),Object(r.a)(Object(i.a)(Object(i.a)(Be)),"state",{}),Object(r.a)(Object(i.a)(Object(i.a)(Be)),"handleStart",function(Dt){var Ke=Be.props,At=Ke.distance,Xe=Ke.shouldCancelStart;if(Dt.button===2||Xe(Dt))return;Be.touched=!0,Be.position=R(Dt);var et=N(Dt.target,function(it){return it.sortableInfo!=null});if(et&&et.sortableInfo&&Be.nodeIsChild(et)&&!Be.state.sorting){var tt=Be.props.useDragHandle,ot=et.sortableInfo,Ve=ot.index,se=ot.collection,re=ot.disabled;if(re)return;if(tt&&!N(Dt.target,Ae))return;Be.manager.active={collection:se,index:Ve},!U(Dt)&&Dt.target.tagName===q.Anchor&&Dt.preventDefault(),At||(Be.props.pressDelay===0?Be.handlePress(Dt):Be.pressTimer=setTimeout(function(){return Be.handlePress(Dt)},Be.props.pressDelay))}}),Object(r.a)(Object(i.a)(Object(i.a)(Be)),"nodeIsChild",function(Dt){return Dt.sortableInfo.manager===Be.manager}),Object(r.a)(Object(i.a)(Object(i.a)(Be)),"handleMove",function(Dt){var Ke=Be.props,At=Ke.distance,Xe=Ke.pressThreshold;if(!Be.state.sorting&&Be.touched&&!Be._awaitingUpdateBeforeSortStart){var et=R(Dt),tt={x:Be.position.x-et.x,y:Be.position.y-et.y},ot=Math.abs(tt.x)+Math.abs(tt.y);Be.delta=tt,!At&&(!Xe||ot>=Xe)?(clearTimeout(Be.cancelTimer),Be.cancelTimer=setTimeout(Be.cancel,0)):At&&ot>=At&&Be.manager.isActive()&&Be.handlePress(Dt)}}),Object(r.a)(Object(i.a)(Object(i.a)(Be)),"handleEnd",function(){Be.touched=!1,Be.cancel()}),Object(r.a)(Object(i.a)(Object(i.a)(Be)),"cancel",function(){var Dt=Be.props.distance,Ke=Be.state.sorting;Ke||(Dt||clearTimeout(Be.pressTimer),Be.manager.active=null)}),Object(r.a)(Object(i.a)(Object(i.a)(Be)),"handlePress",function(Dt){try{var Ke=Be.manager.getActive(),At=function(){if(Ke){var Xe=function(){var _t=be.sortableInfo.index,or=P(be),Bt=$(Be.container),we=Be.scrollContainer.getBoundingClientRect(),ve=ot({index:_t,node:be,collection:Zt});if(Be.node=be,Be.margin=or,Be.gridGap=Bt,Be.width=ve.width,Be.height=ve.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=be.getBoundingClientRect(),Be.containerBoundingRect=we,Be.index=_t,Be.newIndex=_t,Be.axis={x:tt.indexOf("x")>=0,y:tt.indexOf("y")>=0},Be.offsetEdge=j(be,Be.container),dt?Be.initialOffset=R(Object(y.a)({},Dt,{pageX:Be.boundingClientRect.left,pageY:Be.boundingClientRect.top})):Be.initialOffset=R(Dt),Be.initialScroll={left:Be.scrollContainer.scrollLeft,top:Be.scrollContainer.scrollTop},Be.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},Be.helper=Be.helperContainer.appendChild(Se(be)),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(),se&&(Be.sortableGhost=be,x(be,{opacity:0,visibility:"hidden"})),Be.minTranslate={},Be.maxTranslate={},dt){var me=qe?{top:0,left:0,width:Be.contentWindow.innerWidth,height:Be.contentWindow.innerHeight}:Be.containerBoundingRect,he=me.top,Re=me.left,He=me.width,ze=me.height,Ye=he+ze,Pe=Re+He;Be.axis.x&&(Be.minTranslate.x=Re-Be.boundingClientRect.left,Be.maxTranslate.x=Pe-(Be.boundingClientRect.left+Be.width)),Be.axis.y&&(Be.minTranslate.y=he-Be.boundingClientRect.top,Be.maxTranslate.y=Ye-(Be.boundingClientRect.top+Be.height))}else Be.axis.x&&(Be.minTranslate.x=(qe?0:we.left)-Be.boundingClientRect.left-Be.width/2,Be.maxTranslate.x=(qe?Be.contentWindow.innerWidth:we.left+we.width)-Be.boundingClientRect.left-Be.width/2),Be.axis.y&&(Be.minTranslate.y=(qe?0:we.top)-Be.boundingClientRect.top-Be.height/2,Be.maxTranslate.y=(qe?Be.contentWindow.innerHeight:we.top+we.height)-Be.boundingClientRect.top-Be.height/2);Ve&&Ve.split(" ").forEach(function(nt){return Be.helper.classList.add(nt)}),Be.listenerNode=Dt.touches?be: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:_t}),it&&it({node:be,index:_t,collection:Zt,isKeySorting:dt,nodes:Be.manager.getOrderedRefs(),helper:Be.helper},Dt),dt&&Be.keyMove(0)},et=Be.props,tt=et.axis,ot=et.getHelperDimensions,Ve=et.helperClass,se=et.hideSortableGhost,re=et.updateBeforeSortStart,it=et.onSortStart,qe=et.useWindowAsScrollContainer,be=Ke.node,Zt=Ke.collection,dt=Be.manager.isKeySorting,ct=function(){if(typeof re=="function"){Be._awaitingUpdateBeforeSortStart=!0;var yt=K(function(){var _t=be.sortableInfo.index;return Promise.resolve(re({collection:Zt,index:_t,node:be,isKeySorting:dt},Dt)).then(function(){})},function(_t,or){if(Be._awaitingUpdateBeforeSortStart=!1,_t)throw or;return or});if(yt&&yt.then)return yt.then(function(){})}}();return ct&&ct.then?ct.then(Xe):Xe(ct)}}();return Promise.resolve(At&&At.then?At.then(function(){}):void 0)}catch(Xe){return Promise.reject(Xe)}}),Object(r.a)(Object(i.a)(Object(i.a)(Be)),"handleSortMove",function(Dt){var Ke=Be.props.onSortMove;typeof Dt.preventDefault=="function"&&Dt.preventDefault(),Be.updateHelperPosition(Dt),Be.animateNodes(),Be.autoscroll(),Ke&&Ke(Dt)}),Object(r.a)(Object(i.a)(Object(i.a)(Be)),"handleSortEnd",function(Dt){var Ke=Be.props,At=Ke.hideSortableGhost,Xe=Ke.onSortEnd,et=Be.manager,tt=et.active.collection,ot=et.isKeySorting,Ve=Be.manager.getOrderedRefs();Be.listenerNode&&(ot?(Be.listenerNode.removeEventListener("wheel",Be.handleKeyEnd,!0),Be.listenerNode.removeEventListener("mousedown",Be.handleKeyEnd,!0),Be.listenerNode.removeEventListener("keydown",Be.handleKeyDown)):(T.move.forEach(function(be){return Be.listenerNode.removeEventListener(be,Be.handleSortMove)}),T.end.forEach(function(be){return Be.listenerNode.removeEventListener(be,Be.handleSortEnd)}))),Be.helper.parentNode.removeChild(Be.helper),At&&Be.sortableGhost&&x(Be.sortableGhost,{opacity:"",visibility:""});for(var se=0,re=Ve.length;seAt)return;Be.prevIndex=et,Be.newIndex=Xe;var tt=H(Be.newIndex,Be.prevIndex,Be.index),ot=Ke.find(function(dt){var ct=dt.node;return ct.sortableInfo.index===tt}),Ve=ot.node,se=Be.containerScrollDelta,re=ot.boundingClientRect||z(Ve,se),it=ot.translate||{x:0,y:0},qe={top:re.top+it.y-se.top,left:re.left+it.x-se.left},be=etdt?dt/2:this.height/2,width:this.width>Zt?Zt/2:this.width/2},yt=Ve&&be>this.index&&be<=se,_t=Ve&&be=se,or={x:0,y:0},Bt=tt[re].edgeOffset;Bt||(Bt=j(qe,this.container),tt[re].edgeOffset=Bt,Ve&&(tt[re].boundingClientRect=z(qe,Xe)));var we=re0&&tt[re-1];if(we&&!we.edgeOffset&&(we.edgeOffset=j(we.node,this.container),Ve&&(we.boundingClientRect=z(we.node,Xe))),be===this.index){Ke&&(this.sortableGhost=qe,x(qe,{opacity:0,visibility:"hidden"}));continue}Dt&&O(qe,Dt),this.axis.x?this.axis.y?_t||bethis.containerBoundingRect.width-ct.width&&(we&&(or.x=we.edgeOffset.left-Bt.left,or.y=we.edgeOffset.top-Bt.top)),this.newIndex===null&&(this.newIndex=be)):(yt||be>this.index&&(ot.left+et.left+ct.width>=Bt.left&&ot.top+et.top+ct.height>=Bt.top||ot.top+et.top+ct.height>=Bt.top+dt))&&(or.x=-(this.width+this.marginOffset.x),Bt.left+or.xthis.index&&ot.left+et.left+ct.width>=Bt.left?(or.x=-(this.width+this.marginOffset.x),this.newIndex=be):(_t||bethis.index&&ot.top+et.top+ct.height>=Bt.top?(or.y=-(this.height+this.marginOffset.y),this.newIndex=be):(_t||be1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return de=oe=function(Ge){Object(a.a)(ht,Ge);function ht(){return Object(m.a)(this,ht),Object(h.a)(this,Object(c.a)(ht).apply(this,arguments))}return Object(v.a)(ht,[{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,Dt=Be.collection,Ke=Be.disabled,At=Be.index,Xe=Object(t.findDOMNode)(this);Xe.sortableInfo={collection:Dt,disabled:Ke,index:At,manager:this.context.manager},this.node=Xe,this.ref={node:Xe},this.context.manager.add(Dt,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 p()(Le.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=Le.withRef?"wrappedInstance":null;return Object(o.createElement)(Te,Object(g.a)({ref:Be},S(this.props,ue)))}}]),ht}(o.Component),Object(r.a)(oe,"displayName",B("sortableElement",Te)),Object(r.a)(oe,"contextTypes",{manager:l.a.object.isRequired}),Object(r.a)(oe,"propTypes",ye),Object(r.a)(oe,"defaultProps",{collection:0}),de}},YNAk:function(D,_,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var y=f(e("q1tI")),m=g(e("QyFq")),v=g(e("KQxl")),h=function(i,r){return y.createElement(v.default,Object.assign({},i,{ref:r,icon:m.default}))};h.displayName="CaretDownFilled";var c=y.forwardRef(h);_.default=c},YNf1:function(D,_,e){var g=e("IwbS"),f=e("6Ic6"),y=.3,m=f.extend({type:"parallel",init:function(){this._dataGroup=new g.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(d,n,l,t){var s=this._dataGroup,u=d.getData(),p=this._data,w=d.coordinateSystem,b=w.dimensions,E=a(d);u.diff(p).add(A).update(S).remove(T).execute();function A(x){var C=c(u,s,x,b,w);i(C,u,x,E)}function S(x,C){var O=p.getItemGraphicEl(C),N=h(u,x,b,w);u.setItemGraphicEl(x,O);var F=t&&t.animation===!1?null:d;g.updateProps(O,{shape:{points:N}},F,x),i(O,u,x,E)}function T(x){var C=p.getItemGraphicEl(x);s.remove(C)}if(!this._initialized){this._initialized=!0;var L=v(w,d,function(){setTimeout(function(){s.removeClipPath()})});s.setClipPath(L)}this._data=u},incrementalPrepareRender:function(d,n,l){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(d,n,l){for(var t=n.getData(),s=n.coordinateSystem,u=s.dimensions,p=a(n),w=d.start;w65535?p:b}function A(W){var G=W.constructor;return G===Array?W.slice():new G(W)}var S=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],T=["_extent","_approximateExtent","_rawExtent"];function L(W,G){y.each(S.concat(G.__wrappedMethods||[]),function($){G.hasOwnProperty($)&&(W[$]=G[$])}),W.__wrappedMethods=G.__wrappedMethods,y.each(T,function($){W[$]=y.clone(G[$])}),W._calculationInfo=y.extend(G._calculationInfo)}var x=function(W,G){W=W||["x","y"];for(var $={},ge=[],q={},Se=0;Seue[1]&&(ue[1]=ye)}G&&(this._nameList[lt]=G[ce])}this._rawCount=this._count=Ue,this._extent={},N(this)},C._initDataFromProvider=function(W,G){if(W>=G)return;for(var $=this._chunkSize,ge=this._rawData,q=this._storage,Se=this.dimensions,Ce=Se.length,Ae=this._dimensionInfos,Ue=this._nameList,Qe=this._idList,gt=this._rawExtent,_e=this._nameRepeatCount={},Oe,lt=this._chunkCount,ce=0;ceLe[1]&&(Le[1]=de)}if(!ge.pure){var Ge=Ue[ye];if(Q&&Ge==null){if(Q.name!=null)Ue[ye]=Ge=Q.name;else if(Oe!=null){var ht=Se[Oe],Et=q[ht][ue];if(Et){Ge=Et[Ne];var Be=Ae[ht].ordinalMeta;Be&&Be.categories.length&&(Ge=Be.categories[Ge])}}}var Dt=Q==null?null:Q.id;Dt==null&&Ge!=null&&(_e[Ge]=_e[Ge]||0,Dt=Ge,_e[Ge]>0&&(Dt+="__ec__"+_e[Ge]),_e[Ge]++),Dt!=null&&(Qe[ye]=Dt)}}!ge.persistent&&ge.clean&&ge.clean(),this._rawCount=this._count=G,this._extent={},N(this)};function O(W,G,$,ge,q){var Se=u[G.type],Ce=ge-1,Ae=G.name,Ue=W[Ae][Ce];if(Ue&&Ue.length<$){for(var Qe=new Se(Math.min(q-Ce*$,$)),gt=0;gt=0&&G=0&&GAe&&(Ae=Qe)}return Se=[Ce,Ae],this._extent[W]=Se,Se},C.getApproximateExtent=function(W){return W=this.getDimension(W),this._approximateExtent[W]||this.getDataExtent(W)},C.setApproximateExtent=function(W,G){G=this.getDimension(G),this._approximateExtent[G]=W.slice()},C.getCalculationInfo=function(W){return this._calculationInfo[W]},C.setCalculationInfo=function(W,G){n(W)?y.extend(this._calculationInfo,W):this._calculationInfo[W]=G},C.getSum=function(W){var G=this._storage[W],$=0;if(G)for(var ge=0,q=this.count();ge=this._rawCount||W<0)return-1;if(!this._indices)return W;var G=this._indices,$=G[W];if($!=null&&$W)q=Se-1;else return Se}return-1},C.indicesOfNearest=function(W,G,$){var ge=this._storage,q=ge[W],Se=[];if(!q)return Se;$==null&&($=Infinity);for(var Ce=Infinity,Ae=-1,Ue=0,Qe=0,gt=this.count();Qe=0&&Ae<0)&&(Ce=Oe,Ae=_e,Ue=0),_e===Ae&&(Se[Ue++]=Qe))}return Se.length=Ue,Se},C.getRawIndex=k;function k(W){return W}function P(W){return W=0?this._indices[W]:-1}C.getRawDataItem=function(W){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(W));for(var G=[],$=0;$=Qe&&ye<=gt||isNaN(ye))&&(Ce[Ae++]=Oe),Oe++}_e=!0}else if(ge===2){for(var lt=this._storage[Ue],ue=this._storage[G[1]],Ne=W[G[1]][0],Te=W[G[1]][1],ce=0;ce=Qe&&ye<=gt||isNaN(ye))&&(de>=Ne&&de<=Te||isNaN(de))&&(Ce[Ae++]=Oe),Oe++}_e=!0}}if(!_e)if(ge===1)for(var Q=0;Q=Qe&&ye<=gt||isNaN(ye))&&(Ce[Ae++]=Le)}else for(var Q=0;QW[ht][1])&&(Ge=!1)}Ge&&(Ce[Ae++]=this.getRawIndex(Q))}return Ae=0?(q[Ae]=j(Se[Ae]),ge._rawExtent[Ae]=H(),ge._extent[Ae]=null):q[Ae]=Se[Ae])}return ge}function j(W){for(var G=new Array(W.length),$=0;$Te[1]&&(Te[1]=Ne)}}}return q},C.downSample=function(W,G,$,ge){for(var q=U(this,[W]),Se=q._storage,Ce=[],Ae=Math.floor(1/G),Ue=Se[W],Qe=this.count(),gt=this._chunkSize,_e=q._rawExtent[W],Oe=new(E(this))(Qe),lt=0,ce=0;ceQe-ce&&(Ae=Qe-ce,Ce.length=Ae);for(var Y=0;Y_e[1]&&(_e[1]=ue),Oe[lt++]=Ne}return q._count=lt,q._indices=Oe,q.getRawIndex=P,q},C.getItemModel=function(W){var G=this.hostModel;return new m(this.getRawDataItem(W),G,G&&G.ecModel)},C.diff=function(W){var G=this;return new v(W?W.getIndices():[],this.getIndices(),function($){return B(W,$)},function($){return B(G,$)})},C.getVisual=function(W){var G=this._visual;return G&&G[W]},C.setVisual=function(W,G){if(n(W)){for(var $ in W)W.hasOwnProperty($)&&this.setVisual($,W[$]);return}this._visual=this._visual||{},this._visual[W]=G},C.setLayout=function(W,G){if(n(W)){for(var $ in W)W.hasOwnProperty($)&&this.setLayout($,W[$]);return}this._layout[W]=G},C.getLayout=function(W){return this._layout[W]},C.getItemLayout=function(W){return this._itemLayouts[W]},C.setItemLayout=function(W,G,$){this._itemLayouts[W]=$?y.extend(this._itemLayouts[W]||{},G):G},C.clearItemLayouts=function(){this._itemLayouts.length=0},C.getItemVisual=function(W,G,$){var ge=this._itemVisuals[W],q=ge&&ge[G];return q==null&&!$?this.getVisual(G):q},C.setItemVisual=function(W,G,$){var ge=this._itemVisuals[W]||{},q=this.hasItemVisual;if(this._itemVisuals[W]=ge,n(G)){for(var Se in G)G.hasOwnProperty(Se)&&(ge[Se]=G[Se],q[Se]=!0);return}ge[G]=$,q[G]=!0},C.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var V=function(W){W.seriesIndex=this.seriesIndex,W.dataIndex=this.dataIndex,W.dataType=this.dataType};C.setItemGraphicEl=function(W,G){var $=this.hostModel;G&&(G.dataIndex=W,G.dataType=this.dataType,G.seriesIndex=$&&$.seriesIndex,G.type==="group"&&G.traverse(V,G)),this._graphicEls[W]=G},C.getItemGraphicEl=function(W){return this._graphicEls[W]},C.eachItemGraphicEl=function(W,G){y.each(this._graphicEls,function($,ge){$&&(W&&W.call(G,$,ge))})},C.cloneShallow=function(W){if(!W){var G=y.map(this.dimensions,this.getDimensionInfo,this);W=new x(G,this.hostModel)}if(W._storage=this._storage,L(W,this),this._indices){var $=this._indices.constructor;W._indices=new $(this._indices)}else W._indices=null;return W.getRawIndex=W._indices?P:k,W},C.wrapMethod=function(W,G){var $=this[W];if(typeof $!="function")return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(W),this[W]=function(){var ge=$.apply(this,arguments);return G.apply(this,[ge].concat(y.slice(arguments)))}},C.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],C.CHANGABLE_METHODS=["filterSelf","selectRange"];var X=x;D.exports=X},YgsL:function(D,_,e){var g=e("QBsz"),f=g.distance;function y(v,h,c,a,i,r,o){var d=(c-v)*.5,n=(a-h)*.5;return(2*(h-c)+d+n)*o+(-3*(h-c)-2*d-n)*r+d*i+h}function m(v,h){for(var c=v.length,a=[],i=0,r=1;rc-2?c-1:n+1],p=v[n>c-3?c-1:n+2]);var w=l*l,b=l*w;a.push([y(t[0],s[0],u[0],p[0],l,w,b),y(t[1],s[1],u[1],p[1],l,w,b)])}return a}D.exports=m},Yl7c:function(D,_,e){var g=e("Tghj"),f=g.__DEV__,y=e("bYtY"),m=".",v="___EC__COMPONENT__CONTAINER___";function h(t){var s={main:"",sub:""};return t&&(t=t.split(m),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 a(t,s){t.$constructor=t,t.extend=function(u){var p=this,w=function(){u.$constructor?u.$constructor.apply(this,arguments):p.apply(this,arguments)};return y.extend(w.prototype,u),w.extend=this.extend,w.superCall=o,w.superApply=d,y.inherits(w,this),w.superClass=p,w}}var i=0;function r(t){var s=["__\0is_clz",i++,Math.random().toFixed(3)].join("_");t.prototype[s]=!0,t.isInstance=function(u){return!!(u&&u[s])}}function o(t,s){var u=y.slice(arguments,2);return this.superClass.prototype[s].apply(t,u)}function d(t,s,u){return this.superClass.prototype[s].apply(t,u)}function n(t,s){s=s||{};var u={};t.registerClass=function(b,E){if(E){if(c(E),E=h(E),!E.sub)u[E.main]=b;else if(E.sub!==v){var A=p(E);A[E.sub]=b}}return b},t.getClass=function(b,E,A){var S=u[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=u[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),!!u[b.main]},t.getAllClassMainTypes=function(){var b=[];return y.each(u,function(E,A){b.push(A)}),b},t.hasSubTypes=function(b){b=h(b);var E=u[b.main];return E&&E[v]},t.parseClassType=h;function p(b){var E=u[b.main];return(!E||!E[v])&&(E=u[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){}_.parseClassType=h,_.enableClassExtend=a,_.enableClassCheck=r,_.enableClassManagement=n,_.setReadOnly=l},Ynxi:function(D,_,e){var g=e("bYtY"),f=e("ProS"),y=e("IwbS"),m=e("+TT/"),v=m.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(a,i,r){if(this.group.removeAll(),!a.get("show"))return;var o=this.group,d=a.getModel("textStyle"),n=a.getModel("subtextStyle"),l=a.get("textAlign"),t=g.retrieve2(a.get("textBaseline"),a.get("textVerticalAlign")),s=new y.Text({style:y.setTextStyle({},d,{text:a.get("text"),textFill:d.getTextColor()},{disableBox:!0}),z2:10}),u=s.getBoundingRect(),p=a.get("subtext"),w=new y.Text({style:y.setTextStyle({},n,{text:p,textFill:n.getTextColor(),y:u.height+a.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),b=a.get("link"),E=a.get("sublink"),A=a.get("triggerEvent",!0);s.silent=!b&&!A,w.silent=!E&&!A,b&&s.on("click",function(){c(b,"_"+a.get("target"))}),E&&w.on("click",function(){c(b,"_"+a.get("subtarget"))}),s.eventData=w.eventData=A?{componentType:"title",componentIndex:a.componentIndex}:null,o.add(s),p&&o.add(w);var S=o.getBoundingRect(),T=a.getBoxLayoutParams();T.width=S.width,T.height=S.height;var L=v(T,{width:r.getWidth(),height:r.getHeight()},a.get("padding"));l||(l=a.get("left")||a.get("right"),l==="middle"&&(l="center"),l==="right"?L.x+=L.width:l==="center"&&(L.x+=L.width/2)),t||(t=a.get("top")||a.get("bottom"),t==="center"&&(t="middle"),t==="bottom"?L.y+=L.height:t==="middle"&&(L.y+=L.height/2),t=t||"top"),o.attr("position",[L.x,L.y]);var x={textAlign:l,textVerticalAlign:t};s.setStyle(x),w.setStyle(x),S=o.getBoundingRect();var C=L.margin,O=a.getItemStyle(["color","opacity"]);O.fill=a.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:a.get("borderRadius")},style:O,subPixelOptimize:!0,silent:!0});o.add(N)}})},YrtM:function(D,_,e){"use strict";e.d(_,"a",function(){return y});var g=e("q1tI"),f=e.n(g);function y(m,v,h){var c=g.useRef({});return(!("value"in c.current)||h(c.current.condition,v))&&(c.current.value=m(),c.current.condition=v),c.current.value}},Ywus:function(D,_,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var y=f(e("q1tI")),m=g(e("DO2E")),v=g(e("KQxl")),h=function(i,r){return y.createElement(v.default,Object.assign({},i,{ref:r,icon:m.default}))};h.displayName="DeleteOutlined";var c=y.forwardRef(h);_.default=c},Z0Lh:function(D,_,e){"use strict";var g=e("TqRt");Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var f=g(e("pVnL")),y=g(e("HjOm")),m=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)({},m.default)};v.lang.ok="\u786E \u5B9A";var h=v;_.default=h},Z0cm:function(D,_){var e=Array.isArray;D.exports=e},Z1HP:function(D,_,e){var g=e("ycre"),f=e("quyA"),y=e("q4HE");function m(v){return f(v)?y(v):g(v)}D.exports=m},Z1r0:function(D,_){function e(g){var f=g.findComponents({mainType:"legend"});if(!f||!f.length)return;g.eachSeriesByType("graph",function(y){var m=y.getCategoriesData(),v=y.getGraph(),h=v.data,c=m.mapArray(m.getName);h.filterSelf(function(a){var i=h.getItemModel(a),r=i.getShallow("category");if(r!=null){typeof r=="number"&&(r=c[r]);for(var o=0;o0?1:-1,q=G.height>0?1:-1;return{x:G.x+ge*$/2,y:G.y+q*$/2,width:G.width-ge*$,height:G.height-q*$}},polar:function(V,X,W){var G=V.getItemLayout(X);return{cx:G.cx,cy:G.cy,r0:G.r0,r:G.r,startAngle:G.startAngle,endAngle:G.endAngle}}};function O(V){return V.startAngle!=null&&V.endAngle!=null&&V.startAngle===V.endAngle}function N(V,X,W,G,$,ge,q,Se){var Ce=X.getItemVisual(W,"color"),Ae=X.getItemVisual(W,"opacity"),Ue=X.getVisual("borderColor"),Qe=G.getModel("itemStyle"),gt=G.getModel("emphasis.itemStyle").getBarItemStyle();Se||V.setShape("r",Qe.get("barBorderRadius")||0),V.useStyle(m.defaults({stroke:O($)?"none":Ue,fill:O($)?"none":Ce,opacity:Ae},Qe.getBarItemStyle()));var _e=G.getShallow("cursor");_e&&V.attr("cursor",_e);var Oe=q?$.height>0?"bottom":"top":$.width>0?"left":"right";Se||c(V.style,gt,G,Ce,ge,W,Oe),O($)&&(gt.fill=gt.stroke="none"),v.setHoverStyle(V,gt)}function F(V,X){var W=V.get(u)||0,G=isNaN(X.width)?Number.MAX_VALUE:Math.abs(X.width),$=isNaN(X.height)?Number.MAX_VALUE:Math.abs(X.height);return Math.min(W,G,$)}var k=r.extend({type:"largeBar",shape:{points:[]},buildPath:function(V,X){for(var W=X.points,G=this.__startPoint,$=this.__baseDimIdx,ge=0;ge=0?W:null},30,!1);function z(V,X,W){var G=V.__baseDimIdx,$=1-G,ge=V.shape.points,q=V.__largeDataIndices,Se=Math.abs(V.__barWidth/2),Ce=V.__startPoint[$];p[0]=X,p[1]=W;for(var Ae=p[G],Ue=p[1-G],Qe=Ae-Se,gt=Ae+Se,_e=0,Oe=ge.length/2;_e=Qe&&ce<=gt&&(Ce<=Y?Ue>=Ce&&Ue<=Y:Ue>=Y&&Ue<=Ce))return q[_e]}return-1}function R(V,X,W){var G=W.getVisual("borderColor")||W.getVisual("color"),$=X.getModel("itemStyle").getItemStyle(["color","borderColor"]);V.useStyle($),V.style.fill=null,V.style.stroke=G,V.style.lineWidth=W.getLayout("barWidth")}function U(V,X,W){var G=X.get("borderColor")||X.get("color"),$=X.getItemStyle(["color","borderColor"]);V.useStyle($),V.style.fill=null,V.style.stroke=G,V.style.lineWidth=W.getLayout("barWidth")}function j(V,X,W){var G,$=W.type==="polar";return $?G=W.getArea():G=W.grid.getRect(),$?{cx:G.cx,cy:G.cy,r0:V?G.r0:X.r0,r:V?G.r:X.r,startAngle:V?X.startAngle:0,endAngle:V?X.endAngle:Math.PI*2}:{x:V?X.x:G.x,y:V?G.y:X.y,width:V?X.width:G.width,height:V?G.height:X.height}}function H(V,X,W){var G=V.type==="polar"?v.Sector:v.Rect;return new G({shape:j(X,W,V),silent:!0,z2:0})}D.exports=b},ZCgT:function(D,_,e){var g=e("tLB3"),f=1/0,y=17976931348623157e292;function m(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=m},ZLWo:function(D,_,e){"use strict";Object.defineProperty(_,"__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"};_.default=g},ZMnZ:function(D,_,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var y=f(e("q1tI")),m=g(e("2oIt")),v=g(e("KQxl")),h=function(i,r){return y.createElement(v.default,Object.assign({},i,{ref:r,icon:m.default}))};h.displayName="UpOutlined";var c=y.forwardRef(h);_.default=c},ZTPi:function(D,_,e){"use strict";var g=e("pVnL"),f=e.n(g),y=e("lSNA"),m=e.n(y),v=e("q1tI"),h=e("ODXe"),c=e("Ff2n"),a=e("rePB"),i=e("TSYQ"),r=e.n(i),o=e("Zm9Q"),d=e("6cGi"),n=e("KQm4"),l=e("xEkU"),t=e.n(l),s=e("t23M");function u(Ke){var At=Object(v.useRef)(),Xe=Object(v.useRef)(!1);function et(){for(var tt=arguments.length,ot=new Array(tt),Ve=0;Vebe&&(ct=be-dt),Object(v.useMemo)(function(){if(!ot.length)return[0,0];for(var yt=ot.length,_t=yt,or=0;orqe+ct){_t=or-1;break}}for(var we=0,ve=yt-1;ve>=0;ve-=1){var me=Ke.get(ot[ve].key)||x;if(me[it]pe?(Ot=nt,He.current="x"):(Ot=bt,He.current="y");var J=Date.now();J-he.current>100&&(Re.current=!1),(At(-Ot,-Ot)||Re.current)&&(Pe.preventDefault(),Re.current=!0),he.current=J}var Ye=Object(v.useRef)(null);Ye.current={onTouchStart:we,onTouchMove:ve,onTouchEnd:me,onWheel:ze},v.useEffect(function(){function Pe(ae){Ye.current.onTouchStart(ae)}function nt(ae){Ye.current.onTouchMove(ae)}function bt(ae){Ye.current.onTouchEnd(ae)}function Ot(ae){Ye.current.onWheel(ae)}return document.addEventListener("touchmove",nt,{passive:!1}),document.addEventListener("touchend",bt,{passive:!1}),Ke.current.addEventListener("touchstart",Pe,{passive:!1}),Ke.current.addEventListener("wheel",Ot),function(){document.removeEventListener("touchmove",nt),document.removeEventListener("touchend",bt)}},[])}function W(){var Ke=Object(v.useRef)(new Map);function At(et){return Ke.current.has(et)||Ke.current.set(et,v.createRef()),Ke.current.get(et)}function Xe(et){Ke.current.delete(et)}return[At,Xe]}function G(Ke,At){var Xe=v.useRef(Ke),et=v.useState({}),tt=Object(h.a)(et,2),ot=tt[1];function Ve(se){var re=typeof se=="function"?se(Xe.current):se;re!==Xe.current&&At(re,Xe.current),Xe.current=re,ot({})}return[Xe.current,Ve]}function $(Ke,At){var Xe=Object.keys(Ke);if(Object.getOwnPropertySymbols){var et=Object.getOwnPropertySymbols(Ke);At&&(et=et.filter(function(tt){return Object.getOwnPropertyDescriptor(Ke,tt).enumerable})),Xe.push.apply(Xe,et)}return Xe}function ge(Ke){for(var At=1;AtHi?"left":"right"})}),Ot=Object(h.a)(bt,2),ae=Ot[0],pe=Ot[1],J=G(0,function(aa,Hi){!nt&&we&&we({direction:aa>Hi?"top":"bottom"})}),ne=Object(h.a)(J,2),xe=ne[0],De=ne[1],Fe=Object(v.useState)(0),$e=Object(h.a)(Fe,2),vt=$e[0],Wt=$e[1],$t=Object(v.useState)(0),Rt=Object(h.a)($t,2),Kt=Rt[0],Gt=Rt[1],Qt=Object(v.useState)(0),Mt=Object(h.a)(Qt,2),dr=Mt[0],er=Mt[1],st=Object(v.useState)(0),xt=Object(h.a)(st,2),ut=xt[0],pt=xt[1],It=Object(v.useState)(null),Tt=Object(h.a)(It,2),ft=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),Lr=Object(h.a)(qr,2),Qr=Lr[0],_r=Lr[1],ur=p(new Map),pr=Object(h.a)(ur,2),cr=pr[0],fr=pr[1],xr=L(ot,cr,vt),Yr="".concat(tt,"-nav-operations-hidden"),un=0,Nn=0;nt?be?(un=0,Nn=Math.max(0,vt-ft)):(un=Math.min(0,ft-vt),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 Yn(){qn(Date.now())}function Vn(){window.clearTimeout(Tn.current)}X(ve,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(ft>=vt)return ga;ha(pe,aa)}else{if(Xt>=Kt)return ga;ha(De,Hi)}return Vn(),Yn(),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=ae;be?Hi.rightae+ft&&(ga=Hi.right+Hi.width-ft):Hi.left<-ae?ga=-Hi.left:Hi.left+Hi.width>-ae+ft&&(ga=-(Hi.left+Hi.width-ft)),De(0),pe(jr(ga)[0])}else{var ha=xe;Hi.top<-xe?ha=-Hi.top:Hi.top+Hi.height>-xe+Xt&&(ha=-(Hi.top+Hi.height-Xt)),pe(0),De(jr(ha)[0])}}var on=C(xr,{width:ft,height:Xt,left:ae,top:xe},{width:dr,height:ut},{width:Fr,height:Qr},ge(ge({},Ke),{},{tabs:ot})),ia=Object(h.a)(on,2),xa=ia[0],ta=ia[1],_i=ot.map(function(aa){var Hi=aa.key;return v.createElement(E,{id:re,prefixCls:tt,key:Hi,rtl:be,tab:aa,closable:aa.closable,editable:dt,active:Hi===qe,tabPosition:yt,tabBarGutter:_t,renderWrapper:or,removeAriaLabel:ct==null?void 0:ct.removeAriaLabel,ref:Ye(Hi),onClick:function(ha){Bt(Hi,ha)},onRemove:function(){Pe(Hi)},onFocus:function(){An(Hi),Yn(),be||(ve.current.scrollLeft=0),ve.current.scrollTop=0}})}),Ci=u(function(){var aa,Hi,ga,ha,mo,kn,$i,eo,To,uo=((aa=ve.current)===null||aa===void 0?void 0:aa.offsetWidth)||0,rr=((Hi=ve.current)===null||Hi===void 0?void 0:Hi.offsetHeight)||0,Tr=((ga=Re.current)===null||ga===void 0?void 0:ga.offsetWidth)||0,Pr=((ha=Re.current)===null||ha===void 0?void 0:ha.offsetHeight)||0,Wr=((mo=he.current)===null||mo===void 0?void 0:mo.offsetWidth)||0,hn=((kn=he.current)===null||kn===void 0?void 0:kn.offsetHeight)||0;Ht(uo),mr(rr),tn(Tr),_r(Pr);var rt=((($i=me.current)===null||$i===void 0?void 0:$i.offsetWidth)||0)-Tr,jt=(((eo=me.current)===null||eo===void 0?void 0:eo.offsetHeight)||0)-Pr;Wt(rt),Gt(jt);var Jt=(To=he.current)===null||To===void 0?void 0:To.className.includes(Yr);er(rt-(Jt?0:Wr)),pt(jt-(Jt?0:hn)),fr(function(){var nr=new Map;return ot.forEach(function(Or){var wr=Or.key,Er=Ye(wr).current;Er&&nr.set(wr,{width:Er.offsetWidth,height:Er.offsetHeight,left:Er.offsetLeft,top:Er.offsetTop})}),nr})}),Gn=ot.slice(0,xa),Oa=ot.slice(ta+1),mn=[].concat(Object(n.a)(Gn),Object(n.a)(Oa)),On=Object(v.useState)(),Ln=Object(h.a)(On,2),_n=Ln[0],jn=Ln[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?(be?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,be]),Object(v.useEffect)(function(){An()},[qe,ni,xr,nt]),Object(v.useEffect)(function(){Ci()},[be,_t,qe,ot.map(function(aa){return aa.key}).join("_")]);var Qi=!!mn.length,ma="".concat(tt,"-nav-wrap"),Ba,Qa,Wi,Co;return nt?be?(Qa=ae>0,Ba=ae+ft0&&arguments[0]!==void 0?arguments[0]:"";return B+=1,"".concat(z).concat(B)}}(),k=function(B){r()(R,B);var z=d()(R);function R(U){var j;h()(this,R),j=z.call(this,U),j.responsiveHandler=function(X){j.setState({below:X.matches});var W=j.props.onBreakpoint,G=j.state.collapsed;W&&W(X.matches),G!==X.matches&&j.setCollapsed(X.matches,"responsive")},j.setCollapsed=function(X,W){"collapsed"in j.props||j.setState({collapsed:X});var G=j.props.onCollapse;G&&G(X,W)},j.toggle=function(){var X=!j.state.collapsed;j.setCollapsed(X,"clickTrigger")},j.renderSider=function(X){var W,G=X.getPrefixCls,$=j.props,ge=$.prefixCls,q=$.className,Se=$.theme,Ce=$.collapsible,Ae=$.reverseArrow,Ue=$.trigger,Qe=$.style,gt=$.width,_e=$.collapsedWidth,Oe=$.zeroWidthTriggerStyle,lt=$.children,ce=C($,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle","children"]),Y=j.state,K=Y.collapsed,Q=Y.below,ye=G("layout-sider",ge),ue=Object(s.default)(ce,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),Ne=K?_e:gt,Te=x(Ne)?"".concat(Ne,"px"):String(Ne),oe=parseFloat(String(_e||0))===0?n.createElement("span",{onClick:j.toggle,className:t()("".concat(ye,"-zero-width-trigger"),"".concat(ye,"-zero-width-trigger-").concat(Ae?"right":"left")),style:Oe},Ue||n.createElement(p.a,null)):null,de={expanded:Ae?n.createElement(b.a,null):n.createElement(A.a,null),collapsed:Ae?n.createElement(A.a,null):n.createElement(b.a,null)},Le=K?"collapsed":"expanded",Ge=de[Le],ht=Ue!==null?oe||n.createElement("div",{className:"".concat(ye,"-trigger"),onClick:j.toggle,style:{width:Te}},Ue||Ge):null,Et=m()(m()({},Qe),{flex:"0 0 ".concat(Te),maxWidth:Te,minWidth:Te,width:Te}),Be=t()(q,ye,"".concat(ye,"-").concat(Se),(W={},f()(W,"".concat(ye,"-collapsed"),!!K),f()(W,"".concat(ye,"-has-trigger"),Ce&&Ue!==null&&!oe),f()(W,"".concat(ye,"-below"),!!Q),f()(W,"".concat(ye,"-zero-width"),parseFloat(Te)===0),W));return n.createElement("aside",m()({className:Be},ue,{style:Et}),n.createElement("div",{className:"".concat(ye,"-children")},lt),Ce||Q&&oe?ht:null)},j.uniqueId=F("ant-sider-");var H;typeof window!="undefined"&&(H=window.matchMedia),H&&U.breakpoint&&U.breakpoint in O&&(j.mql=H("(max-width: ".concat(O[U.breakpoint],")")));var V;return"collapsed"in U?V=U.collapsed:V=U.defaultCollapsed,j.state={collapsed:V,below:!1},j}return a()(R,[{key:"componentDidMount",value:function(){var j;this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),(j=this.props)===null||j===void 0||j.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){var j,H;(j=this===null||this===void 0?void 0:this.mql)===null||j===void 0||j.removeListener(this.responsiveHandler),(H=this.props)===null||H===void 0||H.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var j=this.state.collapsed,H=this.props.collapsedWidth;return n.createElement(N.Provider,{value:{siderCollapsed:j,collapsedWidth:H}},n.createElement(T.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(j){return"collapsed"in j?{collapsed:j.collapsed}:null}}]),R}(n.Component);k.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var P=function(B){r()(R,B);var z=d()(R);function R(){return h()(this,R),z.apply(this,arguments)}return a()(R,[{key:"render",value:function(){var j=this;return n.createElement(S.a.Consumer,null,function(H){return n.createElement(k,m()({},H,j.props))})}}]),R}(n.Component)},ZYIC:function(D,_,e){var g=e("zM3Q"),f={seriesType:"lines",plan:g(),reset:function(y){var m=y.coordinateSystem,v=y.get("polyline"),h=y.pipelineContext.large;function c(a,i){var r=[];if(h){var o,d=a.end-a.start;if(v){for(var n=0,l=a.start;l>1)%2;p.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;"),o.appendChild(u),n.push(u)}return n}function i(o,d,n){for(var l=n?"invTrans":"trans",t=d[l],s=d.srcCoords,u=!0,p=[],w=[],b=0;b<4;b++){var E=o[b].getBoundingClientRect(),A=2*b,S=E.left,T=E.top;p.push(S,T),u=u&&s&&S===s[A]&&T===s[A+1],w.push(o[b].offsetLeft,o[b].offsetTop)}return u&&t?t:(d.srcCoords=p,d[l]=n?y(w,p):y(p,w))}function r(o){return o.nodeName.toUpperCase()==="CANVAS"}_.transformLocalCoord=h,_.transformCoordWithViewport=c,_.isCanvasEl=r},Znkb:function(D,_,e){var g=e("Tghj"),f=g.__DEV__,y=e("ProS"),m=e("zTMp"),v=y.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(r,o,d,n){this.axisPointerClass&&m.fixValue(r),v.superApply(this,"render",arguments),h(this,r,o,d,n,!0)},updateAxisPointer:function(r,o,d,n,l){h(this,r,o,d,n,!1)},remove:function(r,o){var d=this._axisPointer;d&&d.remove(o),v.superApply(this,"remove",arguments)},dispose:function(r,o){c(this,o),v.superApply(this,"dispose",arguments)}});function h(r,o,d,n,l,t){var s=v.getAxisPointerClass(r.axisPointerClass);if(!s)return;var u=m.getAxisPointerModel(o);u?(r._axisPointer||(r._axisPointer=new s)).render(o,u,n,t):c(r,n)}function c(r,o,d){var n=r._axisPointer;n&&n.dispose(o,d),r._axisPointer=null}var a=[];v.registerAxisPointerClass=function(r,o){a[r]=o},v.getAxisPointerClass=function(r){return r&&a[r]};var i=v;D.exports=i},"Znn+":function(D,_,e){"use strict";var g=e("cIOH"),f=e.n(g),y=e("9ama"),m=e.n(y)},ZqQs:function(D,_,e){var g=e("bYtY");function f(h){var c=h&&h.timeline;g.isArray(c)||(c=c?[c]:[]),g.each(c,function(a){if(!a)return;y(a)})}function y(h){var c=h.type,a={number:"value",time:"time"};if(a[c]&&(h.axisType=a[c],delete h.type),m(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(r){g.isObject(r)&&!g.isArray(r)&&(!v(r,"value")&&v(r,"name")&&(r.value=r.name),m(r))})}function m(h){var c=h.itemStyle||(h.itemStyle={}),a=c.emphasis||(c.emphasis={}),i=h.label||h.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};g.each(i,function(d,n){!o[n]&&!v(r,n)&&(r[n]=d)}),a.label&&!v(i,"emphasis")&&(i.emphasis=a.label,delete a.label)}function v(h,c){return h.hasOwnProperty(c)}D.exports=f},Zvw2:function(D,_,e){var g=e("bYtY"),f=e("hM6l"),y=function(v,h,c,a,i){f.call(this,v,h,c),this.type=a||"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 m=y;D.exports=m},a7Wl:function(D,_,e){"use strict";Object.defineProperty(_,"__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"};_.default=g},a9QJ:function(D,_){var e={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function g(f,y){if(f==="world"){var m=e[y.name];if(m){var v=y.center;v[0]=m[0],v[1]=m[1]}}}D.exports=g},aHsQ:function(D,_,e){"use strict";var g=e("cIOH"),f=e.n(g),y=e("6D9b"),m=e.n(y)},aKvl:function(D,_,e){var g=e("Sj9i"),f=g.quadraticProjectPoint;function y(m,v,h,c,a,i,r,o,d){if(r===0)return!1;var n=r;if(d>v+n&&d>c+n&&d>i+n||dm+n&&o>h+n&&o>a+n||o0&&O>0&&!B&&(C=0),C<0&&O<0&&!z&&(O=0));var R=L.ecModel;if(R&&x==="time"){var U=i("bar",R),j;if(y.each(U,function(X){j|=X.getBaseAxis()===L.axis}),j){var H=r(U),V=l(C,O,L,H);C=V.min,O=V.max}}return{extent:[C,O],fixMin:B,fixMax:z}}function l(T,L,x,C){var O=x.axis.getExtent(),N=O[1]-O[0],F=o(C,x.axis);if(F===void 0)return{min:T,max:L};var k=Infinity;y.each(F,function(j){k=Math.min(j.offset,k)});var P=-Infinity;y.each(F,function(j){P=Math.max(j.offset+j.width,P)}),k=Math.abs(k),P=Math.abs(P);var B=k+P,z=L-T,R=1-(k+P)/N,U=z/R-z;return L+=U*(P/B),T-=U*(k/B),{min:T,max:L}}function t(T,L){var x=n(T,L),C=x.extent,O=L.get("splitNumber");T.type==="log"&&(T.base=L.get("logBase"));var N=T.type;T.setExtent(C[0],C[1]),T.niceExtent({splitNumber:O,fixMin:x.fixMin,fixMax:x.fixMax,minInterval:N==="interval"||N==="time"?L.get("minInterval"):null,maxInterval:N==="interval"||N==="time"?L.get("maxInterval"):null});var F=L.get("interval");F!=null&&(T.setInterval&&T.setInterval(F))}function s(T,L){if(L=L||T.get("type"),L)switch(L){case"category":return new m(T.getOrdinalMeta?T.getOrdinalMeta():T.getCategories(),[Infinity,-Infinity]);case"value":return new v;default:return(h.getClass(L)||v).create(T)}}function u(T){var L=T.scale.getExtent(),x=L[0],C=L[1];return!(x>0&&C>0||x<0&&C<0)}function p(T){var L=T.getLabelModel().get("formatter"),x=T.type==="category"?T.scale.getExtent()[0]:null;return typeof L=="string"?(L=function(C){return function(O){return O=T.scale.getLabel(O),C.replace("{value}",O!=null?O:"")}}(L),L):typeof L=="function"?function(C,O){return x!=null&&(O=C-x),L(w(T,C),O)}:function(C){return T.scale.getLabel(C)}}function w(T,L){return T.type==="category"?T.scale.getLabel(L):L}function b(T){var L=T.model,x=T.scale;if(!L.get("axisLabel.show")||x.isBlank())return;var C=T.type==="category",O,N,F=x.getExtent();C?N=x.count():(O=x.getTicks(),N=O.length);var k=T.getLabelModel(),P=p(T),B,z=1;N>40&&(z=Math.ceil(N/40));for(var R=0;RV.blockIndex,G=W?V.step:null,$=X&&X.modDataCount,ge=$!=null?Math.ceil($/G):null;return{step:G,modBy:ge,modDataCount:$}},s.getPipeline=function(j){return this._pipelineMap.get(j)},s.updateStreamModes=function(j,H){var V=this._pipelineMap.get(j.uid),X=j.getData(),W=X.count(),G=V.progressiveEnabled&&H.incrementalPrepareRender&&W>=V.threshold,$=j.get("large")&&W>=j.get("largeThreshold"),ge=j.get("progressiveChunkMode")==="mod"?W:null;j.pipelineContext=V.context={progressiveRender:G,modDataCount:ge,large:$}},s.restorePipelines=function(j){var H=this,V=H._pipelineMap=v();j.eachSeries(function(X){var W=X.getProgressive(),G=X.uid;V.set(G,{id:G,head:null,tail:null,threshold:X.getProgressiveThreshold(),progressiveEnabled:W&&!(X.preventIncremental&&X.preventIncremental()),blockIndex:-1,step:Math.round(W||700),count:0}),F(H,X,X.dataTask)})},s.prepareStageTasks=function(){var j=this._stageTaskMap,H=this.ecInstance.getModel(),V=this.api;f(this._allHandlers,function(X){var W=j.get(X.uid)||j.set(X.uid,[]);X.reset&&w(this,X,W,H,V),X.overallReset&&b(this,X,W,H,V)},this)},s.prepareView=function(j,H,V,X){var W=j.renderTask,G=W.context;G.model=H,G.ecModel=V,G.api=X,W.__block=!j.incrementalPrepareRender,F(this,H,W)},s.performDataProcessorTasks=function(j,H){u(this,this._dataProcessorHandlers,j,H,{block:!0})},s.performVisualTasks=function(j,H,V){u(this,this._visualHandlers,j,H,V)};function u(j,H,V,X,W){W=W||{};var G;f(H,function(ge,q){if(W.visualType&&W.visualType!==ge.visualType)return;var Se=j._stageTaskMap.get(ge.uid),Ce=Se.seriesTaskMap,Ae=Se.overallTask;if(Ae){var Ue,Qe=Ae.agentStubMap;Qe.each(function(_e){$(W,_e)&&(_e.dirty(),Ue=!0)}),Ue&&Ae.dirty(),p(Ae,X);var gt=j.getPerformArgs(Ae,W.block);Qe.each(function(_e){_e.perform(gt)}),G|=Ae.perform(gt)}else Ce&&Ce.each(function(_e,Oe){$(W,_e)&&_e.dirty();var lt=j.getPerformArgs(_e,W.block);lt.skip=!ge.performRawSeries&&V.isSeriesFiltered(_e.context.model),p(_e,X),G|=_e.perform(lt)})});function $(ge,q){return ge.setDirty&&(!ge.dirtyMap||ge.dirtyMap.get(q.__pipeline.id))}j.unfinished|=G}s.performSeriesTasks=function(j){var H;j.eachSeries(function(V){H|=V.dataTask.perform()}),this.unfinished|=H},s.plan=function(){this._pipelineMap.each(function(j){var H=j.tail;do{if(H.__block){j.blockIndex=H.__idxInPipeline;break}H=H.getUpstream()}while(H)})};var p=s.updatePayload=function(j,H){H!=="remain"&&(j.context.payload=H)};function w(j,H,V,X,W){var G=V.seriesTaskMap||(V.seriesTaskMap=v()),$=H.seriesType,ge=H.getTargetSeries;H.createOnAllSeries?X.eachRawSeries(q):$?X.eachRawSeriesByType($,q):ge&&ge(X,W).each(q);function q(Ce){var Ae=Ce.uid,Ue=G.get(Ae)||G.set(Ae,a({plan:L,reset:x,count:N}));Ue.context={model:Ce,ecModel:X,api:W,useClearVisual:H.isVisual&&!H.isLayout,plan:H.plan,reset:H.reset,scheduler:j},F(j,Ce,Ue)}var Se=j._pipelineMap;G.each(function(Ce,Ae){Se.get(Ae)||(Ce.dispose(),G.removeKey(Ae))})}function b(j,H,V,X,W){var G=V.overallTask=V.overallTask||a({reset:E});G.context={ecModel:X,api:W,overallReset:H.overallReset,scheduler:j};var $=G.agentStubMap=G.agentStubMap||v(),ge=H.seriesType,q=H.getTargetSeries,Se=!0,Ce=H.modifyOutputEnd;ge?X.eachRawSeriesByType(ge,Ae):q?q(X,W).each(Ae):(Se=!1,f(X.getSeries(),Ae));function Ae(Qe){var gt=Qe.uid,_e=$.get(gt);_e||(_e=$.set(gt,a({reset:A,onDirty:T})),G.dirty()),_e.context={model:Qe,overallProgress:Se,modifyOutputEnd:Ce},_e.agent=G,_e.__block=Se,F(j,Qe,_e)}var Ue=j._pipelineMap;$.each(function(Qe,gt){Ue.get(gt)||(Qe.dispose(),G.dirty(),$.removeKey(gt))})}function E(j){j.overallReset(j.ecModel,j.api,j.payload)}function A(j,H){return j.overallProgress&&S}function S(){this.agent.dirty(),this.getDownstream().dirty()}function T(){this.agent&&this.agent.dirty()}function L(j){return j.plan&&j.plan(j.model,j.ecModel,j.api,j.payload)}function x(j){j.useClearVisual&&j.data.clearAllVisual();var H=j.resetDefines=l(j.reset(j.model,j.ecModel,j.api,j.payload));return H.length>1?y(H,function(V,X){return O(X)}):C}var C=O(0);function O(j){return function(H,V){var X=V.data,W=V.resetDefines[j];if(W&&W.dataEach)for(var G=H.start;G=0&&!(o[l]<=i);l--);l=Math.min(l,d-2)}else{for(var l=n;li);l++);l=Math.min(l-1,d-2)}m.lerp(a.position,r[l],r[l+1],(i-o[l])/(o[l+1]-o[l]));var s=r[l+1][0]-r[l][0],u=r[l+1][1]-r[l][1];a.rotation=-Math.atan2(u,s)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=i,a.ignore=!1},f.inherits(v,y);var c=v;D.exports=c},apAg:function(D,_,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var y=f(e("q1tI")),m=g(e("bsht")),v=g(e("KQxl")),h=function(i,r){return y.createElement(v.default,Object.assign({},i,{ref:r,icon:m.default}))};h.displayName="SearchOutlined";var c=y.forwardRef(h);_.default=c},as94:function(D,_,e){var g=e("7aKB"),f=e("3LNs"),y=e("IwbS"),m=e("/y7N"),v=e("Fofx"),h=e("+rIm"),c=e("Znkb"),a=f.extend({makeElOption:function(d,n,l,t,s){var u=l.axis;u.dim==="angle"&&(this.animationThreshold=Math.PI/18);var p=u.polar,w=p.getOtherAxis(u),b=w.getExtent(),E;E=u["dataTo"+g.capitalFirst(u.dim)](n);var A=t.get("type");if(A&&A!=="none"){var S=m.buildElStyle(t),T=r[A](u,p,E,b,S);T.style=S,d.graphicKey=T.type,d.pointer=T}var L=t.get("label.margin"),x=i(n,l,t,p,L);m.buildLabelElOption(d,l,t,s,x)}});function i(d,n,l,t,s){var u=n.axis,p=u.dataToCoord(d),w=t.getAngleAxis().getExtent()[0];w=w/180*Math.PI;var b=t.getRadiusAxis().getExtent(),E,A,S;if(u.dim==="radius"){var T=v.create();v.rotate(T,T,w),v.translate(T,T,[t.cx,t.cy]),E=y.applyTransform([p,-s],T);var L=n.getModel("axisLabel").get("rotate")||0,x=h.innerTextLayout(w,L*Math.PI/180,-1);A=x.textAlign,S=x.textVerticalAlign}else{var C=b[1];E=t.coordToPoint([C+s,p]);var O=t.cx,N=t.cy;A=Math.abs(E[0]-O)/C<.3?"center":E[0]>O?"left":"right",S=Math.abs(E[1]-N)/C<.3?"middle":E[1]>N?"top":"bottom"}return{position:E,align:A,verticalAlign:S}}var r={line:function(d,n,l,t,s){return d.dim==="angle"?{type:"Line",shape:m.makeLineShape(n.coordToPoint([t[0],l]),n.coordToPoint([t[1],l]))}:{type:"Circle",shape:{cx:n.cx,cy:n.cy,r:l}}},shadow:function(d,n,l,t,s){var u=Math.max(1,d.getBandWidth()),p=Math.PI/180;return d.dim==="angle"?{type:"Sector",shape:m.makeSectorShape(n.cx,n.cy,t[0],t[1],(-l-u/2)*p,(-l+u/2)*p)}:{type:"Sector",shape:m.makeSectorShape(n.cx,n.cy,l-u/2,l+u/2,0,Math.PI*2)}}};c.registerAxisPointerClass("PolarAxisPointer",a);var o=a;D.exports=o},b56q:function(D,_,e){},b80T:function(D,_,e){var g=e("UNi/"),f=e("03A+"),y=e("Z0cm"),m=e("DSRE"),v=e("wJg7"),h=e("c6wG"),c=Object.prototype,a=c.hasOwnProperty;function i(r,o){var d=y(r),n=!d&&f(r),l=!d&&!n&&m(r),t=!d&&!n&&!l&&h(r),s=d||n||l||t,u=s?g(r.length,String):[],p=u.length;for(var w in r)(o||a.call(r,w))&&!(s&&(w=="length"||l&&(w=="offset"||w=="parent")||t&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||v(w,p)))&&u.push(w);return u}D.exports=i},b80e:function(D,_,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var y=f(e("q1tI")),m=g(e("gKaM")),v=g(e("KQxl")),h=function(i,r){return y.createElement(v.default,Object.assign({},i,{ref:r,icon:m.default}))};h.displayName="DoubleLeftOutlined";var c=y.forwardRef(h);_.default=c},b9oc:function(D,_,e){var g=e("bYtY"),f=g.each,y="\0_ec_hist_store";function m(i,r){var o=a(i);f(r,function(d,n){for(var l=o.length-1;l>=0;l--){var t=o[l];if(t[n])break}if(l<0){var s=i.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var u=s.getPercentRange();o[0][n]={dataZoomId:n,start:u[0],end:u[1]}}}}),o.push(r)}function v(i){var r=a(i),o=r[r.length-1];r.length>1&&r.pop();var d={};return f(o,function(n,l){for(var t=r.length-1;t>=0;t--){var n=r[t][l];if(n){d[l]=n;break}}}),d}function h(i){i[y]=null}function c(i){return a(i).length}function a(i){var r=i[y];return r||(r=i[y]=[{}]),r}_.push=m,_.pop=v,_.clear=h,_.count=c},bBKM:function(D,_,e){var g=e("Tghj"),f=g.__DEV__,y=e("ProS"),m=e("bYtY"),v=e("+rIm"),h=e("IwbS"),c=["axisLine","axisTickLabel","axisName"],a=y.extendComponentView({type:"radar",render:function(i,r,o){var d=this.group;d.removeAll(),this._buildAxes(i),this._buildSplitLineAndArea(i)},_buildAxes:function(i){var r=i.coordinateSystem,o=r.getIndicatorAxes(),d=m.map(o,function(n){var l=new v(n.model,{position:[r.cx,r.cy],rotation:n.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});m.each(d,function(n){m.each(c,n.add,n),this.group.add(n.getGroup())},this)},_buildSplitLineAndArea:function(i){var r=i.coordinateSystem,o=r.getIndicatorAxes();if(!o.length)return;var d=i.get("shape"),n=i.getModel("splitLine"),l=i.getModel("splitArea"),t=n.getModel("lineStyle"),s=l.getModel("areaStyle"),u=n.get("show"),p=l.get("show"),w=t.get("color"),b=s.get("color");w=m.isArray(w)?w:[w],b=m.isArray(b)?b:[b];var E=[],A=[];function S(U,j,H){var V=H%j.length;return U[V]=U[V]||[],V}if(d==="circle")for(var T=o[0].getTicksCoords(),L=r.cx,x=r.cy,C=0;C1&&arguments[1]!==void 0?arguments[1]:"",z=arguments.length>2?arguments[2]:void 0,R=h()(P),U=x(B,z);return U&&R.push(U),R},O=function(P){var B=P.prefixCls,z=P.separator,R=z===void 0?"/":z,U=P.style,j=P.className,H=P.routes,V=P.children,X=P.itemRender,W=X===void 0?L:X,G=P.params,$=G===void 0?{}:G,ge=S(P,["prefixCls","separator","style","className","routes","children","itemRender","params"]),q=c.useContext(l.b),Se=q.getPrefixCls,Ce=q.direction,Ae,Ue=Se("breadcrumb",B);if(H&&H.length>0){var Qe=[];Ae=H.map(function(_e){var Oe=x(_e.path,$);Oe&&Qe.push(Oe);var lt;return _e.children&&_e.children.length&&(lt=c.createElement(b.a,null,_e.children.map(function(ce){return c.createElement(b.a.Item,{key:ce.path||ce.breadcrumbName},W(ce,$,H,C(Qe,ce.path,$)))}))),c.createElement(u,{overlay:lt,separator:R,key:Oe||_e.breadcrumbName},W(_e,$,H,Qe))})}else V&&(Ae=Object(r.a)(V).map(function(_e,Oe){return _e&&(Object(E.a)(_e.type&&(_e.type.__ANT_BREADCRUMB_ITEM===!0||_e.type.__ANT_BREADCRUMB_SEPARATOR===!0),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Object(A.a)(_e,{separator:R,key:Oe}))}));var gt=i()(j,Ue,m()({},"".concat(Ue,"-rtl"),Ce==="rtl"));return c.createElement("div",f()({className:gt,style:U},ge),Ae)};O.Item=u,O.Separator=w;var N=O,F=_.a=N},bKJz:function(D,_,e){},bLfw:function(D,_,e){var g=e("bYtY"),f=e("Qxkt"),y=e("iRjW"),m=e("Yl7c"),v=m.enableClassManagement,h=m.parseClassType,c=e("4NO4"),a=c.makeInner,i=e("+TT/"),r=e("3hzK"),o=a(),d=f.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,s,u,p){f.call(this,t,s,u,p),this.uid=y.getUID("ec_cpt_model")},init:function(t,s,u,p){this.mergeDefaultAndTheme(t,u)},mergeDefaultAndTheme:function(t,s){var u=this.layoutMode,p=u?i.getLayoutParams(t):{},w=s.getTheme();g.merge(t,w.get(this.mainType)),g.merge(t,this.getDefaultOption()),u&&i.mergeLayoutParam(t,p,u)},mergeOption:function(t,s){g.merge(this.option,t,!0);var u=this.layoutMode;u&&i.mergeLayoutParam(this.option,t,u)},optionUpdated:function(t,s){},getDefaultOption:function(){var t=o(this);if(!t.defaultOption){for(var s=[],u=this.constructor;u;){var p=u.prototype.defaultOption;p&&s.push(p),u=u.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(d,{registerWhenExtend:!0}),y.enableSubTypeDefaulter(d),y.enableTopologicalTravel(d,n);function n(t){var s=[];return g.each(d.getClassesByMainType(t),function(u){s=s.concat(u.prototype.dependencies||[])}),s=g.map(s,function(u){return h(u).main}),t!=="dataset"&&g.indexOf(s,"dataset")<=0&&s.unshift("dataset"),s}g.mixin(d,r);var l=d;D.exports=l},bMXI:function(D,_,e){var g=e("bYtY"),f=e("QBsz"),y=e("Fofx"),m=e("mFDi"),v=e("DN4a"),h=f.applyTransform;function c(){v.call(this)}g.mixin(c,v);function a(o){this.name=o,this.zoomLimit,v.call(this),this._roamTransformable=new c,this._rawTransformable=new c,this._center,this._zoom}a.prototype={constructor:a,type:"view",dimensions:["x","y"],setBoundingRect:function(o,d,n,l){return this._rect=new m(o,d,n,l),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(o,d,n,l){this.transformTo(o,d,n,l),this._viewRect=new m(o,d,n,l)},transformTo:function(o,d,n,l){var t=this.getBoundingRect(),s=this._rawTransformable;s.transform=t.calculateTransform(new m(o,d,n,l)),s.decomposeTransform(),this._updateTransform()},setCenter:function(o){if(!o)return;this._center=o,this._updateCenterAndZoom()},setZoom:function(o){o=o||1;var d=this.zoomLimit;d&&(d.max!=null&&(o=Math.min(d.max,o)),d.min!=null&&(o=Math.max(d.min,o))),this._zoom=o,this._updateCenterAndZoom()},getDefaultCenter:function(){var o=this.getBoundingRect(),d=o.x+o.width/2,n=o.y+o.height/2;return[d,n]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var o=this._rawTransformable.getLocalTransform(),d=this._roamTransformable,n=this.getDefaultCenter(),l=this.getCenter(),t=this.getZoom();l=f.applyTransform([],l,o),n=f.applyTransform([],n,o),d.origin=l,d.position=[n[0]-l[0],n[1]-l[1]],d.scale=[t,t],this._updateTransform()},_updateTransform:function(){var o=this._roamTransformable,d=this._rawTransformable;d.parent=o,o.updateTransform(),d.updateTransform(),y.copy(this.transform||(this.transform=[]),d.transform||y.create()),this._rawTransform=d.getLocalTransform(),this.invTransform=this.invTransform||[],y.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var o=this._roamTransformable.transform,d=this._rawTransformable;return{roamTransform:o?g.slice(o):y.create(),rawScale:g.slice(d.scale),rawPosition:g.slice(d.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var o=this.getBoundingRect().clone();return o.applyTransform(this.transform),o},dataToPoint:function(o,d,n){var l=d?this._rawTransform:this.transform;return n=n||[],l?h(n,o,l):f.copy(n,o)},pointToData:function(o){var d=this.invTransform;return d?h([],o,d):[o[0],o[1]]},convertToPixel:g.curry(i,"dataToPoint"),convertFromPixel:g.curry(i,"pointToData"),containPoint:function(o){return this.getViewRectAfterRoam().contain(o[0],o[1])}},g.mixin(a,v);function i(o,d,n,l){var t=n.seriesModel,s=t?t.coordinateSystem:null;return s===this?s[o](l):null}var r=a;D.exports=r},bNin:function(D,_,e){var g=e("bYtY"),f=e("IwbS"),y=e("FBjb"),m=e("Itpr"),v=m.radialCoordinate,h=e("ProS"),c=e("4mN7"),a=e("bMXI"),i=e("Ae+d"),r=e("SgGq"),o=e("xSat"),d=o.onIrrelevantElement,n=e("Tghj"),l=n.__DEV__,t=e("OELB"),s=t.parsePercent,u=f.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(L,x){var C=x.childPoints,O=C.length,N=x.parentPoint,F=C[0],k=C[O-1];if(O===1){L.moveTo(N[0],N[1]),L.lineTo(F[0],F[1]);return}var P=x.orient,B=P==="TB"||P==="BT"?0:1,z=1-B,R=s(x.forkPosition,1),U=[];U[B]=N[B],U[z]=N[z]+(k[z]-N[z])*R,L.moveTo(N[0],N[1]),L.lineTo(U[0],U[1]),L.moveTo(F[0],F[1]),U[B]=F[B],L.lineTo(U[0],U[1]),U[B]=k[B],L.lineTo(U[0],U[1]),L.lineTo(k[0],k[1]);for(var j=1;jG.x,q||(ge=ge-Math.PI));var Ce=q?"left":"right",Ae=F.labelModel.get("rotate"),Ue=Ae*(Math.PI/180);X.setStyle({textPosition:F.labelModel.get("position")||Ce,textRotation:Ae==null?-ge:Ue,textOrigin:"center",verticalAlign:"middle"})}A(N,P,z,C,H,j,V,O,F)}function A(L,x,C,O,N,F,k,P,B){var z=B.edgeShape,R=O.__edge;if(z==="curve")x.parentNode&&x.parentNode!==C&&(R||(R=O.__edge=new f.BezierCurve({shape:T(B,N,N),style:g.defaults({opacity:0,strokeNoScale:!0},B.lineStyle)})),f.updateProps(R,{shape:T(B,F,k),style:{opacity:1}},L));else if(z==="polyline"&&(B.layout==="orthogonal"&&(x!==C&&x.children&&x.children.length!==0&&x.isExpand===!0))){for(var U=x.children,j=[],H=0;H